NobuoTsukamoto / tflite-cv-example

TensorFlow Lite, Coral Edge TPU samples (Python/C++, Raspberry Pi/Windows/Linux).
MIT License
120 stars 15 forks source link

Class limit on semantic segmentation #2

Closed Hi-Zed closed 3 years ago

Hi-Zed commented 3 years ago

Hi, amazing repo, I got my hands on an Edge TPU but I am struggling in finding an actually useful way to use it. I am interested in doing only instance segmentation (so no classification whatsoever), and I was wondering if in your semantic segmentation approach based on DeepLabV3 you are limited to the same 20 classes listed here.

Thanks

NobuoTsukamoto commented 3 years ago

I am interested in doing only instance segmentation (so no classification whatsoever),

I also want to perform instance segmentation (like Mask R-CNN) on an Edge TPU. However, I don't know the model that can be executed. I would like to know if you can.

I was wondering if in your semantic segmentation approach based on DeepLabV3 you are limited to the same 20 classes listed here.

Yes. As you pointed out. The model for this repository and Coral's Deep Lab is PASCAL VOC. If you want to model your original dataset, this link will help.

Thanks

Hi-Zed commented 3 years ago

I found a couple of resources to convert Mask R-CNN to TFLite, unfortunately, nothing specifically targeted to the Edge TPU. This article, and associated colab notebook, give some instruction on how to create the model to TFLite. I downloaded it, but I was unsuccessful in running it on the Edge TPU.

Another option is this repo creates a version of Mask RCNN using MobileNet. I am very new to TensorFlow and deep learning in general, so I am not sure how to run this version on the Edge TPU, but maybe you can find it useful.

NobuoTsukamoto commented 3 years ago

@Hi-Zed See this. https://github.com/PINTO0309/PINTO_model_zoo/tree/master/074_Yolact YOLACT (Real-time Instance Segmentation) edge tpu model.

NobuoTsukamoto commented 3 years ago

Close the issue. If you have any problems, please open it again.