YoungGod / DFR

Project: Unsupervised Anomaly Segmentation via Deep Feature Reconstruction

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

extractor.train()?

yunsangq opened this issue · comments

Hi, Thanks for your code!!

extractor was not included in the optimizer parameter.
So, I think the extractor was only used for inference, but wonder why used train().
In this case, batch_norm different results than eval().
because running_mean, running_var changed when train().

self.extractor.train()

self.extractor.train()

self.optimizer = optim.Adam(self.autoencoder.parameters(), lr=self.lr, weight_decay=0)