Giter Site home page Giter Site logo

Comments (4)

Agito555 avatar Agito555 commented on August 15, 2024

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.

prlz77 avatar prlz77 commented on August 15, 2024

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.

Agito555 avatar Agito555 commented on August 15, 2024

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.

prlz77 avatar prlz77 commented on August 15, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.