Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pretrained model paths #215

Open
Tortoise17 opened this issue Sep 16, 2021 · 1 comment
Open

Pretrained model paths #215

Tortoise17 opened this issue Sep 16, 2021 · 1 comment

Comments

@Tortoise17
Copy link

When I import the pretrained models, by default, it downloads at first in

/home/user/.cache/torch/hub/ ..model*

Is it possible to set this to any other directory?

Please if you can guide me.

@lcycode
Copy link

lcycode commented Nov 11, 2022

你可以按照readme中设置TORCH_HOME
但我更推荐你使用:

torch.hub.set_dir("your download folder")

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants