Git Product home page Git Product logo

Comments (3)

ChiShengChen avatar ChiShengChen commented on June 3, 2024

@DianaZhongHua , thanks for reading our work! You did't misunderstand anything, the model class is still 1000 is because we only change the data file to the CNFOOD-241, the data file folder structure is the same as the imagenet, but only input 241 classes of data.
If you has some reproduced result, it is welcome to share with us!

from resvmamba.

DianaZhongHua avatar DianaZhongHua commented on June 3, 2024

Hi ChiSheng,
Thank you for your prompt response to my previous query about using the CNFOOD-241 dataset with the 1000-class model structure. I'm curious about the specifics of how the 241 classes are mapped to the model's 1000-class output layer.

Could you shed some light on how you handle the mapping during training and inference? Are there certain indices within the 1000 classes that are designated for CNFOOD-241, or do you apply any post-processing to filter out the predictions for the non-existing classes?

Any details you can provide would be greatly helpful for my understanding. Thank you!

from resvmamba.

ChiShengChen avatar ChiShengChen commented on June 3, 2024

Hi @DianaZhongHua , the reason that the class input in model is 1000 is because I use the original imagenet dataloader but input the CNFOOD241 data folder, and according to my understanding, although the input class is 1000, but the model weight still can train with the classes under the 1000 (like 241) still works fine. You can see the build.py for detail:

nb_classes = 1000

I have re-run the code, and it worked fine in my environment on a 3080:
Screenshot from 2024-03-27 01-20-07

from resvmamba.

Related Issues (3)

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.