Runtime error

#49
by firofiro - opened

making attention of type 'vanilla-xformers' with 512 in_channels
building MemoryEfficientAttnBlock with 512 in_channels...
Working with z of shape (1, 4, 32, 32) = 4096 dimensions.
making attention of type 'vanilla-xformers' with 512 in_channels
building MemoryEfficientAttnBlock with 512 in_channels...
Traceback (most recent call last):
File "/home/user/app/app.py", line 40, in
model = Model()
File "/home/user/app/model.py", line 56, in init
self.model = create_model(model_config_path).to(self.device)
File "/home/user/app/ControlNet/cldm/model.py", line 26, in create_model
model = instantiate_from_config(config.model).cpu()
File "/home/user/app/ControlNet/ldm/util.py", line 79, in instantiate_from_config
return get_obj_from_str(config["target"])(**config.get("params", dict()))
File "/home/user/app/ControlNet/cldm/cldm.py", line 310, in init
super().init(*args, **kwargs)
File "/home/user/app/ControlNet/ldm/models/diffusion/ddpm.py", line 565, in init
self.instantiate_cond_stage(cond_stage_config)
File "/home/user/app/ControlNet/ldm/models/diffusion/ddpm.py", line 632, in instantiate_cond_stage
model = instantiate_from_config(config)
File "/home/user/app/ControlNet/ldm/util.py", line 79, in instantiate_from_config
return get_obj_from_str(config["target"])(**config.get("params", dict()))
File "/home/user/app/ControlNet/ldm/modules/encoders/modules.py", line 99, in init
self.tokenizer = CLIPTokenizer.from_pretrained(version)
File "/home/user/.pyenv/versions/3.10.9/lib/python3.10/site-packages/transformers/tokenization_utils_base.py", line 1788, 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.

Runtime error
er/app/ControlNet/ldm/modules/encoders/modules.py", line 100, in init
self.transformer = CLIPTextModel.from_pretrained(version)
File "/home/user/.pyenv/versions/3.10.9/lib/python3.10/site-packages/transformers/modeling_utils.py", line 2208, in from_pretrained
resolved_archive_file = cached_file(pretrained_model_name_or_path, filename, **cached_file_kwargs)
File "/home/user/.pyenv/versions/3.10.9/lib/python3.10/site-packages/transformers/utils/hub.py", line 409, in cached_file
resolved_file = hf_hub_download(
File "/home/user/.pyenv/versions/3.10.9/lib/python3.10/site-packages/huggingface_hub/utils/_validators.py", line 119, in _inner_fn
return fn(*args, **kwargs)
File "/home/user/.pyenv/versions/3.10.9/lib/python3.10/site-packages/huggingface_hub/file_download.py", line 1492, in hf_hub_download
http_get(
File "/home/user/.pyenv/versions/3.10.9/lib/python3.10/site-packages/huggingface_hub/file_download.py", line 456, in http_get
r = _request_wrapper(
File "/home/user/.pyenv/versions/3.10.9/lib/python3.10/site-packages/huggingface_hub/file_download.py", line 392, in _request_wrapper
response = get_session().request(method=method, url=url, **params)
File "/home/user/.pyenv/versions/3.10.9/lib/python3.10/site-packages/requests/sessions.py", line 589, in request
resp = self.send(prep, **send_kwargs)
File "/home/user/.pyenv/versions/3.10.9/lib/python3.10/site-packages/requests/sessions.py", line 703, in send
r = adapter.send(request, **kwargs)
File "/home/user/.pyenv/versions/3.10.9/lib/python3.10/site-packages/huggingface_hub/utils/_http.py", line 68, in send
return super().send(request, *args, **kwargs)
File "/home/user/.pyenv/versions/3.10.9/lib/python3.10/site-packages/requests/adapters.py", line 501, in send
raise ConnectionError(err, request=request)
requests.exceptions.ConnectionError: (ProtocolError('Connection aborted.', RemoteDisconnected('Remote end closed connection without response')), '(Request ID: 97dc0521-5b89-4b51-b883-4e5a2ef0fd57)')

Sign up or log in to comment