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

Uploading trained model to Aws Model Registry #47

Open
muhammad-ahmed-ghani opened this issue May 16, 2022 · 3 comments
Open

Uploading trained model to Aws Model Registry #47

muhammad-ahmed-ghani opened this issue May 16, 2022 · 3 comments

Comments

@muhammad-ahmed-ghani
Copy link

Hi @rinongal , I have finetuned the styleganNada model and saved it by torch.save(net, "model.pt") but it didn't save the ModelClass with it due to which it is not deploying on Model Registry as standalone .pt file to serve the users. Can you help me how I pack the entire model with Class ?

@rinongal
Copy link
Owner

Hi @Muhammad-Ahmad-Ghani. Unfortunately I'm not familiar with the AWS model registry, and I'm not sure what type of files it expects. Do you have some guide / official documentation for the tool you're using? I could have a quick look and see if there's any simple change that comes to mind.

@muhammad-ahmed-ghani
Copy link
Author

@rinongal Actually I wanted to convert the trained model to torchscript but the input it takes isn't static and I am facing difficulty to convert it into torchscript because otherwise I always need to import the Model Class to load the saved model. Also wanted to boost its inference speed using ONNX but failed to do because of tracing problem.

@rinongal
Copy link
Owner

I'm honestly not familiar with ONNX or torchscript either, and I don't currently have the time to experiment with either and try to see where your issue comes up. I'll keep this issue open in case someone else reads it and can help.

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