Adding in the trained models for the first android app.

This commit is contained in:
Lucas Oskorep
2019-04-14 20:12:36 -05:00
parent 97a30b0f48
commit ad79e7a2ed
6 changed files with 84 additions and 1051 deletions
+1 -1
View File
@@ -2,7 +2,7 @@ apply plugin: 'com.android.application'
project.ext.ASSET_DIR = projectDir.toString() + '/src/main/assets'
assert file(project.ext.ASSET_DIR + "/graph.lite").exists()
assert file(project.ext.ASSET_DIR + "/inception.tflite").exists()
assert file(project.ext.ASSET_DIR + "/labels.txt").exists()
android {
File diff suppressed because it is too large Load Diff
@@ -43,7 +43,7 @@ public class ImageClassifier {
private static final String TAG = "TfLiteCameraDemo";
/** Name of the model file stored in Assets. */
private static final String MODEL_PATH = "graph.lite";
private static final String MODEL_PATH = "inception.tflite";
/** Name of the label file stored in Assets. */
private static final String LABEL_PATH = "labels.txt";
@@ -56,8 +56,8 @@ public class ImageClassifier {
private static final int DIM_PIXEL_SIZE = 3;
static final int DIM_IMG_SIZE_X = 224;
static final int DIM_IMG_SIZE_Y = 224;
static final int DIM_IMG_SIZE_X = 299;
static final int DIM_IMG_SIZE_Y = 299;
private static final int IMAGE_MEAN = 128;
private static final float IMAGE_STD = 128.0f;