Comments (2)
One possible reason is you reuse the same input image object (Mat) for the 1st and the 2nd inference. The result (such as inference time, bounding boxes, etc.) is drawn onto the input image.
So, the input images for the 1st and 2nd inference can be difference. It can be happen even if you store the Mat object like this.
Mat mat_original;
mat_original = get original input data;
Mat mat_1st = mat_original;
Mat mat_2nd = mat_original;
ImageProcessorProcess(mat_1st.getNativeObjAddr()); <- pixel data (of mat_original, mat_1st, mat_2nd) is over written
ImageProcessorProcess(mat_2nd.getNativeObjAddr());
I logged the input data and confirmed the input data is same.
Did you confirm all the input pixel data (not just the address of data) is the same when calling ImageProcessorProcess
? I can check if you share your code.
from play_with_tflite.
Thanks for your kind reply.
The root cause is exact as you said. Results were drawn on the frame due to the sync of detection thread and render thread.
I compare some lines of the input frames, not for each pixel. It's my bad.
from play_with_tflite.
Related Issues (20)
- Stuck on bazel build tensorflow lite 2.6 HOT 7
- Add a project for FILM
- fatal error: tensorflow/lite/interpreter.h: No such file or directory HOT 2
- Add project for Attention Mesh Model (Face Landmark with Attention)
- Question: who did you traind coco_ssd_mobilenet_v1 so the model runs fast? HOT 1
- Add project for HybridNets
- Recipe for target 'main' failed HOT 2
- convert_model_to_tflite HOT 2
- Speed is slow HOT 2
- Error on pj_tflite_depth_midas sample HOT 2
- NanoDet to TFLite Conversion HOT 1
- edgetpu header file not found HOT 3
- Inference error with MNN model on pj_tflite_face_dbface. HOT 3
- MoveNet is running very slow on video. FPS- 10 to 12 HOT 3
- How to run Yolov5 on Qualcomm RB5 device with GPU? HOT 2
- mac cmake error HOT 1
- pj_tflite_hand_mediapipe cannot inference HOT 1
- question
- Discrepancy in Model Performance Compared to Example
- Performance Degradation with YOLOv5 on CPU – Need Assistance in Improving FPS
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from play_with_tflite.