-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Feature] EfficientNets NoisyStudent & L2. (#1122)
* add mvit 21k * add mvit 21k * add effnet noisy student * Revert "add mvit 21k" This reverts commit f51067c. * revert mvit pr * update link and readme * update readme * update l2 link * update link Co-authored-by: Ezra-Yu <[email protected]>
- Loading branch information
Showing
8 changed files
with
374 additions
and
57 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -136,3 +136,10 @@ venv.bak/ | |
|
||
# slurm | ||
*.out | ||
|
||
# tensorflow | ||
*.tar.gz | ||
checkpoint | ||
model_params.txt | ||
*.ckpt* | ||
results.txt |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
# model settings | ||
model = dict( | ||
type='ImageClassifier', | ||
backbone=dict(type='EfficientNet', arch='l2'), | ||
neck=dict(type='GlobalAveragePooling'), | ||
head=dict( | ||
type='LinearClsHead', | ||
num_classes=1000, | ||
in_channels=5504, | ||
loss=dict(type='CrossEntropyLoss', loss_weight=1.0), | ||
topk=(1, 5), | ||
)) |
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
_base_ = [ | ||
'../_base_/models/efficientnet_l2.py', | ||
'../_base_/datasets/imagenet_bs32.py', | ||
'../_base_/schedules/imagenet_bs256.py', | ||
'../_base_/default_runtime.py', | ||
] | ||
|
||
# dataset settings | ||
train_pipeline = [ | ||
dict(type='LoadImageFromFile'), | ||
dict(type='EfficientNetRandomCrop', scale=475), | ||
dict(type='RandomFlip', prob=0.5, direction='horizontal'), | ||
dict(type='PackClsInputs'), | ||
] | ||
|
||
test_pipeline = [ | ||
dict(type='LoadImageFromFile'), | ||
dict(type='EfficientNetCenterCrop', crop_size=475), | ||
dict(type='PackClsInputs'), | ||
] | ||
|
||
train_dataloader = dict(dataset=dict(pipeline=train_pipeline)) | ||
val_dataloader = dict(dataset=dict(pipeline=test_pipeline)) | ||
test_dataloader = dict(dataset=dict(pipeline=test_pipeline)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
_base_ = [ | ||
'../_base_/models/efficientnet_l2.py', | ||
'../_base_/datasets/imagenet_bs32.py', | ||
'../_base_/schedules/imagenet_bs256.py', | ||
'../_base_/default_runtime.py', | ||
] | ||
|
||
# dataset settings | ||
train_pipeline = [ | ||
dict(type='LoadImageFromFile'), | ||
dict(type='EfficientNetRandomCrop', scale=800), | ||
dict(type='RandomFlip', prob=0.5, direction='horizontal'), | ||
dict(type='PackClsInputs'), | ||
] | ||
|
||
test_pipeline = [ | ||
dict(type='LoadImageFromFile'), | ||
dict(type='EfficientNetCenterCrop', crop_size=800), | ||
dict(type='PackClsInputs'), | ||
] | ||
|
||
train_dataloader = dict(batch_size=8, dataset=dict(pipeline=train_pipeline)) | ||
val_dataloader = dict(batch_size=8, dataset=dict(pipeline=test_pipeline)) | ||
test_dataloader = dict(batch_size=8, dataset=dict(pipeline=test_pipeline)) |
Oops, something went wrong.