Because SD-1.5 is not available, so I downloaded SDXL. And then run
python test_pasd_sdxl.py
The terminal outputs:
Traceback (most recent call last):
File "/gdata/hot1/shengxuhan/codes/SuperResolution/PASD/test_pasd_sdxl_edited.py", line 316, in
main(args)
File "/gdata/hot1/shengxuhan/codes/SuperResolution/PASD/test_pasd_sdxl_edited.py", line 226, in main
validation_prompt = get_validation_prompt(args, validation_image, model, preprocess, category)
File "/gdata/hot1/shengxuhan/codes/SuperResolution/PASD/test_pasd_sdxl_edited.py", line 176, in get_validation_prompt
generated = model.generate(image)
File "/opt/conda/envs/pasd/lib/python3.10/site-packages/open_clip/coca_model.py", line 224, in generate
assert _has_transformers, "Please install transformers for generate functionality. pip install transformers."
AssertionError: Please install transformers for generate functionality. pip install transformers.
However, the "transformers" has been installed as in requirements.txt. Therefore, something might be wrong with open_clip_torch and transformers. Please check.
I use the following commands to prepare the environment.
Because SD-1.5 is not available, so I downloaded SDXL. And then run
The terminal outputs:
However, the "transformers" has been installed as in requirements.txt. Therefore, something might be wrong with open_clip_torch and transformers. Please check.