Comments (5)
See get_mean_and_std(dataset)
in utils.py
. It's OK to use a different std for training.
from pytorch-cifar.
Should be [0.2470, 0.2435, 0.2616]
. See here.
from pytorch-cifar.
I think the divide operation in get_mean_and_std(dataset) function should be 255. while not the len(dataset)
from pytorch-cifar.
I think the divide operation in get_mean_and_std(dataset) function should be 255. while not the len(dataset)
It should be len(dataset) because the code is summing up the std for all images. Dividing by len(dataset) gives the averaged std.
from pytorch-cifar.
Should be
[0.2470, 0.2435, 0.2616]
. See here.
Not really. The way you computed gives the std of the tensor of size [50000, 32, 32]. However, the desired quantity is the "averaged" std across all the images. Also, when computing the std for a single image, degree of freedom should be 1. (See https://github.com/kuangliu/pytorch-cifar/blob/master/utils.py)
from pytorch-cifar.
Related Issues (20)
- RegNet hyperparameters questions
- A bug in dla.py
- pytorch-cifar复现问题 HOT 4
- MobileNetV2 training does not converge HOT 1
- The test set is being used as validation set HOT 6
- 对于精度有疑问 HOT 2
- pre-train weights
- request: epochs numbers to converge in readme.md HOT 1
- ResNet18 performs much better than expected! HOT 5
- how to train my own dataset and classes? HOT 1
- [Question] efficientnet performance HOT 1
- Error when loading the weights on CPU but trained on GPU HOT 1
- Errors when testing on CPU HOT 11
- checkpoint
- ValueError: not enough values to unpack (expected 2, got 0) HOT 3
- load state_dict HOT 1
- Overfitting on ResNet18 HOT 2
- Performance degradation when loading a model after saving it HOT 2
- A problem in ShuffleNet
- How long will it take you to train the cifar10 model? HOT 1
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 pytorch-cifar.