Comments (5)
Due to my busy schedule, I won't be able to update the code in short-term. But here is the idea: based on the dataset you train the model on, you could find the threshold for anomaly scores (See Figure 6a in the paper). Then based on this anomaly score, you could classify an input image as either normal or abnormal. I'm happy to answer any more questions that you might have.
from ganomaly.
@samet-akcay I also has met this questions, I write a test code according your test() in model.py, the input is an image, I print the error value, how can I classify it real or fake according to the error value?
from ganomaly.
I created the custom dataset as mentioned in the README.txt with train and test directories.
train -> normal
test -> normal
-> abnormal
During training, the code splits the train set into "train" and "test". This means that it does not process the original test set created.
My question is how can I test the code on the "test" dataset which has normal and abnormal images.
Also, when the training is completed, my final AUC reading is:
AUC: 0.797 max AUC: 0.816
but when the ROC is drawn, I am getting the AUC as:
AUC = 0.80, EER = 0.28
Can anyone explain to me why am I getting this AUC value? As I am new to this field, I am trying to understand the calculations.
Any explanation is appreciated.
from ganomaly.
@ samet-akcay
Hello samet-akcay,
Firstable,thanks for ur work,
I wanna know the predict answer with test data, I searching the threshold,but cant find it,dose it is " _ " in evaluate.py ?
evaluate.py :
fpr, tpr, _ = roc_curve(labels, scores)
If it is,it has arranged,how can I make it arrang with test data?
Very thanks for your help and great work!
from ganomaly.
I created the custom dataset as mentioned in the README.txt with train and test directories.
train -> normal
test -> normal
-> abnormal
During training, the code splits the train set into "train" and "test". This means that it does not process the original test set created.
My question is how can I test the code on the "test" dataset which has normal and abnormal images.Also, when the training is completed, my final AUC reading is:
AUC: 0.797 max AUC: 0.816
but when the ROC is drawn, I am getting the AUC as:
AUC = 0.80, EER = 0.28
Can anyone explain to me why am I getting this AUC value? As I am new to this field, I am trying to understand the calculations.Any explanation is appreciated.
hi,why in my train the AUC is always nan,but the train generate picture is not too bad
from ganomaly.
Related Issues (20)
- how can i balance the model HOT 7
- how can i see the result of test?? HOT 1
- How to distinguish a mnist_pic is normal or anomaly? HOT 17
- Sudden increase of err_d HOT 1
- Changes for Windows10
- Some qutestions about testing
- can it display where is the anomaly when inference? HOT 1
- what is the difference between fixed_fakes_*.png and fakes.png
- Is the testing function missing self.netg.eval? HOT 5
- AttributeError: module 'torch._C' has no attribute '_cuda_setDevice' HOT 4
- What's the performance of the model in terms of custom dataset?
- Can this code be used on sequence data? HOT 1
- How to use ganomaly neural network for single-channel data training
- Program stucks when the input image size is 224x224 HOT 2
- Experiment(To replicate the results in the paper for MNIST and CIFAR10 datasets)
- Testing
- Possible mode collapse HOT 1
- Test problem HOT 2
- Missing net.eval() in the testing code HOT 1
- ROC is changed every time
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ganomaly.