-
Hello, When I am running my 1 channel models on my pc application code (QT application) using ncnn, results are fine. In android, I have a shader code which converts Bitmap from BGRA (little endia) to Y channel and which I am feeding to ncnn model like this void *data = (void *)env->GetDirectBufferAddress(image_buffer); and then I am returning results like this and after results are return my code is converting Y back to BGRA to draw on app. you can see whole white background is looking like a net with holes. Note: I am using same shader and same model with tensor-flow lite on same application and results are fine. P.s. I tried 3 channel model also when I feed data using Please guide Thank you in advance |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
This fixed the issue |
Beta Was this translation helpful? Give feedback.
This fixed the issue
opt.use_fp16_packed = false;
opt.use_fp16_storage = false;
opt.use_fp16_arithmetic = false;