You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
📋 [TASK] How to Use a Trained GANomaly Model from Anomalib in C++ #2501
I have trained a GANomaly model using the Anomalib library and would like to integrate it into a C++ project. Could you provide guidance or examples on how to export and use the trained model in C++, along with any required dependencies or best practices?
Thank you!
Acceptance Criteria
1- Model Export: Guidance on exporting the trained GANomaly model (e.g., ONNX, TorchScript).
2- Integration: Example or steps to load and run the model in C++.
3- Dependencies: Required libraries/tools for integration (e.g., [ONNX RUNTIME, OpenCV).
4- Documentation: Links to resources for troubleshooting.
Activity
samet-akcay commentedon Jun 11, 2025
Hi @maryamkhv, we have a repository tailored for python and c++ inference. It has a sample c++ inference implementation for anomaly detection tasks. Although it does not directly support anomalib models, it might give you an idea how you could implement it
https://github.com/open-edge-platform/model_api/blob/master/src/cpp/models/src/anomaly_model.cpp