Skip to content

About "allow_precision_loss: true" #4473

Open
@fchen09

Description

@fchen09

Have I written custom code (as opposed to using a stock example script provided in MediaPipe)

Yes

OS Platform and Distribution

Android 12

MediaPipe version

0.8.7

Bazel version

6.1.1

Solution

Pose

Programming Language and version

Java

Describe the actual behavior

I added the code into "pose_landmark_by_roi_gpu.pbtxt" to speed up with GPU and use "pose_landmark_full.tflite":
  
  options:{
   [mediapipe.InferenceCalculatorOptions.ext] {
     delegate {
        gpu {
                use_advanced_gpu_api: true
                api: OPENGL
                allow_precision_loss: true
        }
     }
   }
  }

If "allow_precision_loss: true", then the left leg loses accuracy; on the contrary, "allow_precision_loss: false", it tracks quite well. Is there any way to use "allow_precision_loss: true" and the tracking is not compromised? In my opinion, the "pose_landmark_full.tflite" is FP16 model, so it should not be affected by running on GPU with a 16-bit float precision.

Describe the expected behaviour

Set "allow_precision_loss: true" and keep the tracking accurate.

Standalone code/steps you may have used to try to get what you need

I added the code into "pose_landmark_by_roi_gpu.pbtxt" to speed up with GPU and use "pose_landmark_full.tflite":
  
  options:{
   [mediapipe.InferenceCalculatorOptions.ext] {
     delegate {
        gpu {
                use_advanced_gpu_api: true
                api: OPENGL
                allow_precision_loss: true
        }
     }
   }
  }

Other info / Complete Logs

No response

Metadata

Metadata

Labels

legacy:posePose Detection related issuesplatform:androidIssues with Android as Platformplatform:c++Issues specific to C++ framework in mediapipestat:awaiting googlerWaiting for Google Engineer's Responsetype:supportGeneral questions

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions