Comments (1)
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)
- Question about avgpool size in backbone.py HOT 3
- Question about the dataset:CUB-200 HOT 1
- RuntimeError: cuDNN error: CUDNN_STATUS_NOT_SUPPORTED. HOT 2
- Questions about Resnet 12 backbone HOT 3
- 关于测试样本每类数目随机抽取的打乱测试 HOT 5
- ImportError: libcudart.so.9.0: cannot open shared object file: No such file or directory HOT 2
- Error running with CUB HOT 3
- About the num_queries HOT 1
- question about evaluation partition. HOT 1
- Ability to run my own data through the model HOT 3
- Show the image and label of query data HOT 1
- 请问一下您运行时的gpu条件是? HOT 2
- Could you please release the pre-trained conv4 model of miniImageNet?
- Could you release the config file of Conv4 in CUB?
- Question about backbone WRN
- trian CUB-200-2011 error HOT 1
- pickle file HOT 1
- the performance on mini-ImageNet HOT 1
- backbone of WRN and ResNet18
- 性能和论文中不符 HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dpgn.