Skip to content

Are these 2 lines of code necessary? #3184

@jc-hou

Description

@jc-hou

Hi,
https://github.com/pytorch/vision/blob/master/references/video_classification/train.py#L134
https://github.com/pytorch/vision/blob/master/references/video_classification/train.py#L169

I wonder if these two lines are necessary.
Why do we need to assign transforms to dataset after loading them from cache, whose transforms have been declared when being saved.
I remove them and code seems still work.
Thanks.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions