runtime error , how to solve it ?

#2
by laulam - opened

Runtime error
init__
embedder = instantiate_from_config(embconfig)
File "/home/user/app/sgm/util.py", line 175, in instantiate_from_config
return get_obj_from_str(config["target"])(**config.get("params", dict()))
File "/home/user/app/sgm/modules/encoders/modules.py", line 1038, in init
self.open_clip = instantiate_from_config(open_clip_embedding_config)
File "/home/user/app/sgm/util.py", line 175, in instantiate_from_config
return get_obj_from_str(config["target"])(**config.get("params", dict()))
File "/home/user/app/sgm/modules/encoders/modules.py", line 591, in init
model, _, _ = open_clip.create_model_and_transforms(
File "/home/user/.pyenv/versions/3.10.14/lib/python3.10/site-packages/open_clip/factory.py", line 384, in create_model_and_transforms
model = create_model(
File "/home/user/.pyenv/versions/3.10.14/lib/python3.10/site-packages/open_clip/factory.py", line 283, in create_model
checkpoint_path = download_pretrained(pretrained_cfg, cache_dir=cache_dir)
File "/home/user/.pyenv/versions/3.10.14/lib/python3.10/site-packages/open_clip/pretrained.py", line 582, in download_pretrained
target = download_pretrained_from_hf(model_id, cache_dir=cache_dir)
File "/home/user/.pyenv/versions/3.10.14/lib/python3.10/site-packages/open_clip/pretrained.py", line 552, in download_pretrained_from_hf
cached_file = hf_hub_download(model_id, filename, revision=revision, cache_dir=cache_dir)
File "/home/user/.pyenv/versions/3.10.14/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.14/lib/python3.10/site-packages/huggingface_hub/file_download.py", line 1406, in hf_hub_download
raise LocalEntryNotFoundError(
huggingface_hub.utils._errors.LocalEntryNotFoundError: An error happened while trying to locate the file on the Hub and we cannot find the requested files in the local cache. Please check your connection and try again or make sure your Internet connection is on.

ARC Lab, Tencent PCG org

The issue has been solved. Please feel free to try it again.

Sign up or log in to comment