Comments (4)
If the input of the net is of 64x3x224x224 dimension,where 64 is the batch size,3 is the channels and 224 is the size of the original image,and i run the code and find out that the output's dimension of the net is 4802x10,where 10 is the classes to predict.
Is the output correct?Shouldn't the dimension of the output be 64x10?
Maybe i get something wrong?
from resnext.pytorch.
Hi @Agito555 the problem is that the network expects images of size 32, so inputting 224 results in bigger feature maps, which messes up with the average pooling https://github.com/prlz77/ResNeXt.pytorch/blob/master/models/model.py#L138
I suggest you just change the above line by x.mean((2,3))
Hope this helps!
Pau
from resnext.pytorch.
Yeah,thanks for your reply. I take it for granted that the input size of the image is the same as the size in the paper.
I also want to know whether the network architecture is a little bit different from the architecture(Resnext50) in the paper?
from resnext.pytorch.
Well in the paper they also try CIFAR (Table 7) for which the input is 32x32. There should be no differences with respect to the CIFAR model. If there are, it could be due to many reasons such as differences in the frameworks used to train the models.
from resnext.pytorch.
Related Issues (18)
- Questions about the performances. HOT 23
- GPU memory usage during training HOT 1
- Pretrained model link broken HOT 4
- question about the input img size HOT 8
- Sublinear speed-up with dataparallel HOT 1
- Is the D right ? HOT 6
- About initial learning rate HOT 2
- The structure problem
- cannot run inference mismatch sizes HOT 2
- Could you provide the ResNeXt of Caffe version ?
- RuntimeError: Error(s) in loading state_dict for CifarResNeXt: HOT 1
- Can I directly convert TensorFlow's ResNext weight to pytorch's weight and use it directly? HOT 2
- GPU memory usage HOT 1
- Question about the number of channels HOT 4
- OSError: [Errno 12] Cannot allocate memory HOT 13
- sizes do not match HOT 1
- TypeError: tensor(0, device='cuda:0') is not JSON serializable HOT 3
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 resnext.pytorch.