Git Product home page Git Product logo

Comments (3)

mboudiaf avatar mboudiaf commented on May 27, 2024

Hi !
Thank you very much for your interest and for raising this issue. I've tried running 10'000 16-ways -1-shot tasks using the models I had trained (the ones available for download) and I get the following convergence plot for TIM-GD:

image

with a final result just below 49%, and a baseline (i.e SimpleShot method) around 39%, which makes more sense. I will investigate further on the training script, and run everything from scratch to make sure no mistake was introduced in my latest commits. I will get back to you soon.

UPDATE : It seems in my latest commit I introduced a duplicate scheduler.step() in both main.py and trainer.py, which caused the learning rate to decay twice as fast as it should, degrading the results. Using the "bugged" coded, I was still able to get 44% in your setting, and fixing the bug I could obtain 48% + after training. I have pushed my changes. Please could you pull and see if that solves your problem ? Thank you :)

Malik

from tim.

SnowyJune973 avatar SnowyJune973 commented on May 27, 2024

Hi !
Thank you very much for your interest and for raising this issue. I've tried running 10'000 16-ways -1-shot tasks using the models I had trained (the ones available for download) and I get the following convergence plot for TIM-GD:

image

with a final result just below 49%, and a baseline (i.e SimpleShot method) around 39%, which makes more sense. I will investigate further on the training script, and run everything from scratch to make sure no mistake was introduced in my latest commits. I will get back to you soon.

UPDATE : It seems in my latest commit I introduced a duplicate scheduler.step() in both main.py and trainer.py, which caused the learning rate to decay twice as fast as it should, degrading the results. Using the "bugged" coded, I was still able to get 44% in your setting, and fixing the bug I could obtain 48% + after training. I have pushed my changes. Please could you pull and see if that solves your problem ? Thank you :)

Malik

Thank you for your efforts!
It was my fault that I didn't mention further details on how I obtained the 39.44% result. I didn't use TIM-GD or other TIM-* methods to do this, instead I trained a classifier with WRN as the backbone and a FC layer attached to it, using the training parameters adopted in this project, so I think the "bugged" code will not affect the result I got (my codes are based on pretrain.py and model/models/classifier.py in FEAT) .
It should be fine if the configuration in the scripts/train/wideres.sh and src/trainer.py is nothing wrong. Besides, I noticed you introduced a MixUp augmentation in the training process of trainer.py, but it seems to be deprecated in recent versions. Could you tell me if you activated it when getting the results shown on the paper? That may be a crucial factor. Thanks :)

from tim.

mboudiaf avatar mboudiaf commented on May 27, 2024

Hi,

  1. I recommend you use the code from this repo to pre-train your model if you want to obtain results for TIM. From what I see, the code in pretrain.py from the FEAT code is not using a standard cross-entropy training as we do, but an episodic one. In this case, using the same hyperparameters as the ones I am using does not really make sense. Am I missing something ?
  2. I have left the possibility to use mixup for future attempts, but the results presented in our paper does not include mixup augmentation during pre-training.

Best,
Malik

from tim.

Related Issues (11)

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.