sangmin-git / LMC-Memory

Official PyTorch implementation of "Video Prediction Recalling Long-term Motion Context via Memory Alignment Learning" (CVPR 2021 Oral)
Other
86 stars 22 forks source link

Fail to run the movingmnist #13

Open astraeus1258 opened 3 years ago

astraeus1258 commented 3 years ago

I try to run the model using movingmnist but failed, it shows "RuntimeError: The size of tensor a (7) must match the size of tensor b (4) at non-singleton dimension 3", I checked the dataset and make sure that the number of pictures can be envely divisible. Could you please tell me why?

sangmin-git commented 2 years ago

This error is caused by mismatch of two tensor sizes, so it is needed to check debugging at that point. If the input is properly given (refer to dataset section in README.md), no error occurs with the code.

Thanks!

astraeus1258 commented 2 years ago

Thank you for your reply! Last few days I tried to figure out the errors and had run the code successfully.Next I will use my own dataset, thanks again for your code and your reply!

---Original--- From: "Sangmin @.> Date: Tue, Dec 7, 2021 14:10 PM To: @.>; Cc: @.**@.>; Subject: Re: [sangmin-git/LMC-Memory] Fail to run the movingmnist (Issue #13)

This error is caused by mismatch of two tensor sizes, so it is needed to check debugging at that point. If the input is properly given (refer to dataset section in README.md), no error occurs with the code.

Thanks!

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe. Triage notifications on the go with GitHub Mobile for iOS or Android.