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

README example for loading model from local .pt file #7

Open
ndtreviv opened this issue May 12, 2023 · 0 comments
Open

README example for loading model from local .pt file #7

ndtreviv opened this issue May 12, 2023 · 0 comments

Comments

@ndtreviv
Copy link

Is your feature request related to a problem? Please describe.
I want to package up this library in a docker container that doesn't have access to the internet.
The declaration: EdsrModel.from_pretrained('eugenesiow/edsr-base', scale=2) seems to fetch the pt file from huggingface (https://huggingface.co/eugenesiow/edsr-base/resolve/main/pytorch_model_2x.pt) every time it's called.
I'd rather it read that file from local disk.

Describe the solution you'd like
A README example of loading a pretrained model file from local disk.

Describe alternatives you've considered
N/A

Additional context
N/A

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

1 participant