TheLastBen / fast-stable-diffusion

fast-stable-diffusion + DreamBooth
MIT License
7.53k stars 1.31k forks source link

ModuleNotFoundError: No module named 'wget' #1711

Open yoshihirosakamoto opened 1 year ago

yoshihirosakamoto commented 1 year ago

Is that mean google is banned for fast-stable-diffusion?

Thanks

SDPDVADER commented 1 year ago

no thelast ben is updating the book

yoshihirosakamoto commented 1 year ago

Thanks, I install it by myself !pip install wget

Super-zapper commented 1 year ago

For me worked run all of this:

!pip install "fastapi[all]" !pip install "gradio[all]" !pip install "lpips[all]" !pip install "basicsr[all]" !pip install GitPython !pip install safetensors !pip install omegaconf !pip install transformers !pip install open_clip !pip install diffusers !pip install triton !pip install bitsandbytes !pip install wget !pip install -r /content/gdrive/MyDrive/sd/stable-diffusion-webui/requirements_versions.txt !pip install open_clip_torch !pip install git+https://github.com/openai/CLIP.git !pip install xformers

yoshihirosakamoto commented 1 year ago

For me worked run all of this:

!pip install "fastapi[all]" !pip install "gradio[all]" !pip install "lpips[all]" !pip install "basicsr[all]" !pip install GitPython !pip install safetensors !pip install omegaconf !pip install transformers !pip install open_clip !pip install diffusers !pip install triton !pip install bitsandbytes !pip install wget !pip install -r /content/gdrive/MyDrive/sd/stable-diffusion-webui/requirements_versions.txt !pip install open_clip_torch !pip install git+https://github.com/openai/CLIP.git !pip install xformers

Thank you for your help

ElThunasFBI commented 1 year ago

Para mí funcionó ejecutar todo esto:

!pip install "fastapi[all]" !pip install "gradio[all]" !pip install "lpips[all]" !pip install "basicsr[all]" !pip install GitPython !pip install safetensors !pip install omegaconf !pip instalar transformadores ! pip instalar open_clip ! pip instalar difusores ! pip instalar triton ! pip instalar bits y bytes ! pip instalar wget ! pip instalar -r /content/gdrive/MyDrive/sd/stable-diffusion-webui/requirements_versions.txt ! pip instala git+ https://github.com/openai/CLIP.git !pip instala xformers

how do you download that?

yoshihirosakamoto commented 1 year ago

Para mí funcionó ejecutar todo esto: !pip install "fastapi[all]" !pip install "gradio[all]" !pip install "lpips[all]" !pip install "basicsr[all]" !pip install GitPython !pip install safetensors !pip install omegaconf !pip instalar transformadores ! pip instalar open_clip ! pip instalar difusores ! pip instalar triton ! pip instalar bits y bytes ! pip instalar wget ! pip instalar -r /content/gdrive/MyDrive/sd/stable-diffusion-webui/requirements_versions.txt ! pip instala git+ https://github.com/openai/CLIP.git !pip instala xformers

how do you download that?

just add a code line and run it

yoshihirosakamoto commented 1 year ago

For me worked run all of this:

!pip install "fastapi[all]" !pip install "gradio[all]" !pip install "lpips[all]" !pip install "basicsr[all]" !pip install GitPython !pip install safetensors !pip install omegaconf !pip install transformers !pip install open_clip !pip install diffusers !pip install triton !pip install bitsandbytes !pip install wget !pip install -r /content/gdrive/MyDrive/sd/stable-diffusion-webui/requirements_versions.txt !pip install open_clip_torch !pip install git+https://github.com/openai/CLIP.git !pip install xformers

Thanks, I just try it, but when it go to unet step and got this error subprocess.CalledProcessError: Command '['/usr/bin/python3', '/content/diffusers/examples/dreambooth/train_dreambooth.py', '--image_captions_filename', '--train_only_unet', '--save_starting_step=500', '--save_n_steps=0', '--Session_dir=/content/gdrive/MyDrive/Fast-Dreambooth/Sessions/cutecorgi', '--pretrained_model_name_or_path=/content/stable-diffusion-v1-5', '--instance_data_dir=/content/gdrive/MyDrive/Fast-Dreambooth/Sessions/cutecorgi/instance_images', '--output_dir=/content/models/cutecorgi', '--captions_dir=/content/gdrive/MyDrive/Fast-Dreambooth/Sessions/cutecorgi/captions', '--instance_prompt=', '--seed=389667', '--resolution=1024', '--mixed_precision=fp16', '--train_batch_size=1', '--gradient_accumulation_steps=1', '--gradient_checkpointing', '--use_8bit_adam', '--learning_rate=2e-06', '--lr_scheduler=linear', '--lr_warmup_steps=0', '--max_train_steps=6000']' returned non-zero exit status 1. Something went wrong

Super-zapper commented 1 year ago

shit, that's not enough text encoder works fine, but unet crushes because of out of memory. I think it's because of this at start maybe someone could manage this image

lamwilton commented 1 year ago

At least the above works for inference

longlivebigcat commented 1 year ago

For me worked run all of this:

!pip install "fastapi[all]" !pip install "gradio[all]" !pip install "lpips[all]" !pip install "basicsr[all]" !pip install GitPython !pip install safetensors !pip install omegaconf !pip install transformers !pip install open_clip !pip install diffusers !pip install triton !pip install bitsandbytes !pip install wget !pip install -r /content/gdrive/MyDrive/sd/stable-diffusion-webui/requirements_versions.txt !pip install open_clip_torch !pip install git+https://github.com/openai/CLIP.git !pip install xformers

This temp solution works for me. Thank you very much!

kieuvinh2412 commented 1 year ago

r: Command '['/usr/bin/python3', '/content/diffusers/examples/dreambooth/train_dreambooth.py', '--image_captions_filename', '--train_only_unet', '--save_starting_step=500', '--save_n_steps=0', '--Session_dir=/content/gdrive/MyDrive/Fast-Dreambooth/Sessions/cutecorgi', '--pretrained_model_name_or_path=/content/stable-diffusion-v1-5', '--instance_data_dir=/content/gdrive/MyDrive/Fast-Dreambooth/Sessions/cutecorgi/instance_images', '--output_dir=/content/models/cutecorgi', '--captions_dir=/content/gdrive/MyDrive/Fast-Dreambooth/Sessions/cutecorgi/captions', '--instance_prompt=', '--seed=389667', '--resolution=1024', '--mixed_precision=fp16', '--train_batch_size=1', '--gradient_accumulation_steps=1', '--gradient_checkpointing', '--use_8bit_adam', '--learning_rate=2e-06', '--lr_scheduler=linear', '--lr_warmup_steps=0', '--max_train_steps=6000']' returned non-zero exit status 1.

not enough, still missing other modules !pip install einops !pip install git+https://github.com/PyTorchLightning/pytorch-lightning !pip install piexif ...

yoshihirosakamoto commented 1 year ago

r: Command '['/usr/bin/python3', '/content/diffusers/examples/dreambooth/train_dreambooth.py', '--image_captions_filename', '--train_only_unet', '--save_starting_step=500', '--save_n_steps=0', '--Session_dir=/content/gdrive/MyDrive/Fast-Dreambooth/Sessions/cutecorgi', '--pretrained_model_name_or_path=/content/stable-diffusion-v1-5', '--instance_data_dir=/content/gdrive/MyDrive/Fast-Dreambooth/Sessions/cutecorgi/instance_images', '--output_dir=/content/models/cutecorgi', '--captions_dir=/content/gdrive/MyDrive/Fast-Dreambooth/Sessions/cutecorgi/captions', '--instance_prompt=', '--seed=389667', '--resolution=1024', '--mixed_precision=fp16', '--train_batch_size=1', '--gradient_accumulation_steps=1', '--gradient_checkpointing', '--use_8bit_adam', '--learning_rate=2e-06', '--lr_scheduler=linear', '--lr_warmup_steps=0', '--max_train_steps=6000']' returned non-zero exit status 1.

not enough, still missing other modules !pip install einops !pip install git+https://github.com/PyTorchLightning/pytorch-lightning !pip install piexif ...

yes, when you try to traning your model and go to unet part.... you will got error too

Super-zapper commented 1 year ago

Do you get something like this?

image

yoshihirosakamoto commented 1 year ago

Do you get something like this?

image

I got this: subprocess.CalledProcessError: Command '['/usr/bin/python3', '/content/diffusers/examples/dreambooth/train_dreambooth.py', '--image_captions_filename', '--train_only_unet', '--save_starting_step=500', '--save_n_steps=0', '--Session_dir=/content/gdrive/MyDrive/Fast-Dreambooth/Sessions/cutecorgi', '--pretrained_model_name_or_path=/content/stable-diffusion-v1-5', '--instance_data_dir=/content/gdrive/MyDrive/Fast-Dreambooth/Sessions/cutecorgi/instance_images', '--output_dir=/content/models/cutecorgi', '--captions_dir=/content/gdrive/MyDrive/Fast-Dreambooth/Sessions/cutecorgi/captions', '--instance_prompt=', '--seed=389667', '--resolution=1024', '--mixed_precision=fp16', '--train_batch_size=1', '--gradient_accumulation_steps=1', '--gradient_checkpointing', '--use_8bit_adam', '--learning_rate=2e-06', '--lr_scheduler=linear', '--lr_warmup_steps=0', '--max_train_steps=6000']' returned non-zero exit status 1.

KoningWouter commented 1 year ago

Not working for me either.

Crap I should had stored a copy to my Google Drive :(

duskfallcrew commented 1 year ago

Yea i'm in the middle of streaming and some of this stuff was just not working, it wasn't even just THIS notebook, i had three KohyaSS notebooks bomb on me

KoningWouter commented 1 year ago

Yea i'm in the middle of streaming and some of this stuff was just not working, it wasn't even just THIS notebook, i had three KohyaSS notebooks bomb on me

Yup me too. KoyhaSS is also nuked.

Does anybody have a copy of the old notebooks? LoRA or Checkpoint?

duskfallcrew commented 1 year ago

The only notebook that SOMEWHAT worked for me was an NGROK Saigodev one, i'm manually doing the commands but open clip won't install and any other versions just install old torch

KoningWouter commented 1 year ago

I checked the revision history of this colab and nothing has changed. It must be something else.

duskfallcrew commented 1 year ago

This is the notebook i use as a backup: https://colab.research.google.com/github/sagiodev/stablediffusion_webui/blob/master/StableDiffusionUI_ngrok_sagiodev.ipynb NOW KEEP IN MIND this is not my local drive copy XD this is not the one i ahve running at extra credits per hour XD

duskfallcrew commented 1 year ago

I checked the revision history of this colab and nothing has changed. It must be something else.

It's likely google. XD Cause even the saigodev one has a xformers error and tensorflow

duskfallcrew commented 1 year ago

Final attack : Traceback (most recent call last): File "/content/gdrive/MyDrive/sd/stable-diffusion-webui/modules/sd_models.py", line 151, in model_hash OSError: [Errno 107] Transport endpoint is not connected

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "/content/gdrive/MyDrive/sd/stable-diffusion-webui/webui.py", line 286, in File "/content/gdrive/MyDrive/sd/stable-diffusion-webui/webui.py", line 197, in webui File "/content/gdrive/MyDrive/sd/stable-diffusion-webui/webui.py", line 98, in initialize File "/content/gdrive/MyDrive/sd/stable-diffusion-webui/modules/sd_models.py", line 91, in setup_model File "/content/gdrive/MyDrive/sd/stable-diffusion-webui/modules/sd_models.py", line 126, in list_models File "/content/gdrive/MyDrive/sd/stable-diffusion-webui/modules/sd_models.py", line 46, in init File "/content/gdrive/MyDrive/sd/stable-diffusion-webui/modules/sd_models.py", line 152, in model_hash OSError: [Errno 107] Transport endpoint is not connected

I give up, i'm going to my back up notebook XD lemme know when this one's fixed!

KoningWouter commented 1 year ago

Final attack : Traceback (most recent call last): File "/content/gdrive/MyDrive/sd/stable-diffusion-webui/modules/sd_models.py", line 151, in model_hash OSError: [Errno 107] Transport endpoint is not connected

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "/content/gdrive/MyDrive/sd/stable-diffusion-webui/webui.py", line 286, in File "/content/gdrive/MyDrive/sd/stable-diffusion-webui/webui.py", line 197, in webui File "/content/gdrive/MyDrive/sd/stable-diffusion-webui/webui.py", line 98, in initialize File "/content/gdrive/MyDrive/sd/stable-diffusion-webui/modules/sd_models.py", line 91, in setup_model File "/content/gdrive/MyDrive/sd/stable-diffusion-webui/modules/sd_models.py", line 126, in list_models File "/content/gdrive/MyDrive/sd/stable-diffusion-webui/modules/sd_models.py", line 46, in init File "/content/gdrive/MyDrive/sd/stable-diffusion-webui/modules/sd_models.py", line 152, in model_hash OSError: [Errno 107] Transport endpoint is not connected

I give up, i'm going to my back up notebook XD lemme know when this one's fixed!

Could you share your backup notebook. I'm stupid and did not make copies. :(

duskfallcrew commented 1 year ago

Final attack : Traceback (most recent call last): File "/content/gdrive/MyDrive/sd/stable-diffusion-webui/modules/sd_models.py", line 151, in model_hash OSError: [Errno 107] Transport endpoint is not connected During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/content/gdrive/MyDrive/sd/stable-diffusion-webui/webui.py", line 286, in File "/content/gdrive/MyDrive/sd/stable-diffusion-webui/webui.py", line 197, in webui File "/content/gdrive/MyDrive/sd/stable-diffusion-webui/webui.py", line 98, in initialize File "/content/gdrive/MyDrive/sd/stable-diffusion-webui/modules/sd_models.py", line 91, in setup_model File "/content/gdrive/MyDrive/sd/stable-diffusion-webui/modules/sd_models.py", line 126, in list_models File "/content/gdrive/MyDrive/sd/stable-diffusion-webui/modules/sd_models.py", line 46, in init File "/content/gdrive/MyDrive/sd/stable-diffusion-webui/modules/sd_models.py", line 152, in model_hash OSError: [Errno 107] Transport endpoint is not connected I give up, i'm going to my back up notebook XD lemme know when this one's fixed!

Could you share your backup notebook. I'm stupid and did not make copies. :(

No, LOL because i don't have a last ben copy- i only have the saigodev one which i linked before

duskfallcrew commented 1 year ago

This is the notebook i use as a backup: https://colab.research.google.com/github/sagiodev/stablediffusion_webui/blob/master/StableDiffusionUI_ngrok_sagiodev.ipynb NOW KEEP IN MIND this is not my local drive copy XD this is not the one i ahve running at extra credits per hour XD

This is the one i linked lol

KoningWouter commented 1 year ago

kieranxsomer

That's not a training notebook :( But thanks for sharing. I'll sit on my hands until it's fixed xD

duskfallcrew commented 1 year ago

kieranxsomer

That's not a training notebook :( But thanks for sharing. I'll sit on my hands until it's fixed xD

Yea you COULD get dreambooth extension to work it's been updated but that one i'd suggest not to use with THIS notebook because YOLO it never keeps things in the same place twice

basti484 commented 1 year ago

Default runtime has changed to Python version 3.9. You can switch to the old runtime (3.8) using the fallback runtime version in colab. More here: https://medium.com/google-colab/colab-updated-to-python-3-9-2593f8b1eb79

duskfallcrew commented 1 year ago

Default runtime has changed to Python version 3.9. You can switch to the old runtime (3.8) using the fallback runtime version in colab. More here: https://medium.com/google-colab/colab-updated-to-python-3-9-2593f8b1eb79

Sweet, thank you for this!

yoshihirosakamoto commented 1 year ago

I checked the revision history of this colab and nothing has changed. It must be something else.

It's likely google. XD Cause even the saigodev one has a xformers error and tensorflow

yes, I'm sure google did it, for now... all users can't run it anymore and need to wait for update

duskfallcrew commented 1 year ago

https://medium.com/google-colab/colab-updated-to-python-3-9-2593f8b1eb79

or you do this? https://medium.com/google-colab/colab-updated-to-python-3-9-2593f8b1eb79

duskfallcrew commented 1 year ago

Which basti pasted earlier, XD

lamwilton commented 1 year ago

Its google updated Python 3.9 from 3.8, and idk why thelastben is so slow this time

davvoz commented 1 year ago

This works->https://github.com/TheLastBen/fast-stable-diffusion/issues/1706#issuecomment-1460708635

TheLastBen commented 1 year ago

fixed

Dreason8 commented 1 year ago

fixed

Legend

hobocow commented 1 year ago

fixed

still no wget error for me :/

TheLastBen commented 1 year ago

https://colab.research.google.com/github/TheLastBen/fast-stable-diffusion/blob/main/fast_stable_diffusion_AUTOMATIC1111.ipynb

https://colab.research.google.com/github/TheLastBen/fast-stable-diffusion/blob/main/fast-DreamBooth.ipynb

Dreason8 commented 1 year ago

Still getting a ton of errors after a fresh install, but the UI seems to be running somehow.

eg: Error loading script: api.py ImportError: cannot import name 'KarrasDiffusionSchedulers' from 'diffusers.schedulers' ModuleNotFoundError: No module named 'dreambooth.dreambooth' Error loading script: main.py

TheLastBen commented 1 year ago

is this the dreambooth extension ? if so, it doesn't work well with the UI, I suggest the dreambooth notebook.

Dreason8 commented 1 year ago

Yeah I added the Dreambooth extension to the UI. Will go back to using the notebook. cheers