nncase icon indicating copy to clipboard operation
nncase copied to clipboard

ncc compile example

Open StanislavIr opened this issue 3 years ago • 1 comments

Describe the bug Hello. Can't sucсessfully infer kmodel, compiled from example "20classes_yolo.tflite".

To Reproduce

  1. Compile .kmodel file from 20classes_yolo.tflite by "./ncc compile -i tflite -t k210 model_tflite/20classes_yolo.tflite model_kmodel/yolo_my.kmodel" compile
  2. Infer yolo_my.kmodel by "./ncc infer model_kmodel/yolo_my.kmodel result --dataset testset --dataset-format image" infer enterring COCO_val2014_000000436511.jpg or dog.bmp (images from nncase/examples/20classes_yolo/images) returns the same result: getting Fatal: Unsupported image channels: 1

Expected behavior Successfull infer.

Origin model and code nncase[v1.7.1]/examples/20classes_yolo/model/20classes_yolo.tflite

Environment (please complete the following information):

  • OS: Ubuntu20.04
  • nncase version v1.7.1
  • DL Framework -

StanislavIr avatar Sep 19 '22 09:09 StanislavIr

Please use the python interface, nncase 1.7 doesn't provide the ncc command line tool.

sunnycase avatar Sep 22 '22 02:09 sunnycase