This commit is contained in:
Sun Aries 2023-12-27 21:24:53 +00:00 committed by GitHub
commit 1a0e419ae0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -54,7 +54,7 @@ bazel build \
--define MEDIAPIPE_DISABLE_GPU=1 \ --define MEDIAPIPE_DISABLE_GPU=1 \
--define MEDIAPIPE_EDGE_TPU=usb \ --define MEDIAPIPE_EDGE_TPU=usb \
--linkopt=-l:libusb-1.0.so \ --linkopt=-l:libusb-1.0.so \
mediapipe/examples/coral:face_detection_tpu build mediapipe/examples/coral:face_detection_tpu
# For ARM64 (e.g. Coral Dev Board) # For ARM64 (e.g. Coral Dev Board)
bazel build \ bazel build \
@ -65,7 +65,7 @@ bazel build \
--define MEDIAPIPE_DISABLE_GPU=1 \ --define MEDIAPIPE_DISABLE_GPU=1 \
--define MEDIAPIPE_EDGE_TPU=usb \ --define MEDIAPIPE_EDGE_TPU=usb \
--linkopt=-l:libusb-1.0.so \ --linkopt=-l:libusb-1.0.so \
mediapipe/examples/coral:face_detection_tpu build mediapipe/examples/coral:face_detection_tpu
``` ```
Our Docker environment defines `${BAZEL_CPU}` value, so you can use it directly: Our Docker environment defines `${BAZEL_CPU}` value, so you can use it directly:
@ -79,7 +79,7 @@ bazel build \
--define MEDIAPIPE_DISABLE_GPU=1 \ --define MEDIAPIPE_DISABLE_GPU=1 \
--define MEDIAPIPE_EDGE_TPU=usb \ --define MEDIAPIPE_EDGE_TPU=usb \
--linkopt=-l:libusb-1.0.so \ --linkopt=-l:libusb-1.0.so \
mediapipe/examples/coral:face_detection_tpu build mediapipe/examples/coral:face_detection_tpu
``` ```
The command above is already defined in our `Makefile`, so you can simply run: The command above is already defined in our `Makefile`, so you can simply run: