Skip to content

📋 [TASK] How to Use a Trained GANomaly Model from Anomalib in C++ #2501

Closed

Description

@maryamkhv

Describe the task

Hi,

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.

Priority

Medium

Related Epic

No response

Estimated Time

No response

Current Status

Not Started

Additional Information

No response

Activity

  1. samet-akcay commented on Jun 11, 2025

    @samet-akcay
    Contributor

    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

  2. locked and limited conversation to collaborators on Jun 11, 2025
  3. converted this issue into a discussion #2758 on Jun 11, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions