WS_DAN icon indicating copy to clipboard operation
WS_DAN copied to clipboard

PyTorch version code is available. Thank wvinzh!

Open wvinzh opened this issue 5 years ago • 7 comments

I run the tf code and got a 89+% acc, I think my implementation is almost the same as your tf version, so is there any details that you didn't mentioned in the paper?

wvinzh avatar Nov 14 '19 02:11 wvinzh

pytorch version result:

Dataset ACC ACC Refine
CUB-200-2011 87.401 87.487
Stanford Cars 92.837 93.595
FGVC-Aircraft 89.319 89.769

wvinzh avatar Nov 21 '19 11:11 wvinzh

All details are shown in this code. You can check the improvement of each module according to the table in the paper. In my experiment, attention regularization or center loss and feature scale are pretty important, which might be different between TensorFlow and PyTorch.

tau-yihouxiang avatar Nov 24 '19 15:11 tau-yihouxiang

embeddings = end_points_1['embeddings']这里报错,KeyError: 'embeddings'这里是取的那一层的特征图啊?谢谢!

Danbinabo avatar Nov 26 '19 08:11 Danbinabo

@tau-yihouxiang Thanks a lot! I found i ignored normalization when calculating center loss, and now i got 89.2% acc

wvinzh avatar Nov 27 '19 05:11 wvinzh

@wvinzh Congratulations!

tau-yihouxiang avatar Nov 28 '19 03:11 tau-yihouxiang

PyTorch version code is available: WS_DAN_PyTorch

wvinzh avatar Nov 30 '19 07:11 wvinzh

@wvinzh For Stanford-Dog, you can try Mixed_7c instead of Mixed_6e as shown in train_sample_dog.sh

tau-yihouxiang avatar Nov 30 '19 09:11 tau-yihouxiang