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

Saving and deploying the Few-Shot model #17

Closed
rlleshi opened this issue Aug 22, 2022 · 2 comments
Closed

Saving and deploying the Few-Shot model #17

rlleshi opened this issue Aug 22, 2022 · 2 comments

Comments

@rlleshi
Copy link

rlleshi commented Aug 22, 2022

Are we also saving the few-shot head here?

I am concerned with deploying the model in production. Looks like we can't just do a normal prediction on the loaded model but need to take care of the logic of few_shot_eval.eval_few_shot?

@rlleshi rlleshi closed this as completed Aug 24, 2022
@ybendou ybendou reopened this Sep 1, 2022
@ybendou
Copy link
Owner

ybendou commented Sep 1, 2022

Hello,

Sorry for the delayed answer,

In our method we don't use a few-shot head since we use a Nearest Class Mean approach.
Indeed, to deploy in production, you would need first to pass the images through your model, then use the following function .

We have a version which is more production-like for a demo in the following repository, you can check it to get an inspiration.

Hope this help, let me know if it doesn't.

Best,

@rlleshi
Copy link
Author

rlleshi commented Sep 3, 2022

Thanks a lot for getting back! That answers the question.

@rlleshi rlleshi closed this as completed Sep 3, 2022
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