Scheaven
2021-09-18 291deeb1fcf45dbf39a24aa72a213ff3fd6b3405
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
U
è³æ`    ã@s.ddlmZddlTddlmZddd„ZdS)    éNé)Ú*)Ú AutoAugmentTc    CsÜg}|rŠ|jj}|jj}|jj}|jj}|jj}|jj}|jj}    |jj    }
|jj
} |jj j } |jj j } |jj j}|jj j}|jj j}|jj j}|jjj }|jjj }|jjj}|jjj }|jjj }|rÒ| t|ƒ¡| tj|dd¡|rü| tj|d¡|    r | tj|
| dt |¡g¡| rH| tjt ||||¡g| d¡|rZ| tƒ¡|rr| t ||d¡|r¦| t!|d¡n|jj"}| tj|dd¡| t#ƒ¡| tj$ddd    gd
d d gd ¡t %|¡S)Né)Ú interpolation)Úp)Ú padding_mode)Z probabilityÚmean)Z prob_happeng33333ë^@gR¸…ë]@gR¸…ëáY@gÃõ(\2M@gÂõ(\L@g°L@)r    Ústd)&ÚINPUTÚ
SIZE_TRAINÚ    DO_AUGMIXÚ
DO_AUTOAUGÚSOLVERÚMAX_ITERÚDO_FLIPÚ    FLIP_PROBÚDO_PADÚPADDINGÚ PADDING_MODEÚCJÚENABLEDÚPROBÚ
BRIGHTNESSÚCONTRASTÚ
SATURATIONÚHUEÚREAÚMEANÚRPTÚappendrÚTÚResizeZRandomHorizontalFlipÚextendZPadZ
RandomCropZ RandomApplyZ ColorJitterZAugMixZ RandomErasingZ RandomPatchÚ    SIZE_TESTÚToTensorZ    NormalizeÚCompose)ÚcfgÚis_trainÚresZ
size_trainZ    do_augmixZ
do_autoaugZ
total_iterZdo_flipZ    flip_probZdo_padÚpaddingrZdo_cjZcj_probZ cj_brightnessZ cj_contrastZ cj_saturationZcj_hueZdo_reaZrea_probZrea_meanZdo_rptZrpt_probZ    size_test©r+ú\/data/disk1/workspace/06_reid/01_fast_reid/02_fast_reid_inference/./data/transforms/build.pyÚbuild_transformssX
 
 
 
 
 
 
 
 
 
 
ÿ"   r-)T)Útorchvision.transformsÚ
transformsr!Ú autoaugmentrr-r+r+r+r,Ú<module>s