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

How to train using coco_100img.data #206

Closed
Kev1nZheng opened this issue Apr 11, 2019 · 1 comment
Closed

How to train using coco_100img.data #206

Kev1nZheng opened this issue Apr 11, 2019 · 1 comment
Labels
duplicate This issue or pull request already exists

Comments

@Kev1nZheng
Copy link

Thanks for your work. I want to train a small dataset like coco-1000img.data and I see you posed Visualize Results for coco-100img.data using python3 train.py --data data/coco_100img.data. But do I need to change other hyparamiters? like LR, Optimizer,etc.

@glenn-jocher glenn-jocher added the duplicate This issue or pull request already exists label Apr 11, 2019
@glenn-jocher
Copy link
Member

glenn-jocher commented Apr 11, 2019

I'm going to close this as it is a duplicate of #192

But to answer your question the tutorial results are created simply by running train.py and pointing it to the relevant *.data file. To be extra clear I've added a section on reproducing the tutorial results to the end of it. Please review the custom data tutorial thoroughly: https://docs.ultralytics.com/yolov5/tutorials/train_custom_data

Reproduce Our Results

To reproduce the exact training results shown in this tutorial, simply run the following code. This trains each of the 3 scenarios plotted above to 273 epochs, saves each results*.txt file separately, and plots them together as results.png. It all takes less than 30 minutes on a GCP VM V100 instance created by our GCP Quickstart Guide.

git pull  # download latest updates
rm results.txt  # remove existing results
python3 train.py --data data\coco_1img.data && mv results.txt results_1img.txt
python3 train.py --data data\coco_10img.data && mv results.txt results_10img.txt
python3 train.py --data data\coco_100img.data && mv results.txt results_100img.txt
python3 -c "from utils import utils; utils.plot_results()"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
duplicate This issue or pull request already exists
Projects
None yet
Development

No branches or pull requests

2 participants