-
Hello, I am trying to run exercise 2, but when I try to train my model, I run into an error at the end of the first epoch as it appears there is one data point that is a different size than the rest. When I print out the shape of x in the train_epoch() function, for every value until the last one I get:
But the final data point is:
Which creates the error: ValueError Traceback (most recent call last) Cell In[59], line 35 Cell In[52], line 34 ValueError: expected sequence of length 32 at dim 1 (got 17) I am not sure if it has something to do with an error in the data or there is something wrong with my method of handling it, but I would appreciate any guidance about what I can do to fix it. Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 1 reply
-
Can you let me know the config of this experiment? Which parameters have you changed in the config files under |
Beta Was this translation helpful? Give feedback.
-
I haven’t changed any of the configurations other than the learning rate and fixing a couple of file path errors that happened the first time I tried to run the hydra code. (taking the ex2 out of _target_: ex_2.dataset.PolImgDataset for example).
… On Sep 16, 2024, at 12:07 PM, Yilun Wu ***@***.***> wrote:
Can you let me know the config of this experiment? Which parameters have you changed in the config files under ex_2/config?
—
Reply to this email directly, view it on GitHub <https://urldefense.com/v3/__https://github.com/tudelft/AE4353-Y24/discussions/20*discussioncomment-10657731__;Iw!!LIr3w8kk_Xxm!tb2t_nW8DJ8SRlkvCttqPzpUejzmzeBFPnz7rYOEl8YeMMp1svP761jEffEuw67LLAmPf8kVbYRLmde995IMgw$>, or unsubscribe <https://urldefense.com/v3/__https://github.com/notifications/unsubscribe-auth/AY4LOUZP55F4OQTYYQMGSWDZW2UUPAVCNFSM6AAAAABOI5LM42VHI2DSMVQWIX3LMV43URDJONRXK43TNFXW4Q3PNVWWK3TUHMYTANRVG43TGMI__;!!LIr3w8kk_Xxm!tb2t_nW8DJ8SRlkvCttqPzpUejzmzeBFPnz7rYOEl8YeMMp1svP761jEffEuw67LLAmPf8kVbYRLmdfNQ-JArw$>.
You are receiving this because you authored the thread.
|
Beta Was this translation helpful? Give feedback.
-
This has been fixed in 65388fc. |
Beta Was this translation helpful? Give feedback.
This has been fixed in 65388fc.