Skip to content
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

DDP wandb utils not running check_file() on --data #3031

Closed
glenn-jocher opened this issue May 4, 2021 · 3 comments · Fixed by #3035 or #5141
Closed

DDP wandb utils not running check_file() on --data #3031

glenn-jocher opened this issue May 4, 2021 · 3 comments · Fixed by #3035 or #5141
Labels
bug Something isn't working

Comments

@glenn-jocher
Copy link
Member

🐛 Bug

@AyushExel I found a bit of a bug today on starting a DDP training with --data coco.yaml. All our main python files (train, test, detect) are set up so that files passed to the argparser are searched locally inside the yolov5 repo using file = check_file(file). This allows for more concise commands like --cfg yolov5s.yaml rather than --cfg models/yolov5s.yaml, but it looks like opt.data got passed to the wandb utils before it had a chance to pass through check_file() first. Should be an easy fix, I think I can do this tomorrow.

Screenshot 2021-05-05 at 01 46 55

To Reproduce (REQUIRED)

Start DDP training with --data coco.yaml

 python -m torch.distributed.launch --nproc_per_node 2 --master_port 1 train.py --batch 64 --cfg yolov5x.yaml --weights '' --data coco.yaml
@glenn-jocher glenn-jocher added bug Something isn't working TODO labels May 4, 2021
@github-actions
Copy link
Contributor

github-actions bot commented May 4, 2021

👋 Hello @glenn-jocher, 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://www.ultralytics.com or email Glenn Jocher at glenn.jocher@ultralytics.com.

Requirements

Python 3.8 or later with all requirements.txt dependencies installed, including torch>=1.7. To install run:

$ pip install -r requirements.txt

Environments

YOLOv5 may be run in any of the following up-to-date verified environments (with all dependencies including CUDA/CUDNN, Python and PyTorch preinstalled):

Status

CI CPU testing

If 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), testing (test.py), inference (detect.py) and export (export.py) on MacOS, Windows, and Ubuntu every 24 hours and on every commit.

@AyushExel
Copy link
Contributor

@glenn-jocher I'm trying to fix it now

@AyushExel
Copy link
Contributor

#3035 should fix this

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants