-
Notifications
You must be signed in to change notification settings - Fork 179
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
"Beginner Example" Notebook shows no performance improvement after many epochs #74
Comments
Can provide more information? Which model are you using? What's the learning rate? |
Hi, the beginner notebook is exactly the same as is provided except for the parameters that I noted above. So the model is the |
I meet the same problem |
Have you solved it? "I have encountered the same problem, but after increasing the learning rate, there is still no change. The model consistently outputs the same results.". |
I've met the same!! |
Any update? Could someone who has it working provide their config file as well as the output performance to serve as a sanity check? |
If this issue is still open, from what I can tell, it is because the train function of the Trainer class is only calling train_step (which isn't calling paramupdate hook anymore). So you could add backward and step calls after train_step or just use the train function inherited from algorithmbase via algorithm.train() instead (this one calls all necessary hooks, I needed to manually send my model to gpu though). |
I met the same problem, but 5V3D3's solution did help. When I used
|
The above code works for me. Not sure how to perform the evaluation in this context. Tried the following.
Any suggestions? |
Fixed in PR #135 |
* [Update] resolve requirements.txt conflicts * [Fix] Fix mean teacher bug in #102 * [Fix] Fix DebiasPL bug * [Fix] Fix potential sample data bug in #119 * [Update] Add auto issue/pr closer * [Update] Update requirements.txt * [Fix] Fix bug in #74 * [Fix] Fix amp lighting bug in #123 * [Fix] Fix notebook bugs * [Update] release semilearn 0.3.1
This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days. |
This issue was closed because it has been stalled for 5 days with no activity. |
Bug
When run, the beginner example notebook does not demonstrate the algorithm is learning. After 30 epochs, each output report produces the exact same output, included below. This is after adjusting the config parameters to match the recommendations (e.g. 100 epochs, 102400 iterations, etc.)
Reproduce the Bug
System: Ubuntu 20.04.4
git clone
the repositorycd
into repositorypip install -r requirements.txt
notebooks/Beginner_Example.ipynb
Error Messages and Logs
Output:
Can someone provide guidance on why I don't see any learning occur? I kept the notebook as-is except the updates to the config I noted above.
The text was updated successfully, but these errors were encountered: