mirror of
https://github.com/open-mmlab/mmpretrain.git
synced 2025-06-03 14:59:18 +08:00
commit
52d8ea4621
@ -15,8 +15,7 @@ train_pipeline = [
|
||||
test_pipeline = [
|
||||
dict(type='Normalize', **img_norm_cfg),
|
||||
dict(type='ImageToTensor', keys=['img']),
|
||||
dict(type='ToTensor', keys=['gt_label']),
|
||||
dict(type='Collect', keys=['img', 'gt_label'])
|
||||
dict(type='Collect', keys=['img'])
|
||||
]
|
||||
data = dict(
|
||||
samples_per_gpu=16,
|
||||
|
@ -31,8 +31,7 @@ test_pipeline = [
|
||||
dict(type='CenterCrop', crop_size=224),
|
||||
dict(type='Normalize', **img_norm_cfg),
|
||||
dict(type='ImageToTensor', keys=['img']),
|
||||
dict(type='ToTensor', keys=['gt_label']),
|
||||
dict(type='Collect', keys=['img', 'gt_label'])
|
||||
dict(type='Collect', keys=['img'])
|
||||
]
|
||||
```
|
||||
|
||||
|
@ -59,8 +59,7 @@ train_pipeline = [
|
||||
dict(type='Resize', size=224)
|
||||
dict(type='Normalize', **img_norm_cfg),
|
||||
dict(type='ImageToTensor', keys=['img']),
|
||||
dict(type='ToTensor', keys=['gt_label']),
|
||||
dict(type='Collect', keys=['img', 'gt_label'])
|
||||
dict(type='Collect', keys=['img'])
|
||||
]
|
||||
```
|
||||
|
||||
|
@ -17,6 +17,6 @@ line_length = 79
|
||||
multi_line_output = 0
|
||||
known_standard_library = pkg_resources,setuptools
|
||||
known_first_party = mmcls
|
||||
known_third_party = PIL,cv2,mmcv,numpy,pytest,torch,torchvision
|
||||
known_third_party = PIL,cv2,mmcv,numpy,onnxruntime,pytest,torch,torchvision
|
||||
no_lines_before = STDLIB,LOCALFOLDER
|
||||
default_section = THIRDPARTY
|
||||
|
Loading…
x
Reference in New Issue
Block a user