You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi @shadow111
Could you share how to set 0 for the value "model_complexity" for holistictrackinggpu Android ?
I modified the file (Mediapipe_Holistic\app\src\main\java\com\lite\holistic_tracking\holistic_activity.java) as like below,
but the apk doesn't change the value of model_complexity.
private static final String INPUT_MODEL_COMPLEXITY = "model_complexity";
private static final int NUM_MODEL_Complexity = 0;
private static final String INPUT_REFINE_FACE_LANDMARKS = "refine_face_landmarks";
protected void onCreate(Bundle savedInstanceState) {
...
processor
.getVideoSurfaceOutput()
.setFlipY(
applicationInfo.metaData.getBoolean("flipFramesVertically", FLIP_FRAMES_VERTICALLY));
PermissionHelper.checkAndRequestCameraPermissions(this);
AndroidPacketCreator packetCreator = processor.getPacketCreator();
Map<String, Packet> inputSidePackets = new HashMap<>();
inputSidePackets.put(INPUT_MODEL_COMPLEXITY, packetCreator.createInt32(NUM_MODEL_Complexity));
inputSidePackets.put(INPUT_REFINE_FACE_LANDMARKS, packetCreator.createInt32(0));
processor.setInputSidePackets(inputSidePackets);
Thanks
Happy New Year~
The text was updated successfully, but these errors were encountered:
Hi @shadow111
Could you share how to set 0 for the value "model_complexity" for holistictrackinggpu Android ?
I modified the file (Mediapipe_Holistic\app\src\main\java\com\lite\holistic_tracking\holistic_activity.java) as like below,
but the apk doesn't change the value of model_complexity.
Thanks
Happy New Year~
The text was updated successfully, but these errors were encountered: