Code Monkey home page Code Monkey logo

Comments (6)

lehduong avatar lehduong commented on September 26, 2024 2

Hi @Sharpiless, please check out this colab for full training scripts: https://colab.research.google.com/gist/lehduong/fba7e14367e2b5aedd8315a6518203b1/tiny_imagenet_train.ipynb

from kesi.

lehduong avatar lehduong commented on September 26, 2024

Hi Sharpiless. Thanks for your interest in our work. We used pre-trained models on Imagenet and fine-tune them on Tiny-Imagenet (modifying the pooling + fc layer). Did you use the same protocol?

from kesi.

Sharpiless avatar Sharpiless commented on September 26, 2024

Thanks for your apply! That's the settings I used for training the resnet34:

parser.add_argument('--data_root', default='data')
parser.add_argument('--model', default='resnet34_imagenet')
parser.add_argument('--dataset', default='tiny_imagenet')
parser.add_argument('--epochs', default=100, type=int, metavar='N',
                    help='number of total epochs to run')
parser.add_argument('-b', '--batch-size', default=128, type=int,
                    metavar='N',
                    help='mini-batch size (default: 256), this is the total '
                         'batch size of all GPUs on the current node when '
                         'using Data Parallel or Distributed Data Parallel')
parser.add_argument('--warm_up_epoches', default=10, type=int,
                    metavar='WPI', help='warm up epoches')
parser.add_argument('--warm_up_lr', default=0.01, type=int,
                    metavar='WPI', help='warm up learning rate')
parser.add_argument('--lr', '--learning-rate', default=0.1, type=float,
                    metavar='LR', help='initial learning rate', dest='lr')
parser.add_argument('--lr_decay_milestones', default="50,75", type=str,
                    help='milestones for learning rate decay')
parser.add_argument('--evaluate_only', action='store_true',
                    help='evaluate model on validation set')
parser.add_argument('--resume', default='', type=str, metavar='PATH',
                    help='path to latest checkpoint (default: none)')
parser.add_argument('--gpu', default=0, type=int,
                    help='GPU id to use.')

with pretrained weights on Imagenet and arguments with random crop and random flip. Could you give me some advice? Thanks a lot.

from kesi.

Sharpiless avatar Sharpiless commented on September 26, 2024

Training code is modified from https://github.com/zju-vipa/DataFree/blob/main/train_scratch.py

from kesi.

lehduong avatar lehduong commented on September 26, 2024

Hi, I'm finding my old training scripts for tiny-imagenet. I'll try to reproduce the result and send it as soon as possible.

from kesi.

Sharpiless avatar Sharpiless commented on September 26, 2024

Thank you very much for your timely reply and solving the problem!

from kesi.

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.