Skip to content

xxLifeLover/MGAug

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MBML

# train w/ MGAug
python train.py --net Conv4 --alg ProtoNet --dataset CUB --net_aug mask-layer-snip-mbml-small --min_width 0.97 --max_width 1. --shot_aug resize --num_shot 1 --num_way 5
# test
python test.py --net Conv4 --alg ProtoNet --dataset CUB --net_aug mask-layer-snip-mbml-small --min_width 0.97 --max_width 1. --shot_aug resize --num_shot 1 --num_way 5


# train w/o MGAug
python train.py --net Conv4 --alg ProtoNet --dataset CUB --num_shot 1 --num_way 5
# test
python test.py --net Conv4 --alg ProtoNet --dataset CUB --num_shot 1 --num_way 5

--net (Conv4, ResNet10)

--alg (ProtoNet)

--dataset (CUB)

--net_aug (mask-layer-snip-mbml, mask-layer-snip-mbml-small)

--shot_aug ( ,resize)

--num_shot (1, 5)

--num_way (1, 5)

GBML

# train w/ MGAug
python train.py --net Conv4 --alg FOMAML --dataset CUB --net_aug mask-layer-snip-fomaml-small --min_width 0.98 --max_width 1. --shot_aug resize --num_shot 1 --num_way 5
# test
python test.py --net Conv4 --alg FOMAML --dataset CUB --net_aug mask-layer-snip-fomaml-small --min_width 0.98 --max_width 1. --shot_aug resize --num_shot 1 --num_way 5


# train w/o MGAug
python train.py --net Conv4 --alg FOMAML --dataset CUB --num_shot 1 --num_way 5
# test
python test.py --net Conv4 --alg FOMAML --dataset CUB --num_shot 1 --num_way 5

--net (Conv4, ResNet10)

--alg (MAML, FOMAML)

--dataset (CUB)

--net_aug (mask-layer-snip-fomaml, mask-layer-snip-fomaml-small)

--shot_aug ( ,resize)

--num_shot (1, 5)

--num_way (1, 5)

Dependencies

Citation

About

The implementation of the MGAug method.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages