TensorFlow-Lite-Object-Detection-on-Android-and-Raspberry-Pi icon indicating copy to clipboard operation
TensorFlow-Lite-Object-Detection-on-Android-and-Raspberry-Pi copied to clipboard

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

Open rssurya19 opened this issue 3 years ago • 9 comments
trafficstars

image

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

rssurya19 avatar Oct 09 '22 13:10 rssurya19

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?

EdjeElectronics avatar Oct 10 '22 14:10 EdjeElectronics

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"

rssurya19 avatar Oct 10 '22 17:10 rssurya19

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?

EdjeElectronics avatar Oct 11 '22 15:10 EdjeElectronics

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

rssurya19 avatar Oct 12 '22 03:10 rssurya19

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

arrrrny avatar Mar 14 '23 11:03 arrrrny

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

Junaid0411 avatar Mar 22 '23 15:03 Junaid0411

just rename the file from .txt to .pbtxt

muhd360 avatar Apr 06 '24 07:04 muhd360

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
}

stackxp avatar Jul 04 '24 18:07 stackxp

ohh sounds good thx

muhd360 avatar Aug 31 '24 05:08 muhd360