fast-stable-diffusion icon indicating copy to clipboard operation
fast-stable-diffusion copied to clipboard

Problems in Test the trained model mode

Open ShmuelRonen opened this issue 3 years ago • 20 comments

asking for help...

As an ordinary user and not a programmer, I encounter many problems. In Test the trained mode.

Within the system of Stable Diffusion the runs get stuck. Everything works slowly. You have to reboot every time. The runs show no result.

I tried in both modes in normal and Use_Gradio_Server: and in both the same problems.

Am I doing something wrong?

I have a Google Colab Pro+ subscription.

ShmuelRonen avatar Oct 15 '22 08:10 ShmuelRonen

I actually have that issue on the todo list, until then, use the AUTOMATIC1111 colab here https://colab.research.google.com/github/TheLastBen/fast-stable-diffusion/blob/main/fast_stable_diffusion_AUTOMATIC1111.ipynb

you can easily load your trained model even if it's from a different google account, just paste the path to your model in the third cell

TheLastBen avatar Oct 15 '22 09:10 TheLastBen

Thank you !!!

ShmuelRonen avatar Oct 15 '22 09:10 ShmuelRonen

I am getting this error when trying to test the trained model, frustrating, please what can i do Traceback (most recent call last): File "/content/gdrive/MyDrive/sd/stable-diffusion-webui/webui.py", line 160, in if cmd_opts.nowebui: AttributeError: 'Namespace' object has no attribute 'nowebui'

Maido101 avatar Oct 22 '22 00:10 Maido101

remove the "sd" folder from your gdrive, you have an old repo installed

TheLastBen avatar Oct 22 '22 00:10 TheLastBen

Thanks for your reply. I am using a Collab doc, and running the UI in my browser. So do you mean I should delete the SD folder totally including the two sub folders, or I should first copy the contents of the SD folder to the 'My Drive'

Maido101 avatar Oct 22 '22 00:10 Maido101

if you have some images that you want to keep, save them somewhere else, then completely delete the "sd" folder, including the sub-folders

TheLastBen avatar Oct 22 '22 00:10 TheLastBen

Ok thanks so much buddy, I'm gonna try that.

Maido101 avatar Oct 22 '22 00:10 Maido101

python3: can't open file '/content/gdrive/MyDrive/sd/stable-diffusion-webui/webui.py': [Errno 2] No such file or directory

This is what I see now. Im sorry I have little or no prgramming knowledge Im just tryna run dreambooth. What do I do now, do I need a new collab doc? Im just confused

Maido101 avatar Oct 22 '22 00:10 Maido101

Have you trained a model using this colab : https://colab.research.google.com/github/TheLastBen/fast-stable-diffusion/blob/main/fast-DreamBooth.ipynb

TheLastBen avatar Oct 22 '22 00:10 TheLastBen

yes exactly

Maido101 avatar Oct 22 '22 00:10 Maido101

Was the trained model saved in your gdrive ?

TheLastBen avatar Oct 22 '22 00:10 TheLastBen

yes

Maido101 avatar Oct 22 '22 00:10 Maido101

Disconnect from dreambooth and open this colab : https://colab.research.google.com/github/TheLastBen/fast-stable-diffusion/blob/main/fast_stable_diffusion_AUTOMATIC1111.ipynb

Before running any cell, in the third cell, in path to trained model, enter the path to your model, now run all the cells from the beginning.

TheLastBen avatar Oct 22 '22 00:10 TheLastBen

ok gonna try that

Maido101 avatar Oct 22 '22 00:10 Maido101

Still the same error, and I tried with two colab accounts, after deleteing the SD folder. It seems that folder is necessary to run the UI for the doc. But even with the folder it still doesnt work

python3: can't open file '/content/gdrive/MyDrive/sd/stable-diffusion-webui/webui.py': [Errno 2] No such file or directory

Maido101 avatar Oct 22 '22 01:10 Maido101

Does this Dreambooth colab doc work perfectly for you?

Maido101 avatar Oct 22 '22 01:10 Maido101

yes

TheLastBen avatar Oct 22 '22 01:10 TheLastBen

you need to run all the cells, not just the last one

TheLastBen avatar Oct 22 '22 01:10 TheLastBen

I did.

Maido101 avatar Oct 22 '22 01:10 Maido101

if you're getting : python3: can't open file '/content/gdrive/MyDrive/sd/stable-diffusion-webui/webui.py': [Errno 2] No such file or directory

then certainly the first and second cell didn't execute

TheLastBen avatar Oct 22 '22 01:10 TheLastBen