EdjeElectronics / TensorFlow-Lite-Object-Detection-on-Android-and-Raspberry-Pi

A tutorial showing how to train, convert, and run TensorFlow Lite object detection models on Android devices, the Raspberry Pi, and more!
Apache License 2.0
1.5k stars 683 forks source link

Tensorflow 1 tutorial does not create labelmap.pbtxt file #156

Open arrrrny opened 1 year ago

arrrrny commented 1 year ago

I ran the code twice, I added bird, squirrel, raccoon at step 10 but no luck

Screenshot 2023-03-14 at 1 58 30 PM

Getting this error

Screenshot 2023-03-14 at 1 57 42 PM

Please help

Junaid0411 commented 1 year ago

I have the same issue, have you found a fix by any chance? Are you using jpg or png images?

EdjeElectronics commented 1 year ago

Sorry guys, I won't be able to help with this for a while. I'm not sure what the issue is. For now, you can use the labelmap.pbtxt from my playing card detector as an example:

item {
  id: 1
  name: 'nine'
}

item {
  id: 2
  name: 'ten'
}

item {
  id: 3
  name: 'jack'
}

item {
  id: 4
  name: 'queen'
}

item {
  id: 5
  name: 'king'
}

item {
  id: 6
  name: 'ace'
}