google-coral / tflite

Examples using TensorFlow Lite API to run inference on Coral devices
https://coral.withgoogle.com
Apache License 2.0
181 stars 67 forks source link

can not open resized_cat.bmp v2 #56

Closed rfried-nrl closed 1 year ago

rfried-nrl commented 2 years ago

Description

Like #51 I experience the same. The example application classify.cc fails reading the resized_cat.bmp

$ ./classify mobilenet_v1_1.0_224_quant_edgetpu.tflite imagenet_labels.txt resized_cat.bmp 0.0001 Cannot read image from resized_cat.bmp

$ convert cat.bmp -resize 224x224! resize_cat.bmp $ file resize_cat.bmp resize_cat.bmp: PC bitmap, Windows 98/2000 and newer format, 224 x 224 x 32

Click to expand! ### Issue Type Bug ### Operating System Ubuntu ### Coral Device M.2 Accelerator B+M ### Other Devices _No response_ ### Programming Language C++ ### Relevant Log Output _No response_
hjonnala commented 2 years ago

Hello @rfried-nrl please try classify_image.cc form libcoral repo: https://github.com/google-coral/libcoral/tree/master/coral/examples

and here is a example on how to build your custom script: https://github.com/google-coral/edgetpu/issues/600#issuecomment-1145076778

Thanks!

google-coral-bot[bot] commented 1 year ago

Are you satisfied with the resolution of your issue? Yes No