canonical / tf-lite-examples-snap

Snap packaging of TensorFlow Lite examples for Raspberry Pi
Apache License 2.0
0 stars 0 forks source link

Video classification example needs full path to labels file #7

Open jpm-canonical opened 3 months ago

jpm-canonical commented 3 months ago
tf-lite-examples.video-classification --label tflite/video_classification/kinetics600_label_map.txt

The running directory of the example is $SNAP, and the examples look for their models and label files in the current working directory. The labels file comes from upstream git and ends up in a subdirectory tflite/video_classification/kinetics600_label_map.txt. The example therefore can not find the labels file in its default location. A workaround is to provide the path to the labels file.