Giter Site home page Giter Site logo

Comments (5)

TDeVries avatar TDeVries commented on July 20, 2024

I didn't do any training tricks, aside from standard procedures like learning rate scheduling that are described in the paper. The code I originally used to get those numbers is almost identical to what is in the repo here. The only change is that I made things a bit neater for the release, but all of the actual processes are the same.

from cutout.

WeihanLikk avatar WeihanLikk commented on July 20, 2024

Thank you for your reply! I have tried to run many times, but still fail to achieve this accuracy. I think it is may because of the Pytorch version or hardware environment? I use Pytorch 1.4.0 and my environment is two titan x GPUs

Here is the record of my training process (.csv file) :

cifar100_resnet18.zip

from cutout.

TDeVries avatar TDeVries commented on July 20, 2024

Thanks for uploading your log!

There's something weird going on here. I plotted the results from your log and one of my logs (with data augmentation, no cutout), and there are a couple differences. The most obvious one is that yours doesn't have the sudden jumps which the learning rate scheduling causes. It looks like in PyTorch 1.4.0 they deprecated the old scheduler, so maybe that's causing the issue. You can try replacing scheduler.step(epoch) with scheduler.step() in train.py. The other noticeable difference is that your model appears to be learning much slower than mine, but I have no idea what might be causing that issue. Your model starts out fast but then slows down a lot, so maybe it's also related to the scheduler. I would try changing that and see how it does.

Your log
cifar100_no_scheduling

My log
cifar100_w_scheduling

from cutout.

WeihanLikk avatar WeihanLikk commented on July 20, 2024

Thanks for your advice! I manage to achieve the accuracy of 78%. I follow your advice by replacing scheduler.step(epoch) with scheduler.step(), and it works!

And here is my log:
cifar100_resnet18.zip

from cutout.

TDeVries avatar TDeVries commented on July 20, 2024

Thanks for the update! I've added some comments to the code in case anyone else runs into the same issue.

from cutout.

Related Issues (19)

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.