Coder Social home page Coder Social logo

Comments (2)

zhujilin1995 avatar zhujilin1995 commented on June 13, 2024 1

Thank you. I have unterstood what you said. Your code is clear and straightforward. It's excellent!The folders are also well-organized. I've benefited a lot.

from simsiam.

ahmdtaha avatar ahmdtaha commented on June 13, 2024

What is the purpose of the classifier_main file?

SimSiam is a self-supervised pretraining approach. After pre-training your model, you use the pre-trained model for initialization before fine-tuning on a down-stream task (e.g., a classification task).
Concretely, this repos is designed to run pretrain_main.py first. After completion, use the checkpoint created by pre-training, to fine-tune a model on a down-stream task (e.g., classifier_main.py)

Please make sure to read SimSiam paper.

How can I use model_best.pth?

After you train your model on a training split, you want to evaluate it on a val/test split.
Some people use the last checkpoint to evaluate their model. For instance, if a model is trained for 200 epochs, the checkpoint_200.pt is used for evaluation. Yet, this is not the only way for evaluation.
Some people use the checkpoint that achieved the best performance on the validation split to evaluate on a test split. This approach can be regarded as an early stopping approach. model_best.pth is the checkpoint that achieved the best performance on the validation split, and accordingly, you can use it evaluate on a test split

I hope this helps.

from simsiam.

Related Issues (7)

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.