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.51k stars 684 forks source link

Error while running my model #103

Open babmuckja opened 3 years ago

babmuckja commented 3 years ago

HI. I'm doing my project in college . In the project, we need a program that recognizes numbers. so we made the model with teachable machine(google). I followed your example video well. But when I try to run my model, I get an error and I want to ask about this problem. 1 This is my model folder. [If your model folder has a different name than "Sample_TFLite_model", use that name instead. For example, I would use --modeldir=BirdSquirrelRaccoon_TFLite_model to run my custom bird, squirrel, and raccoon detection model.] <- we tried this but we couldnt do. 3 4 How can we solve this problem.? Pls help me..

seung-gu commented 3 years ago

check the file name ... The path to the file name in the code is "labelmap.txt", but you have "label.txt". Plus, not "model.tflite", but "detect.tflite" according to your code.

babmuckja commented 3 years ago

I changed the file name before. labels.txt -> labelmap.txt and model.tflite -> detect.tflite. but It didn't work.

babmuckja commented 3 years ago

123 1234 1224 Im new at cording..

mohamedtagi1 commented 3 years ago

how do you fix it i have the same problem