ChengyueGongR / PatchVisionTransformer

71 stars 13 forks source link

The training can not run #1

Open wangpichao opened 3 years ago

wangpichao commented 3 years ago

/PatchVisionTransformer/deit/models.py", line 232, in similarity high_order = (patches.mean(dim=(2, 3), deepdim=True) - patches / (img_size * 2)) (img_size 2) / (img_size 2 - 1) TypeError: mean() received an invalid combination of arguments - got (deepdim=bool, dim=tuple, ), but expected one of:

ChengyueGongR commented 3 years ago

Thanks for your information. It should be changed into `patches.mean(dim=(2, 3), deepdim=True))'

wangpichao commented 3 years ago

Thanks for your information. It should be changed into `patches.mean(dim=(2, 3), deepdim=True))'

In fact, your release codes have other errors, and I suggest you run the released codes again to make sure it is runable. Thanks.

ChengyueGongR commented 3 years ago

Thanks for your advice. The issues are caused by the `similarity function.