kenshohara / 3D-ResNets-PyTorch

3D ResNets for Action Recognition (CVPR 2018)
MIT License
3.9k stars 932 forks source link

Can I sample input videos uncontinuously? #79

Open clover978 opened 6 years ago

clover978 commented 6 years ago

I am conducting experiments on UCF-101. When referring to datasets/ucf101.py, I didn't found any arguments to support uncontinuously sampling. Did I miss something?

kenshohara commented 6 years ago

You mean you want to change sampling stride in test step, right? I currently do not implement the sampling stride. You can add a sample_stride variable and change sample_duration to sample_stride to implement that. https://github.com/kenshohara/3D-ResNets-PyTorch/blob/master/datasets/ucf101.py#L127