-
Notifications
You must be signed in to change notification settings - Fork 5.1k
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
ModuleNotFoundError: No module named 'torchtext.legacy' #8
Comments
same |
Ditto after running the following on Google Colab: %cd /content
!git clone https://github.com/Stability-AI/stablediffusion.git
%cd /content/stablediffusion
%pip install -q -r requirements.txt
!wget https://huggingface.co/stabilityai/stable-diffusion-2-base/resolve/main/512-base-ema.ckpt
!python scripts/txt2img.py \
--config configs/stable-diffusion/v2-inference.yaml \
--ckpt 512-base-ema.ckpt \
--prompt "a professional photograph of an astronaut riding a horse" |
If you run:
then you get a different error:
If you run:
then you get a different error:
If you run:
then you get a different error:
If you run:
then you get the error:
|
https://github.com/pytorch/text#installation
Based on that, it looks like you want to be using one of these combinations presumably?
@woctezuma What version of PyTorch are you using alongside |
|
Guys how do you test and release software? What's your DevOps? It looks like there wasn't any test before making the announcement. I know people in DS world avoid SE best practices. Let me know if you need help for the future for testing and giving to the community the correct instruction to really make ML more open. |
The issue isnt torchtext, it's your version of pytorch_lighting, here's the most recent version that should work:
|
@woctezuma try high runtime type if you have it: In Colab : Runtime-> Change runtime type -> Runtime shape -> High-RAM also for xformers there are precompiled versions you can grab if you dont want to wait: |
Thanks! I will look into these options! Edit:
I don't see this in the free version of Google Colab. |
I don't think it is possible to run this script on the free version of Google Colab. Thanks for the help though. For reference, this is what my Google Colab code looked like:
However, the good piece of news is that the model is being integrated into HuggingFace's Diffusers: |
Thanks! this resolved it with the additional collab recommendations above !pip install pytorch-lightning==1.8.3.post0 |
Same, I found this Facebook package is hilariously terribly released ! Facebook should NEVER release such product to public even for a test likes this. Sorry being very upset about this |
Walked through the README and got this. I didn't use conda though to install pytorch might try to do that instead
https://colab.research.google.com/drive/10jKS9pAB2bdN3SHekZzoKzm4jo2F4W1Q?usp=sharing
The text was updated successfully, but these errors were encountered: