Open datumbox opened 2 years ago
Plus, The Kinetics400
class is also deprecated:
Not sure why this is not showing up for you though.
@pmeier Good point. It does. I just missed this because the other warning is spammed 100s of times at the beginning:
UserWarning: The Kinetics400 class is deprecated since 0.12 and will be removed in 0.14.Please use Kinetics(..., num_classes='400') instead.
So we should does this mean that we need to update the reference scripts not to use Kinetics400 then?
So this entails of two things:
[x] fix dataset creation
[x] adapt videoclips object to avoid warning
Now, since we've had to revert the change because of which we introduced 2nd (see #5489), I'll simply remove the warning for now, and document this in #5720 for further action
🐛 Describe the bug
Using Kinetics400 from references leads to a deprecation warning. The fastest way to reproduce:
It seems this is due to the following line: https://github.com/pytorch/vision/blob/b7c59a086f4e45b8e5e799084e97cca775977a3b/torchvision/datasets/video_utils.py#L327
Which calls the method with the default parameter for
pts_unit="pts"
which is deprecated: https://github.com/pytorch/vision/blob/b7c59a086f4e45b8e5e799084e97cca775977a3b/torchvision/io/video.py#L155-L163If the specific option is deprecated, TorchVision shouldn't be using the feature.
Versions
Latest main branch
cc @pmeier @YosuaMichael @bjuncek