Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error : expected tensor as element 0 in argument 0 #281

Open
sebyo opened this issue Sep 18, 2023 · 0 comments
Open

error : expected tensor as element 0 in argument 0 #281

sebyo opened this issue Sep 18, 2023 · 0 comments

Comments

@sebyo
Copy link

sebyo commented Sep 18, 2023

I tried to execute the script without the spatial transform (set it to None )
and I got the above error ?
the problem is in the loading function in videodataset.py

`def __loading(self, path, frame_indices):

     clip = self.loader(path, frame_indices)

     if self.spatial_transform is not None:

         self.spatial_transform.randomize_parameters()

         clip = [self.spatial_transform(img) for img in clip]

     clip = torch.stack(clip, 0).permute(1, 0, 2, 3)

    return clip`

any suggestion how can I work if I don't want to use the data transformations provided here

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant