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 684 forks source link

NotFoundError: /content/labelmap.pbtxt; No such file or directory #141

Open rssurya19 opened 1 year ago

rssurya19 commented 1 year ago

image

not able to generate labelmap.pbtxt. pls help its urgent

EdjeElectronics commented 1 year ago

The labelmap.pbtxt file should be automatically generated when you run the code in the "Create TFRecords" section. Did you run all the code blocks in that section?

rssurya19 commented 1 year ago

yes i run all the code . but labelmap.pbtxt is not form. in"CREATE TFRecord " description u mention their are three code but their are only two are present. which are "create_csv.py" and "create_tfrecord.py"

EdjeElectronics commented 1 year ago

From the other issue you created, it sounds like you were able to start training. Did you figure out why the labelmap.pbtxt file wasn't being generated?

rssurya19 commented 1 year ago

i created manually by referring others labelmap.pbtxt file . add my classes in it

arrrrny commented 1 year ago

@rssurya19 Can you share the labelmap.pbtxt file please?

Junaid0411 commented 1 year ago

@rssurya19 could you show us the changes you made in order to get it to work?

muhd360 commented 6 months ago

just rename the file from .txt to .pbtxt

tCode5 commented 3 months ago

just rename the file from .txt to .pbtxt

This won't work, because .pbtxt-files are structured differently. If you want to create one yourself, you could do something like this:

labelmap.txt

house
car
person
cat

labelmap.pbtxt

item {
  id: 1,
  name: house
}
item {
  id: 2,
  name: car
}
item {
  id: 3,
  name: person
}
item {
  id: 4,
  name: cat
}
muhd360 commented 1 month ago

ohh sounds good thx