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

ModuleNotFoundError: No module named 'wget'

Open yoshihirosakamoto opened this issue 2 years ago • 41 comments

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

Thanks

yoshihirosakamoto avatar Mar 09 '23 00:03 yoshihirosakamoto

no thelast ben is updating the book

SDPDVADER avatar Mar 09 '23 00:03 SDPDVADER

Thanks, I install it by myself !pip install wget

yoshihirosakamoto avatar Mar 09 '23 00:03 yoshihirosakamoto

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

Super-zapper avatar Mar 09 '23 01:03 Super-zapper

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

yoshihirosakamoto avatar Mar 09 '23 01:03 yoshihirosakamoto

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?

ElThunasFBI avatar Mar 09 '23 01:03 ElThunasFBI

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 avatar Mar 09 '23 01:03 yoshihirosakamoto

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

yoshihirosakamoto avatar Mar 09 '23 02:03 yoshihirosakamoto

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

Super-zapper avatar Mar 09 '23 02:03 Super-zapper

At least the above works for inference

lamwilton avatar Mar 09 '23 03:03 lamwilton

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!

longlivebigcat avatar Mar 09 '23 03:03 longlivebigcat

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 ...

kieuvinh2412 avatar Mar 09 '23 04:03 kieuvinh2412

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

yoshihirosakamoto avatar Mar 09 '23 04:03 yoshihirosakamoto

Do you get something like this?

image

Super-zapper avatar Mar 09 '23 04:03 Super-zapper

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.

yoshihirosakamoto avatar Mar 09 '23 05:03 yoshihirosakamoto

Not working for me either.

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

KoningWouter avatar Mar 09 '23 05:03 KoningWouter

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

duskfallcrew avatar Mar 09 '23 05:03 duskfallcrew

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?

KoningWouter avatar Mar 09 '23 05:03 KoningWouter

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

duskfallcrew avatar Mar 09 '23 05:03 duskfallcrew

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

KoningWouter avatar Mar 09 '23 05:03 KoningWouter

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 avatar Mar 09 '23 06:03 duskfallcrew

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 avatar Mar 09 '23 06:03 duskfallcrew

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!

duskfallcrew avatar Mar 09 '23 06:03 duskfallcrew

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. :(

KoningWouter avatar Mar 09 '23 06:03 KoningWouter

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 avatar Mar 09 '23 06:03 duskfallcrew

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

duskfallcrew avatar Mar 09 '23 06:03 duskfallcrew

kieranxsomer

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

KoningWouter avatar Mar 09 '23 06:03 KoningWouter

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

duskfallcrew avatar Mar 09 '23 07:03 duskfallcrew

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

basti484 avatar Mar 09 '23 07:03 basti484

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!

duskfallcrew avatar Mar 09 '23 07:03 duskfallcrew

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

yoshihirosakamoto avatar Mar 09 '23 07:03 yoshihirosakamoto