Giter VIP home page Giter VIP logo

Comments (1)

AlienceGG avatar AlienceGG commented on June 21, 2024

Hi Shixiang,

We appreciate your interest in our DPGN work.

As you know, different backbones (ConvNet/ResNet) should be cooperated with different training settings. In DPGN, a 5way-5shot task on miniImageNet using the ConvNet backbone, the specific parameter settings are introduced as follows. Due to the length limitations of paper, we didn't list out all the details in the paper. You could have a try and modify them if you like.

from collections import OrderedDict

config = OrderedDict()

config['dataset_name'] = 'mini-imagenet'
config['num_generation'] = 5
config['num_loss_generation'] = 3
config['generation_weight'] = 0.5
config['point_distance_metric'] = 'l1'
config['distribution_distance_metric'] = 'l1'


config['emb_size'] = 128
config['backbone'] = 'convnet'

train_opt = OrderedDict()
train_opt['num_ways'] = 5
train_opt['num_shots'] = 5
train_opt['batch_size'] = 40
train_opt['iteration'] = 100000
train_opt['lr'] = 1e-3
train_opt['weight_decay'] = 1e-6
train_opt['dec_lr'] = 15000
train_opt['lr_adj_base'] = 0.5
train_opt['dropout'] = 0.1
train_opt['loss_indicator'] = [1, 0, 0]

eval_opt = OrderedDict()
eval_opt['num_ways'] = 5
eval_opt['num_shots'] = 5
eval_opt['batch_size'] = 10
eval_opt['iteration'] = 1000
eval_opt['interval'] = 1000

config['train_config'] = train_opt
config['eval_config'] = eval_opt

Please note that config files and number/type of GPU(s) may affect experiment results (We didn't test the codebase on other environments). For most of our experiment results, we used 1~3 v100(32GB) card(s) to launch the model. Considering the hardware limitation for some people/lab, we released a config of 5way-1shot mini-ImageNet (ResNet12) that is guaranteed to be fed into a single 2080ti.

Let us know if you encounter any difficulty when reproducing the DPGN.

Yours,
DPGN Team

from dpgn.

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.