Skip to content

How to load model from disk ? #334

Answered by snakers4
amitli1 asked this question in Q&A
Discussion options

You must be logged in to vote

Hi,

Two simplest ways:

  • Load the model via hub once, then use the cache flag in torch.hub.load;

  • Clone the repo somewhere, then pass this path as a parameter to torch.hu.load, there should be a parameter like cache path or similar;

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
1 reply
@snakers4
Comment options

Answer selected by snakers4
Comment options

You must be logged in to vote
1 reply
@snakers4
Comment options

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