Error running Kaggle example: Forward() takes 2 positional arguments but 3 were given #153
Unanswered
TimbusCalin
asked this question in
Q&A
Replies: 2 comments
-
My fault --- I did not instantiate the model correctly. For those interested, have a look here: def get_net():
|
Beta Was this translation helpful? Give feedback.
0 replies
-
@TimbusCalin yeah, not a bug but just examples that are out of date with the latest here... I'll move this to discussion as Q related to this have come up before |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I am using PyTorch 1.7.1 and have some problems with the fit logic.
More precisely, those lines of code below.
What exactly should I do in order to successfully train?
I followed the tutorial here and the bug was solved with the "target_res" dictionary (https://www.kaggle.com/shonenkov/training-efficientdet) but in my case the initial error was
Forward() takes 2 positional arguments but 4 were given
. Of course, replacing two lists with a dict() like below led me to "3" instead of "4"Would anyone be so kind as to point me in the right direction?
Thank you
Beta Was this translation helpful? Give feedback.
All reactions