Clean installed the Mac MPS environment from main using the 1.1 model. On running dream.py, loading the model fails with the following stack trace.
Traceback (most recent call last):
File "/Users/sulka/dev/stable-diffusion/scripts/dream.py", line 518, in <module>
main()
File "/Users/sulka/dev/stable-diffusion/scripts/dream.py", line 85, in main
t2i.load_model()
File "/Users/sulka/dev/stable-diffusion/ldm/simplet2i.py", line 537, in load_model
model = self._load_model_from_config(config, self.weights)
File "/Users/sulka/dev/stable-diffusion/ldm/simplet2i.py", line 589, in _load_model_from_config
model = instantiate_from_config(config.model)
File "/Users/sulka/dev/stable-diffusion/ldm/util.py", line 89, in instantiate_from_config
return get_obj_from_str(config['target'])(
File "/Users/sulka/dev/stable-diffusion/ldm/models/diffusion/ddpm.py", line 657, in __init__
self.instantiate_cond_stage(cond_stage_config)
File "/Users/sulka/dev/stable-diffusion/ldm/models/diffusion/ddpm.py", line 768, in instantiate_cond_stage
model = instantiate_from_config(config)
File "/Users/sulka/dev/stable-diffusion/ldm/util.py", line 89, in instantiate_from_config
return get_obj_from_str(config['target'])(
File "/Users/sulka/dev/stable-diffusion/ldm/modules/encoders/modules.py", line 245, in __init__
self.tokenizer = CLIPTokenizer.from_pretrained(
File "/Users/sulka/opt/anaconda3/envs/ldm/lib/python3.10/site-packages/transformers/tokenization_utils_base.py", line 1768, in from_pretrained
raise EnvironmentError(
OSError: Can't load tokenizer for 'openai/clip-vit-large-patch14'. If you were trying to load it from 'https://huggingface.co/models', make sure you don't have a local directory with the same name. Otherwise, make sure 'openai/clip-vit-large-patch14' is the correct path to a directory containing all relevant files for a CLIPTokenizer tokenizer.
Clean installed the Mac MPS environment from main using the 1.1 model. On running dream.py, loading the model fails with the following stack trace.