Skip to content
Discussion options

You must be logged in to vote

the default dir is from torch.hub, you can put the downloaded .pth file in the default path https://github.com/pytorch/pytorch/blob/e1c449ff342ee00a4b25e1651bd08a41b7e9fda4/torch/hub.py#L568:

>>> import torch
>>> import os
>>> os.path.join(torch.hub.get_dir(), "checkpoints")

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@Nic-Ma
Comment options

@JunMa11
Comment options

Answer selected by JunMa11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants