Adding in the trained models for the first android app.
This commit is contained in:
@@ -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
+3
-3
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user