Closed SigureMo closed 2 years ago
https://github.com/BR-IDL/PaddleViT/blob/de1ad11c0e7865570d0ab1ac4dfb56c3b3699899/image_classification/BEiT/config.py#L165-L167
目前 eval mode 如果不通过参数指定 batch_size,由于没有对 args.batch_size 值进行校验,会将默认值 None 传给 BATCH_SIZE_EVAL,因此对该逻辑进行了修正~
BATCH_SIZE_EVAL
Good Work! LGTM!
https://github.com/BR-IDL/PaddleViT/blob/de1ad11c0e7865570d0ab1ac4dfb56c3b3699899/image_classification/BEiT/config.py#L165-L167
目前 eval mode 如果不通过参数指定 batch_size,由于没有对 args.batch_size 值进行校验,会将默认值 None 传给
BATCH_SIZE_EVAL
,因此对该逻辑进行了修正~