Unable to run docker yanwyb/npu:v1 on VIM4

Hello @JietChoo ,

I check my convert code and find i make a mistake. I also meet the same problem. The ready-made model from website usually has some problem causing convert failed.

Recently i am studying the official code of paddleocr. Try to train and convert the model.

Normalization is a preprocess before model inference. Each mdoel has its normalization. m1, m2, m3 is mean for image channels. scale is variance. The calculation for them:

image[:, ;, 0] = (image[:, ;, 0] - m1) / scale 
image[:, ;, 1] = (image[:, ;, 1] - m2) / scale 
image[:, ;, 2] = (image[:, ;, 2] - m3) / scale 

We will open a realtime demo. So the problem of this model convert failed is no longer deal with. You can close this topic and if some update i will notify you in this topic.
Realtime Text Recognition with VIM4 and IMX415 MIPI Camera - VIM4 - Khadas Community

1 Like