-
Notifications
You must be signed in to change notification settings - Fork 3.5k
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
03 - Model v2 does not learn properly #1168
Comments
I had this same issue as @oabaig . I solved this issue by doing this - I instantiated my loss function and optimizer AFTER instantiating the model_2 class. Due to so much code, there were two model_2 instances in my code, one before the loss and optimizer instances and one after. Now, I don't instantiate model_2 after instantiating loss and optimizer instances, but before them (as is in the lecture as well).
And the output is here which looks alright to me... |
Great, I'll try this out when I get the chance! |
Can confirm that this works on my end |
I keep getting a train accuracy of 10.00% and a test accuracy of 9.99%. I have tried the course google colab version and I get the exact same. Not sure what exactly is going on, but either something changed with the model or in PyTorch that could have impacted the results.
Here is my current model v2,
Just to reiterate, I have tried the google colab notebook created by @mrdbourke and it gives me the same result.
The text was updated successfully, but these errors were encountered: