temporal-shift-module icon indicating copy to clipboard operation
temporal-shift-module copied to clipboard

how to train on ucf101 from scratch?

Open xiadingZ opened this issue 5 years ago • 2 comments

Does anyone train tsm on ucf101 only using imagenet pretrained resnet50? No Kinetics pretrained. I train tsm on ucf101 only using RGB stream, imagenet pretrained resnet50, with hyper-parameters same as TSN, only get 83.5 accuracy.

xiadingZ avatar Dec 17 '20 09:12 xiadingZ

Depending on the length of the clips it also to change the amount of frames you sample. This can drastically improve (or decrease) the accuracy you obtain. In order to do so, set --num_segments to a higher value. Note that you might have to decrease batch_size (and the learning rate) when you do this.

As per your question in the title, "How to train from scratch" (with only imagenet), you can do this by not finetuning from an already provided checkpoint. Instead just start an entirely new training and use --pretrain='imagenet' which is also the default value for --pretrain.

Fritskee avatar Jan 26 '21 09:01 Fritskee

Does anyone train tsm on ucf101 only using imagenet pretrained resnet50? No Kinetics pretrained. I train tsm on ucf101 only using RGB stream, imagenet pretrained resnet50, with hyper-parameters same as TSN, only get 83.5 accuracy.

would you please help me to train the model on UCF101. I am facing problem while training it

AbdulHaiKarimi avatar Dec 28 '23 04:12 AbdulHaiKarimi