Comments (2)
Hi GuokaiLiu,
Sorry for my late reply. Those numbers come with PyTorch data loader. Cifar10 has 3 mean and std values, while MNIST only has one. This is mainly because CIFAR images are 3-channel and MNIST images are 1-channel images.
If you want to calculate the mean and standard deviation for your own dataset, you could iterate through your entire images, and find the mean values of each channel. Similarwise, follow the same step for standard deviation as well. In practice, however, I've seen many people who simply use ImageNet mean and standard deviation for their custom datasets.
from ganomaly.
Due to inactivity, I assume that this has been resolved, and am closing the issue. Feel free to re-open it if you still encounter any further problems.
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.