forked from cdiddy77/react-native-mediapipe
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'cdiddy77:main' into main
- Loading branch information
Showing
11 changed files
with
114 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
vendor/ | ||
Pods/ | ||
Pods/ | ||
*.tflite |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
19 changes: 19 additions & 0 deletions
19
examples/objectdetection/android/app/download_models.gradle
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
task downloadModelFile0(type: Download) { | ||
src 'https://storage.googleapis.com/mediapipe-models/object_detector/efficientdet_lite0/float32/1/efficientdet_lite0.tflite' | ||
dest project.ext.ASSET_DIR + '/efficientdet-lite0.tflite' | ||
overwrite false | ||
} | ||
|
||
task downloadModelFile1(type: Download) { | ||
src 'https://storage.googleapis.com/mediapipe-models/object_detector/efficientdet_lite2/float32/1/efficientdet_lite2.tflite' | ||
dest project.ext.ASSET_DIR + '/efficientdet-lite2.tflite' | ||
overwrite false | ||
} | ||
|
||
task downloadModelFile2(type: Download) { | ||
src 'https://storage.googleapis.com/mediapipe-models/object_detector/ssd_mobilenet_v2/float32/1/ssd_mobilenet_v2.tflite' | ||
dest project.ext.ASSET_DIR + '/ssd-mobilenet-v2.tflite' | ||
overwrite false | ||
} | ||
|
||
preBuild.dependsOn downloadModelFile0, downloadModelFile1, downloadModelFile2 |
Binary file removed
BIN
-13.2 MB
examples/objectdetection/android/app/src/main/assets/efficientdet-lite0.tflite
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
29 changes: 29 additions & 0 deletions
29
examples/objectdetection/ios/RunScripts/download_models.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
echo "INFO: Downloading models for iOS." | ||
|
||
# Download efficientnet-lite0.tflite from the internet if doesn't exist. | ||
TFLITE_FILE=./objectdetection/efficientdet-lite0.tflite | ||
if test -f "$TFLITE_FILE"; then | ||
echo "INFO: efficientdet_lite0.tflite exists. Skip downloading and use the local model." | ||
else | ||
curl -o ${TFLITE_FILE} https://storage.googleapis.com/mediapipe-models/object_detector/efficientdet_lite0/float32/1/efficientdet_lite0.tflite | ||
echo "INFO: Downloaded efficientdet_lite0.tflite to $TFLITE_FILE ." | ||
fi | ||
|
||
# Download efficientnet-lite2.tflite from the internet if doesn't exist. | ||
TFLITE_FILE=./objectdetection/efficientdet-lite2.tflite | ||
if test -f "$TFLITE_FILE"; then | ||
echo "INFO: efficientdet_lite0.tflite exists. Skip downloading and use the local model." | ||
else | ||
curl -o ${TFLITE_FILE} https://storage.googleapis.com/mediapipe-models/object_detector/efficientdet_lite2/float32/1/efficientdet_lite2.tflite | ||
echo "INFO: Downloaded efficientdet_lite0.tflite to $TFLITE_FILE ." | ||
fi | ||
|
||
# Download ssd_mobilenet-v2.tflite from the internet if doesn't exist. | ||
TFLITE_FILE=./objectdetection/ssd-mobilenet-v2.tflite | ||
if test -f "$TFLITE_FILE"; then | ||
echo "INFO: ssd_mobilenet_v2.tflite exists. Skip downloading and use the local model." | ||
else | ||
curl -o ${TFLITE_FILE} https://storage.googleapis.com/mediapipe-models/object_detector/ssd_mobilenet_v2.tflite/float32/1/ssd_mobilenet_v2.tflite | ||
echo "INFO: Downloaded ssd_mobilenet_v2.tflite to $TFLITE_FILE ." | ||
fi | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file removed
BIN
-13.2 MB
examples/objectdetection/ios/objectdetection/efficientdet-lite0.tflite
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters