Skip to content

Commit

Permalink
Merge pull request #63 from GDSC-DEU/feat/#62-update-latest-model
Browse files Browse the repository at this point in the history
최신 모델 파일로 업데이트
  • Loading branch information
solo5star authored Jun 5, 2022
2 parents f67b442 + 00be959 commit 4313c4d
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
Binary file not shown.
Binary file not shown.
6 changes: 3 additions & 3 deletions client/lib/services/tflite/classifier.dart
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,12 @@ import 'package:tflite_flutter/tflite_flutter.dart';
import 'package:tflite_flutter_helper/tflite_flutter_helper.dart';

class Classifier {
static const MODEL_FILENAME = 'tflite/converted_model-640-fp16-small-v1.tflite';
static const MODEL_FILENAME = 'tflite/candrink-v4-640-f32-large.tflite';
static const LABELS_FILENAME = 'assets/tflite/labels.txt';

/// Input size of image (height = width = 640)
static const INPUT_SIZE = 640;
static const THRESHOLD = 0.8;
static const THRESHOLD = 0.5;

// Number of results to show
static const int NUM_RESULTS = 10;
Expand Down Expand Up @@ -45,7 +45,7 @@ class Classifier {
this.interpreter = interpreter ??
await Interpreter.fromAsset(
MODEL_FILENAME,
options: InterpreterOptions()..threads = 4,
options: InterpreterOptions()..threads = 8,
);

_outputShapes = this.interpreter!.getOutputTensors().map((tensor) => tensor.shape).toList();
Expand Down
2 changes: 1 addition & 1 deletion client/lib/ui/camera_view.dart
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ class _CameraViewState extends State<CameraView> with WidgetsBindingObserver {
initCamera() async {
cameras = await availableCameras();

cameraController = CameraController(cameras[0], ResolutionPreset.low, enableAudio: false);
cameraController = CameraController(cameras[0], ResolutionPreset.ultraHigh, enableAudio: false);
await cameraController!.initialize().then((_) async {
await cameraController!.startImageStream(onLatestImageAvailable);

Expand Down

0 comments on commit 4313c4d

Please sign in to comment.