mirror of
https://github.com/PaddlePaddle/FastDeploy.git
synced 2025-10-05 00:33:03 +08:00
[Android] remove unnecessary option in Java RuntimeOption (#577)
* [FlyCV] Add global SetProcLibCpuNumThreads method * [Android] Support segmentation and facedet in Android * [Android] add JNI instance check to j_runtime_option_obj * [Model] fixed ppseg flycv resize error * [FlyCV] fix FlyCV resize flags * [cmake] remove un-need lite compile option * [Android] add PaddleSegModel JNI and fix some bugs * [Android] bind PaddleSegModel via JNI * [Android] bind VisSegmentation via JNI * [Android] bind YOLOv5Face and SCRFD via JNI * [Android] fix NewJavaFaceDetectionResultFromCxx error * [Android] remove un-need option in Java RuntimeOption
This commit is contained in:
@@ -1,6 +1,5 @@
|
||||
package com.baidu.paddle.fastdeploy.app.examples.detection;
|
||||
|
||||
|
||||
import android.Manifest;
|
||||
import android.annotation.SuppressLint;
|
||||
import android.app.Activity;
|
||||
@@ -392,7 +391,6 @@ public class DetectionMainActivity extends Activity implements View.OnClickListe
|
||||
RuntimeOption option = new RuntimeOption();
|
||||
option.setCpuThreadNum(DetectionSettingsActivity.cpuThreadNum);
|
||||
option.setLitePowerMode(DetectionSettingsActivity.cpuPowerMode);
|
||||
option.enableRecordTimeOfRuntime();
|
||||
if (Boolean.parseBoolean(DetectionSettingsActivity.enableLiteFp16)) {
|
||||
option.enableLiteFp16();
|
||||
}
|
||||
|
Reference in New Issue
Block a user