mirror of
https://github.com/open-mmlab/mmpretrain.git
synced 2025-06-03 14:59:18 +08:00
* init add densenet implementation * Add config and converted models * update meta * add test for memory efficient * Add docs * add doc for jit * Update checkpoint path * Update readthedocs Co-authored-by: mzr1996 <mzr1996@163.com>
12 lines
316 B
Python
12 lines
316 B
Python
# Model settings
|
|
model = dict(
|
|
type='ImageClassifier',
|
|
backbone=dict(type='DenseNet', arch='161'),
|
|
neck=dict(type='GlobalAveragePooling'),
|
|
head=dict(
|
|
type='LinearClsHead',
|
|
num_classes=1000,
|
|
in_channels=2208,
|
|
loss=dict(type='CrossEntropyLoss', loss_weight=1.0),
|
|
))
|