From e140497dde435ef044952d1c03a067340099de1f Mon Sep 17 00:00:00 2001 From: Johannes Klein Date: Wed, 19 Jul 2023 14:26:17 +0200 Subject: [PATCH] Updated readme --- README.md | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 03896b4a0..3c86c4cd9 100644 --- a/README.md +++ b/README.md @@ -18,14 +18,11 @@ See [CONTRIBUTING](CONTRIBUTING.md) for guidelines on contributing to this proje 1. Run `npx pod-install` or `cd ios && pod install` from the root directory 1. `cp env.example .env.staging` for staging and `cp env.example .env` for production and fill in appropriate values. This is not part of the code repo (contains secrets, such as OAuth client ID). 1. To run on Android, do this `cp android/example-keystore.properties android/keystore.properties`. Fill in the relevant values. If you are a member of iNat staff, get them from another member of iNat Staff. -1. Add AR Camera example model and taxonomy files. - 1. Add the example model files by executing `npm run add-example-model`. +1. Add AR Camera model and taxonomy files. The computer vision model files are not part of the code repo, and have to be installed. The app itself will load the model file with the filename specified in a .env file. On Android, the current file names are specified in these env variables `ANDROID_MODEL_FILE_NAME` and `ANDROID_TAXONOMY_FILE_NAME`. On iOS, the current file names are specified in these env variables `IOS_MODEL_FILE_NAME` and `IOS_TAXONOMY_FILE_NAME`. Currently, after a fresh clone of the repo, and copy of the env.example file, see above, you have to add the files following these steps: + 1. Add the example model files by executing `npm run add-example-model`. If that does not work continue with the next step. 1. If the download script fails: The sample model files are available in this [`small_model.zip`](https://github.com/inaturalist/SeekReactNative/releases/tag/v2.9.1-138) file. 1. On Android, these files are named `small_inception_tf1.tflite` and `small_export_tax.csv`. Create a camera folder within Android assets (i.e. `android/app/src/debug/assets/camera`) and place the files there. 1. On iOS, these files are named `small_inception_tf1.mlmodel` and `small_export_tax.json` and should be added to the `ios` folder. -1. Add AR Camera model and taxonomy files. - 1. On Android, the current file names are specified in these env variables `ANDROID_MODEL_FILE_NAME` and `ANDROID_TAXONOMY_FILE_NAME`. Create a camera folder within Android assets (i.e. `android/app/src/main/assets/camera`) and place the files there. - 1. On iOS, the current file names are specified in these env variables `IOS_MODEL_FILE_NAME` and `IOS_TAXONOMY_FILE_NAME` and should be added to the `ios` folder. ### Set up pre-commit hooks