Skip to content

Reslove multi-gpu training error and add description of dataset format and label format #195

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

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 27 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,33 @@ These are simple examples. For more customization details, please refer to [Note

## Training

### Dataset Format

1. structure
```
{dataset1}
├── images
│   ├── test
│   │   └── 1.jpg
│   ├── train
│   │   └── 2.jpg
│   └── val
│   └── 3.jpg
└── labels
├── test
│   └── 1.txt
├── train
│   └── 2.txt
└── val
└── 3.txt
```

2. label format
id is integer, coordinates are scaled to 0 ~ 1
```
id xmin ymin xmax ymax
```

To train YOLO on your machine/dataset:

1. Modify the configuration file `yolo/config/dataset/**.yaml` to point to your dataset.
Expand Down
1 change: 0 additions & 1 deletion yolo/utils/logging_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -317,7 +317,6 @@ def log_model_structure(model: Union[ModuleList, YOLOLayer, YOLO]):
console.print(table)


@rank_zero_only
def validate_log_directory(cfg: Config, exp_name: str) -> Path:
base_path = Path(cfg.out_path, cfg.task.task)
save_path = base_path / exp_name
Expand Down