Skip to Content
Mastering Computer Vision with TensorFlow 2.x
book

Mastering Computer Vision with TensorFlow 2.x

by Krishnendu Kar
May 2020
Beginner to intermediate
430 pages
10h 39m
English
Packt Publishing
Content preview from Mastering Computer Vision with TensorFlow 2.x

Creating a YOLO .data file

These steps involve the path of the train and valid folders. Before beginning, copy the combined train, combined test, and .names files to your darknet directory. The following code block shows how a typical .data file (in this example, furniture.data) will look:

classes= 3train = /home/krishkar/darknet/furniture_train.txtvalid = /home/krishkar/darknet/furniture_test.txtnames = /home/krishkar/darknet/furniture_label.namesbackup = backup

Here, we have three classes (bed, chair, and sofa), so the value of classes is set to 3. The train, valid, and names folders show the combined train, combined test, and label .names file. Keep this file in the cfg directory.

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Hands-On Computer Vision with TensorFlow 2

Hands-On Computer Vision with TensorFlow 2

Benjamin Planche, Eliot Andres

Publisher Resources

ISBN: 9781838827069Supplemental Content