open-mmlab / mmaction

An open-source toolbox for action understanding based on PyTorch
https://open-mmlab.github.io/
Apache License 2.0
1.86k stars 351 forks source link

About the mean and std of I3D (inception-v1)? #218

Open fjchange opened 4 years ago

fjchange commented 4 years ago

At test_configs/I3D_RGB/i3d_kinetics400_3d_rgb_inception_v1_seg1_f64s1.py, I find out the mean and std is

img_norm_cfg = dict( mean=[123.675, 116.28, 103.53], std=[58.395, 57.12, 57.375], to_rgb=True)

But in the source repo kinetics-i3d, whose ReadMe.md tells that:

From the RGB data, we added 1 and then divided by 2 to rescale between 0 and 1.

It seems the mean and std not match.

The mean and std of inception-v1 should be [128,128,128], [128,128,128], which may be mixed with the mean and std of Resnet-50.

kennymckormick commented 3 years ago

Thanks for pointing out the bug, I will provide a fix PR.