Skip to content
This repository has been archived by the owner on Jan 12, 2024. It is now read-only.

Added netg.eval() for inference mode, to fix the behaviour of Batchnorm #56

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

KMvanHespen
Copy link

Added netg.eval() for inference mode, to fix the behaviour of Batchnorm. Without this line, batch statistics are used during inference. Instead, we want to use running statistics during inference.

@hsekki
Copy link

hsekki commented Dec 11, 2021

Hi @KMvanHespen , @samet-akcay , I'm trying to use ganomaly as classifier to classify an image as normal(0) or abnormal(1). But I'm having trouble implementing it cause I think it is not straightforward. I'm done training with normal samples and tested with normal and abnormal. Could it be used also in inference of one image and return 0 if normal and 1 if it is abnormal? It would be a great help coz I feel stuck. Thanks in advance.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants