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

Save learnt custom dataset after inference #101

Closed
grth25 opened this issue May 3, 2024 · 4 comments
Closed

Save learnt custom dataset after inference #101

grth25 opened this issue May 3, 2024 · 4 comments

Comments

@grth25
Copy link

grth25 commented May 3, 2024

Hi,
First of all I want to thank you for your work. It is working really well on custom data I have tested so far.

I am new to pytorch and I am not sure if it is possible to save the learnt weights of new objects in inference or if I have to run inference everytime I want to use the pose estimation?

Thanks!

@wenbowen123
Copy link
Collaborator

Hi I'm not sure if I understand. What do you mean by saving the learnt weights? When you run inference, the weights are frozen and not trained anymore.

@grth25
Copy link
Author

grth25 commented May 6, 2024

Okay, so when the weights are frozen, is there a possiblity to save the frozen weights to a file? And is it possible to extend the saved file by inference on a new object at a later time?

To explain my problem in more detail: I would like to use your program to perform a pose estimation on several objects. I want to have a model that has the possibility to add new objects at a later time. Accordingly, I would like to have the possibility to flexibly extend a pose estimation model. Is this possible using inference as in the demo scripts? Or how would I do this?

It may be a simple question but I've never worked with inference before so I am not so sure how it really works. I hope that I did specify it a bit better.

@wenbowen123
Copy link
Collaborator

there is no need to save weights files. You can create multiple est like here, where each of them is using a different object's mesh. Or you can call reset_object to adapt the est to a new object.

@grth25
Copy link
Author

grth25 commented May 14, 2024

Okay, thank you a lot for your help. I will try this out.

@grth25 grth25 closed this as completed May 14, 2024
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