question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Missing classes name while generating label_map.pbtxt

See original GitHub issue

I have created tfrecord usingcvat/utils/tfrecords/convert.py but when i check label_map.pbtxt it missed one class name. I have 7 classes [Car Truck MotorBikes Bicycle Bus Van Pedestrian] in my xml file but it generates only 6 classes in label_map.pbtxt . In my xml has only 2 MotorBikes samples which is not generated in label_map.pbtxt . Only lower number of sample class name is missing.

item {
	id: 1
	name: 'car'
}
item {
	id: 2
	name: 'van'
}
item {
	id: 3
	name: 'truck'
}
item {
	id: 4
	name: 'pedestrian'
}

item {
	id: 5
	name: 'bus'
}
item {
	id: 6
	name: 'bicycle'
}

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
zhiltsov-maxcommented, Mar 17, 2020

Probably you should take a look at --min-train parameter and set it to 0.

parser.add_argument(
        '--min-train', metavar='NUM', required=False, default=10, type=int,
        help='The minimum number of images above which the label is considered (default: 10)'
    )
0reactions
sainisanjaycommented, Mar 17, 2020

@zhiltsov-max Thanks --min-train parameter was the issue, as i was having less than 10 samples for MoterBikes class that’s why it did’t generate label for that.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to make label-map.pbtxt for object detction? #1601 - GitHub
I'm trying to modify an existing label map for my own class, but seeing an error. My businesscard_label_map.pbtxt : item { id: 0...
Read more >
What is a Label Map? - Roboflow Blog
Class names missing ; Class names show as integers; Class names do not ... For example, the .pbtxt label map for our dataset...
Read more >
Where can I find the label map file(pbtxt) of ... - Stack Overflow
I know that there some pbtxt files in models-master\research\object_detection\data folder, but which file is related to ssd_mobilenet_v1_coco?
Read more >
TensorFlow Object Detection API Tutorial
Create Label Map : TensorFlow requires dataset to have a label map associated with it. This label map defines a mapping from string...
Read more >
Labels missing in object_detection_demo_ssd_async demo
Ok found my error, I did not read the code properly. The name of the labels file needs to be named after the...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found