调用
python scripts/txt2img.py --prompt "a professional photograph of an astronaut riding a horse"
报错
ModuleNotFoundError: No module named 'omegaconf'
安装
pip install omegaconf
Using cached antlr4_python3_runtime-4.9.3-py3-none-any.whl
Requirement already satisfied: PyYAML>=5.1.0 in d:\cyberwin\devpro\python311\lib\site-packages (from omegaconf) (6.0.2)
Using cached omegaconf-2.3.0-py3-none-any.whl (79 kB)
Installing collected packages: antlr4-python3-runtime, omegaconf
Successfully installed antlr4-python3-runtime-4.9.3 omegaconf-2.3.0
运行
python scripts/txt2img.py --prompt "a professional photograph of an astronaut riding a horse"
from einops import rearrange
ModuleNotFoundError: No module named 'einops'
安装
pip install einops
运行
python scripts/txt2img.py --prompt "a professional photograph of an astronaut riding a horse"
安装
pip install pytorch_lightning
运行
python scripts/txt2img.py --prompt "a professional photograph of an astronaut riding a horse"
ModuleNotFoundError: No module named 'imwatermark'
安装
pip install imwatermark
pip install WatermarkEncoder