Skip to content
Discussion options

You must be logged in to vote

@tominator95 The lightning model sits on top of the torch model. The output of the torch model is the anomaly map. In the base anomaly lightning model (https://github.com/openvinotoolkit/anomalib/blob/d80d37db79bee58ff69fe856fac8579f7c6340ac/anomalib/models/components/base/anomaly_module.py#L82) we add the masks, labels, and scores etc to the outputs of the torch model. This is because when we export the torch model for deployment (onnx, openvino, etc), the anomaly map generation can be frozen with the model graph. The other computations can always be done on top of the these outputs.

Our tools/inference/torch_inference.py script (https://github.com/openvinotoolkit/anomalib/blob/d80d37db7…

Replies: 3 comments 5 replies

Comment options

You must be logged in to vote
3 replies
@tominator95
Comment options

@ashwinvaidya17
Comment options

@tominator95
Comment options

Answer selected by tominator95
Comment options

You must be logged in to vote
1 reply
@blaz-r
Comment options

Comment options

You must be logged in to vote
1 reply
@blaz-r
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
5 participants
Converted from issue

This discussion was converted from issue #598 on September 29, 2022 07:45.