GithubHelp home page GithubHelp logo

Comments (1)

SanghyukChun avatar SanghyukChun commented on June 5, 2024 2

No. We only use held-out sets for finding the hyperparameters. They are not used after the hyperparameter search. This is the correct procedure proposed in our paper:

  1. Train a number of models with the train-weaksup split (e.g., original CUB train set).
  2. Find the best model from (1) with the train-fullsup split (e.g., additional CUB V2).
  3. The best model chosen from (2) is tested with the test split (e.g., original CUB test set).

You can find the details in Section 5.2. "Comparison of WSOL methods".

(..) we have randomly searched the optimal hyperparam- eters over the train-fullsup with 30 trials
(..) The checkpoints that achieves the best localization performance on train-fullsup are used for evaluation.

You can also find the details in our code.

wsolevaluation/main.py

Lines 367 to 386 in 38d4aef

for epoch in range(trainer.args.epochs):
print("===========================================================")
print("Start epoch {} ...".format(epoch + 1))
trainer.adjust_learning_rate(epoch + 1)
train_performance = trainer.train(split='train')
trainer.report_train(train_performance, epoch + 1, split='train')
trainer.evaluate(epoch + 1, split='val')
trainer.print_performances()
trainer.report(epoch + 1, split='val')
trainer.save_checkpoint(epoch + 1, split='val')
print("Epoch {} done.".format(epoch + 1))
print("===========================================================")
print("Final epoch evaluation on test set ...")
trainer.load_checkpoint(checkpoint_type=trainer.args.eval_checkpoint_type)
trainer.evaluate(trainer.args.epochs, split='test')
trainer.print_performances()
trainer.report(trainer.args.epochs, split='test')
trainer.save_performances()

from wsolevaluation.

Related Issues (20)

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.