pesser / stable-diffusion

MIT License
1.03k stars 395 forks source link

ModuleNotFoundError: No module named 'torchtext.legacy' #11

Closed TheOneTrueGuy closed 1 year ago

TheOneTrueGuy commented 1 year ago

Everything installed well except I get 2 errors. 1 upon install and another when I try to run it. install error is: ERROR: File "setup.py" or "setup.cfg" not found. Directory cannot be installed in editable mode: /content I'm trying to run this on a colab server in standalone mode from the command line. Thanks for any help! Traceback (most recent call last): File "stable-diffusion/scripts/txt2img.py", line 11, in from pytorch_lightning import seed_everything File "/usr/local/lib/python3.7/dist-packages/pytorch_lightning/init.py", line 20, in from pytorch_lightning import metrics # noqa: E402 File "/usr/local/lib/python3.7/dist-packages/pytorch_lightning/metrics/init.py", line 15, in from pytorch_lightning.metrics.classification import ( # noqa: F401 File "/usr/local/lib/python3.7/dist-packages/pytorch_lightning/metrics/classification/init.py", line 14, in from pytorch_lightning.metrics.classification.accuracy import Accuracy # noqa: F401 File "/usr/local/lib/python3.7/dist-packages/pytorch_lightning/metrics/classification/accuracy.py", line 18, in from pytorch_lightning.metrics.utils import deprecated_metrics, void File "/usr/local/lib/python3.7/dist-packages/pytorch_lightning/metrics/utils.py", line 29, in from pytorch_lightning.utilities import rank_zero_deprecation File "/usr/local/lib/python3.7/dist-packages/pytorch_lightning/utilities/init.py", line 18, in from pytorch_lightning.utilities.apply_func import move_data_to_device # noqa: F401 File "/usr/local/lib/python3.7/dist-packages/pytorch_lightning/utilities/apply_func.py", line 31, in from torchtext.legacy.data import Batch ModuleNotFoundError: No module named 'torchtext.legacy'