-
Notifications
You must be signed in to change notification settings - Fork 708
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
[Task]: Enable WinCLIP export #1641
Comments
Hi, isn't this already addressed in the most recent PR? anomalib/src/anomalib/models/image/winclip/torch_model.py Lines 73 to 76 in cbb623e
|
@djdameln, can you confirm and close this issue if this is complete? |
@samet-akcay The model is still non-runnable in OpenVINO (due to not exported masks) |
Thanks for awesome project! Is there a sample show how to run WinCLIP fewshot model with OpenVINO? |
OOM when I export the INT8_PTQ OpenVINO model for WinCLIP |
What is the motivation for this task?
Export is not working for the WinCLIP implementation because the masks and reference embeddings are currently not stored in the model's state dict.
Describe the solution you'd like
Enable export for WinCLIP model by registering masks and reference embeddings as buffers so that they end up in the state dict.
Additional context
Note that storing the masks and reference embeddings in the state dict is not necessary for testing and predicting, since we re-collect these attributes at the beginning of the
test
andpredict
sequence in thesetup
call of the lightning model.The text was updated successfully, but these errors were encountered: