-
-
Notifications
You must be signed in to change notification settings - Fork 15.9k
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
wandb log artifact fails at end of run #4672
Comments
👋 Hello @jveitchmichaelis, thank you for your interest in YOLOv5 🚀! Please visit our ⭐️ Tutorials to get started, where you can find quickstart guides for simple tasks like Custom Data Training all the way to advanced concepts like Hyperparameter Evolution. If this is a 🐛 Bug Report, please provide screenshots and minimum viable code to reproduce your issue, otherwise we can not help you. If this is a custom training ❓ Question, please provide as much information as possible, including dataset images, training logs, screenshots, and a public link to online W&B logging if available. For business inquiries or professional support requests please visit https://ultralytics.com or email Glenn Jocher at glenn.jocher@ultralytics.com. RequirementsPython>=3.6.0 with all requirements.txt installed including PyTorch>=1.7. To get started: $ git clone https://github.com/ultralytics/yolov5
$ cd yolov5
$ pip install -r requirements.txt EnvironmentsYOLOv5 may be run in any of the following up-to-date verified environments (with all dependencies including CUDA/CUDNN, Python and PyTorch preinstalled):
StatusIf this badge is green, all YOLOv5 GitHub Actions Continuous Integration (CI) tests are currently passing. CI tests verify correct operation of YOLOv5 training (train.py), validation (val.py), inference (detect.py) and export (export.py) on MacOS, Windows, and Ubuntu every 24 hours and on every commit. |
@jveitchmichaelis thanks for raising this issue! @AyushExel can you take a look at this please? Thanks! |
I'll try to reproduce this and push a fix today |
For what it's worth, checkpoints are saved if I run training directly (eg
`python train.py`)
…On Mon, Sep 6, 2021, 21:32 Ayush Chaurasia ***@***.***> wrote:
I'll try to reproduce this and push a fix today
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#4672 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAYDMJYWSPOT4JGKN2YOFQTUASDDZANCNFSM5DNM5ACQ>
.
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android
<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
|
@jveitchmichaelis I wasn't able to reproduce it. I'm currently executing this command from inside the yolov5 folder.
How are you running the sweep? Can you share your sweep.yaml file contents? thanks! |
Sure, here's the sweep:
and yep, I'm running from the folder with:
I have yolov5 as a submodule inside my dataset repository, but I don't think it should make a difference |
Thanks I'm trying to repro. I'll update soon |
@jveitchmichaelis Okay I tried running the sweep for 150 epochs and I didn't see any error. Is this error reproducible from your end? Run the same command again to repro ( if you haven't done this already) |
Yeah I'll try again. There are some other odd things which I'm trying to dig into. Here's an output from a non-sweep run:
the run stops early (fine):
you can see that the weights are created - here's the output folder:
So that's OK. But oddly there is no confusion matrix, per-class-AP is not printed to the log file, and I suppose as a result, the matrix image doesn't get uploaded to wandb either. EDIT: It looks like this got fixed a few days ago with updates to the early stopping functionality. I'll test again... |
@jveitchmichaelis some of your questions are addressed in EarlyStopping updates PR #4679, which increases the default patience to 100 and fixes the lack of validation results you mentioned (no confusion matrix etc.) |
@glenn-jocher Yep - I just saw, thanks! The fix was only a few days ago, so I've re-pulled and will test again. It's possible that the same issue was causing weights to not be created. @AyushExel - I'll try a sweep with e.g. 1 epoch and see if it still occurs |
👋 Hello, this issue has been automatically marked as stale because it has not had recent activity. Please note it will be closed if no further activity occurs. Access additional YOLOv5 🚀 resources:
Access additional Ultralytics ⚡ resources:
Feel free to inform us of any other issues you discover or feature requests that come to mind in the future. Pull Requests (PRs) are also always welcomed! Thank you for your contributions to YOLOv5 🚀 and Vision AI ⭐! |
🐛 Bug
When training using a wandb sweep, the call to
log_artifact
at the end of the run fails with a ValueError that the path is not correct.To Reproduce (REQUIRED)
Run a sweep e.g:
Example config:
Output (presumably at an early-stopping point as the epoch number is always less than max):
Adding a try/except block around the call gives the following path:
but the weight folder is empty. So for some reason the run is terminating, but it's not saving the final checkpoint?
Expected behavior
The artifact (e.g. best/last) model is uploaded.
Environment
If applicable, add screenshots to help explain your problem.
The text was updated successfully, but these errors were encountered: