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

how to use my custom trained model #51

Open
kyuhong0206 opened this issue Mar 4, 2021 · 0 comments
Open

how to use my custom trained model #51

kyuhong0206 opened this issue Mar 4, 2021 · 0 comments

Comments

@kyuhong0206
Copy link

i finetuned BiT-R50 and save like bit.pth.tar
torch.save({
"step": step,
"model": model.state_dict(),
"optim" : optim.state_dict(),
}, savename)

but i can't use it for test like
checkpoint = torch.load(f'/srv/data/datasets/kyuhong/big_transfer/bit_logs/products/bit.pth.tar')
self.model.load_state_dict(checkpoint['model'])

how can i use my custom trained model

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