how can I down load this model and use in my env?

#10
by Weakliy - opened

as the title

Weakliy changed discussion title from how can I down this model and use in my env? to how can I down load this model and use in my env?

Traceback (most recent call last):
File "C:\Users\admin\AppData\Roaming\Python\Python38\site-packages\transformers\utils\hub.py", line 417, in cached_file
resolved_file = hf_hub_download(
File "C:\Users\admin\AppData\Roaming\Python\Python38\site-packages\huggingface_hub\utils_validators.py", line 118, in _inner_fn
return fn(*args, **kwargs)
File "C:\Users\admin\AppData\Roaming\Python\Python38\site-packages\huggingface_hub\file_download.py", line 1291, in hf_hub_download
raise LocalEntryNotFoundError(
huggingface_hub.utils._errors.LocalEntryNotFoundError: Connection error, and we cannot find the requested files in the disk cache. Please try again or make sure your Internet connection is on.

During handling of the above exception, another exception occurred:

Did a quick google search of "huggingface_hub.utils._errors.LocalEntryNotFoundError: Connection error, and we cannot find the requested files in the disk cache. Please try again or make sure your Internet connection is on." and it seems like an error with your environment. Check these out for possible solutions:
https://github.com/huggingface/transformers/issues/10067
https://stackoverflow.com/questions/71335585/huggingface-valueerror-connection-error-and-we-cannot-find-the-requested-fil
https://discuss.huggingface.co/t/value-error-connection-error/3583

i konw it, but i want to down load this model and use it in my local env.(dont need the intrnet)

Then you can clone the repo and then change "mattmdjaga/segformer_b2_clothes" to the location of the cloned repo:
git clone https://huggingface.co/mattmdjaga/segformer_b2_clothes

Perhaps my statement caused a problem that you didn't understand my question I hope to run your code on the local client without the need for a network connection to the huggingface, as my network connection to the huggingface is too unstable :(

So you'll need to download the weights etc, which is what git clone is for, if you can clone the repo then you'll be able to run it. Otherwise you can manually download each file from the "files and versions" section. If you can't download the files one by one then I don't think you'll be able to use the model.

I completely understand now. Thank you very much for your prompt response. This is my first time using huggingface. Thank you again

mattmdjaga changed discussion status to closed

Sign up or log in to comment