Python Forum
I get "N/A" labels when implementing object detection
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
I get "N/A" labels when implementing object detection
#1
I am following this tutorial: https://tensorflow-object-detection-api-...ining.html And after training I use code for object detection. What I get are rectangles with percentage and labels "n/a".
1) Why does this happen? How can I fix that?

Also, I have 10 images. From each image I get 100 objects that depict the same object differently. For instance: from "image_1" I get "cat" 100 different images (from "image_1"). From "image_2" I get 100 different depicted "dog" images. From "image_3" I get 100 different depicted "mouse" images and things go like that. As you can understand every main image is a different class. So, in the label_map.pbtxt things are like that:


    item {
        id: 1
        name: 'cat'
    }
    item {
        id: 2
        name: 'dog'
    }
    item {
        id: 3
        name: 'mouse'
    }

    ...
2) Does the rationale behind label_map.pbtxt make sense? I am asking that in addition/auxiliary to my 1st question to identify if that is the problem...

Update: I also use this command category_index ={'name':'dummyname','id':1} in order to overcome some errors/warnings. Could this be the problem? But, if I remove it the object detection code does not run... (source: https://stackoverflow.com/questions/7148...how-to-fix)
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Implementing a Lowpass Filter Madridista 5 2,284 Nov-08-2022, 06:41 PM
Last Post: Madridista
  Problem implementing .iloc slicing in a custom function amjass12 2 2,023 Mar-03-2020, 08:51 PM
Last Post: amjass12
  TensorFlow problem in Object Detection yksingh1097 1 2,821 Oct-03-2018, 09:57 PM
Last Post: Larz60+

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020