-
Notifications
You must be signed in to change notification settings - Fork 17
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
run-time error #20
Comments
Hi @zhangfeng0617 , I didn't encounter such an issue before, but maybe you can have a look at this issue huggingface/transformers#17611 which is quite similar. Besides, there could also sometimes be internet problem. You can also have a try to add this script at the start of the code (refer to CompVis/stable-diffusion#302 (comment)): import os
os.environ['HF_ENDPOINT']='https://hf-mirror.com' If you want to load the pre-trained model from the local machine, you may need to ensure downloading the correct type of files. Below is the needed file list of Stable Diffusion: |
Thanks for your reply, can you give me a link to the pre-training model of this project? Maybe my pre-training model is not in the right file. thank you |
Hi, you can find these files here. |
thank you! thank you! |
I downloaded the pre-training model to the local, there is this problem, hope you can help to answer it, thank you Process finished with exit code 1 thanks! |
Hi, Could you please let me know the level of file path you passed into the code? For example, here's my local save path: And it should work when setting the |
Ah, I think I understand the issue now. I apologize for the confusion regarding the path specified in the code: The error message you encountered previously might be due to a name collision if you have a local directory with the same name as the Hugging Face repository. To resolve this, please try using an absolute path for the |
Emm, that's a bit weird. Typically, setting --pretrained_diffusion_path="stabilityai/stable-diffusion-2-base" should automatically download the weights. The error message shown in the screenshot still seems to be related to a network connection issue. Have you tried the potential solutions mentioned here? |
I tried the method but it didn't work. I will download your project again and try it. Thank you very much for your trouble. |
Sorry it didn't work out :( Please keep me informed if you manage to identify the issue. |
Hello, because I am busy with other things at this time, so I have delayed this. I re-downloaded your project and tried to replace the versions of the request and urllib3 libraries, but I still had this connection problem. Also, I downloaded stable-diffusion-2-base locally, but I didn't use it. I just downloaded the project, and then hooked up the vpn to run it directly, but the following problems kept appearing. Is there a problem with the process of my running the project? Could you help me, please? Thank you. It's so much trouble. If possible, it would be best to add your contact information, so that I can consult you more easily, because I do encounter this problem is rather difficult. It's perfectly normal for you to say no. Thank you again. The following is the error message: File "F:\Anaconda2023\anaconda3\envs\diffattack\lib\site-packages\requests\adapters.py", line 517, in send |
Hi @zhangfeng0617 , Apologies for the delayed response—things have been quite busy on my end as well. Please feel free to send an email to [email protected], and I'll share my personal contact details there. |
Ok, thank you, now I am busy with some other things, I will contact you when the school starts, thank you very much |
The previous problem has been solved, because the hanging vpn only proxy browser, no proxy Pycharm. Now this problem has arisen, may I ask what the problem is, thank you very much Attack based on Diffusion, Attacked Dataset: imagenet_compatible*** |
Hello, may I ask if I have downloaded the pre-training model you sent to the local, changed the path in the code, or this problem, may I ask what is going on? thank you
The text was updated successfully, but these errors were encountered: