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

fast api not found

Open 2Suen opened this issue 1 year ago • 55 comments

Traceback (most recent call last): File "/content/gdrive/MyDrive/sd/stable-diffusion-webui/webui.py", line 7, in from fastapi import FastAPI ModuleNotFoundError: No module named 'fastapi'

didn't remove anything

2Suen avatar Mar 08 '23 18:03 2Suen

same, wondering if colab did something on their end

Rb-diff avatar Mar 08 '23 18:03 Rb-diff

Same here. What happened?

thecosss avatar Mar 08 '23 18:03 thecosss

same problem here, few hours ago all works fine.

marioorg avatar Mar 08 '23 18:03 marioorg

the same problem. I don't know how long ago it happened, it's been a couple of days

d2speech avatar Mar 08 '23 18:03 d2speech

i'm using colab been having this issue as well for a couple of days

Dif-ro avatar Mar 08 '23 18:03 Dif-ro

Same problem. Anyone got solution?

diruuu avatar Mar 08 '23 18:03 diruuu

Same here, had no problem running it this afternoon. Renaming SD folder didn't help :(

Omenizer avatar Mar 08 '23 18:03 Omenizer

Same problem. Anyone got solution?

You have to wait for TheLastBen's answer. I think the problem is on Google's side. or rather they could have changed something in the GoogleColab. Unpleasant problem, I hope they fix it.

d2speech avatar Mar 08 '23 18:03 d2speech

https://github.com/Linaqruf/kohya-trainer/issues/114

Did colab update Python?

Omenizer avatar Mar 08 '23 18:03 Omenizer

Linaqruf/kohya-trainer#114

Did colab update Python?

Then that explains it all. In that case, we just have to wait for it to be fixed.

d2speech avatar Mar 08 '23 18:03 d2speech

I got mine working again by running this block before starting the webui:

!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

Not sure if all the features work but at least it starts

cowliquid avatar Mar 08 '23 19:03 cowliquid

colab changed to python 3.9, I'll update the dependencies, it'll take some time

TheLastBen avatar Mar 08 '23 19:03 TheLastBen

be me find stranger cow on internet copy his code cause want to make pictures [this_will_certainly_go_well_for_me: 1.5 ] 5 minutes later... ded

rektobot avatar Mar 08 '23 19:03 rektobot

Thank you for working on the update TheLastBen, you are our hero!

SDS-MrD avatar Mar 08 '23 20:03 SDS-MrD

The rationale behind the recent announcement by the Google Board of Directors to prohibit all Google Colab users from generating furry images and hentai depictions of young girls on their platform is as follows:

"The aforementioned types of content have been deemed inappropriate and potentially harmful by various legal and ethical standards. The proliferation of such materials not only runs the risk of perpetuating harmful stereotypes and objectification of vulnerable individuals, but may also lead to legal liabilities for the company. Therefore, in order to uphold our commitment to maintaining a safe and responsible online community, it is imperative that we take decisive action to prevent the creation and dissemination of such content on our platform"

Hoozzych avatar Mar 08 '23 20:03 Hoozzych

The rationale behind the recent announcement by the Google Board of Directors to prohibit all Google Colab users from generating furry images and hentai depictions of young girls on their platform is as follows:

"The aforementioned types of content have been deemed inappropriate and potentially harmful by various legal and ethical standards. The proliferation of such materials not only runs the risk of perpetuating harmful stereotypes and objectification of vulnerable individuals, but may also lead to legal liabilities for the company. Therefore, in order to uphold our commitment to maintaining a safe and responsible online community, it is imperative that we take decisive action to prevent the creation and dissemination of such content on our platform"

Phew, good that I only generate landscapes

Omenizer avatar Mar 08 '23 20:03 Omenizer

The rationale behind the recent announcement by the Google Board of Directors to prohibit all Google Colab users from generating furry images and hentai depictions of young girls on their platform is as follows:

"The aforementioned types of content have been deemed inappropriate and potentially harmful by various legal and ethical standards. The proliferation of such materials not only runs the risk of perpetuating harmful stereotypes and objectification of vulnerable individuals, but may also lead to legal liabilities for the company. Therefore, in order to uphold our commitment to maintaining a safe and responsible online community, it is imperative that we take decisive action to prevent the creation and dissemination of such content on our platform"

Okay, but how do they gonna prevent that for something like AUTOMATIC1111 UI? It's not like they can see what we're generating.

diruuu avatar Mar 08 '23 20:03 diruuu

What, you don't have a google drive linked

Omenizer avatar Mar 08 '23 20:03 Omenizer

The rationale behind the recent announcement by the Google Board of Directors to prohibit all Google Colab users from generating furry images and hentai depictions of young girls on their platform is as follows: "The aforementioned types of content have been deemed inappropriate and potentially harmful by various legal and ethical standards. The proliferation of such materials not only runs the risk of perpetuating harmful stereotypes and objectification of vulnerable individuals, but may also lead to legal liabilities for the company. Therefore, in order to uphold our commitment to maintaining a safe and responsible online community, it is imperative that we take decisive action to prevent the creation and dissemination of such content on our platform"

Okay, but how do they gonna prevent that for something like AUTOMATIC1111 UI? It's not like they can see what we're generating.

The rationale behind the recent announcement by the Google Board of Directors to prohibit all Google Colab users from generating furry images and hentai depictions of young girls on their platform is as follows: "The aforementioned types of content have been deemed inappropriate and potentially harmful by various legal and ethical standards. The proliferation of such materials not only runs the risk of perpetuating harmful stereotypes and objectification of vulnerable individuals, but may also lead to legal liabilities for the company. Therefore, in order to uphold our commitment to maintaining a safe and responsible online community, it is imperative that we take decisive action to prevent the creation and dissemination of such content on our platform"

Okay, but how do they gonna prevent that for something like AUTOMATIC1111 UI? It's not like they can see what we're generating.

im joking

Hoozzych avatar Mar 08 '23 20:03 Hoozzych

Screenshot 2023-03-08 100239 I'm having the same issue as well.

chartercook avatar Mar 08 '23 20:03 chartercook

Screenshot 2023-03-08 100239 I'm having the same issue as well.

https://github.com/TheLastBen/fast-stable-diffusion/issues/1706#issuecomment-1460745037

cosmicoxytocin avatar Mar 08 '23 20:03 cosmicoxytocin

Everyone has this problem

sansetto1 avatar Mar 08 '23 20:03 sansetto1

just wait

sansetto1 avatar Mar 08 '23 20:03 sansetto1

just wait

This is the first time I've seen a bug in this Stable Diffusion colab notebook. How long does it usually take to fix a problem like this?

ElThunasFBI avatar Mar 08 '23 21:03 ElThunasFBI

I got mine working again by running this block before starting the webui:

!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

Not sure if all the features work but at least it starts

this hasn't worked for me, still asks for hundreds of more dependencies

digital-soul18 avatar Mar 08 '23 23:03 digital-soul18

any news on this error?

chartercook avatar Mar 09 '23 00:03 chartercook

Bro I posted it today. Relax.

2Suen avatar Mar 09 '23 00:03 2Suen

Same wondering lot of facing this problem I need solution.

shekharP1536 avatar Mar 09 '23 04:03 shekharP1536

Same issue here...

chriswhite5918 avatar Mar 09 '23 04:03 chriswhite5918

I got mine working by upgrading to python 3.10 and install dependencies. mouth drive,

Install Python3.10

!sudo apt-get update -y
!sudo apt-get install python3.10

#change alternatives
!sudo update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.9 1
!sudo update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.10 2

!sudo apt-get install python3.10-distutils
!wget https://bootstrap.pypa.io/get-pip.py
!python get-pip.py
!python -m pip install ipython ipython_genutils ipykernel jupyter_console prompt_toolkit httplib2 astor

Install requirements

!pip install xformers clip open_clip_torch blendmodes accelerate basicsr fonts font-roboto gfpgan gradio==3.16.2 invisible-watermark numpy omegaconf opencv-contrib-python requests piexif Pillow pytorch_lightning==1.7.7 realesrgan scikit-image>=0.19 timm==0.4.12 transformers==4.25.1 torch einops jsonmerge clean-fid resize-right torchdiffeq kornia lark inflection GitPython torchsde safetensors psutil

!pip install --upgrade fastapi==0.90.1

then run the sd

EDIT: didn't know I should put ``` for code

Raruu avatar Mar 09 '23 05:03 Raruu