환경: macbook pro 2015, OS Monteray, C++
범위: hair segmentation 은 gpu로만 되서 그것을 제외하고, pose의 경우 실행되고 바로 셧다운 되었으나
face 와 pose 를 포함한 holistic 은 정상실행됨.
현재:
실행: ~ 22.3.21
포스팅: ~
Hello World
bazel build -c opt --define MEDIAPIPE_DISABLE_GPU=1 --action_env PYTHON_BIN_PATH="C://Users//energizerlee//AppData//Local//Programs//Python//Python39//python.exe" mediapipe/examples/desktop/hello_world
bazel-bin\mediapipe\examples\desktop\hello_world\hello_world.exe
Face Detection
bazel build -c opt --define MEDIAPIPE_DISABLE_GPU=1 mediapipe/examples/desktop/face_detection:face_detection_cpu
GLOG_logtostderr=1 bazel-bin/mediapipe/examples/desktop/face_detection/face_detection_cpu --calculator_graph_config_file=mediapipe/graphs/face_detection/face_detection_desktop_live.pbtxt
Face Mesh
bazel build -c opt --define MEDIAPIPE_DISABLE_GPU=1 mediapipe/examples/desktop/face_mesh:face_mesh_cpu
GLOG_logtostderr=1 bazel-bin/mediapipe/examples/desktop/face_mesh/face_mesh_cpu --calculator_graph_config_file=mediapipe/graphs/face_mesh/face_mesh_desktop_live.pbtxt
Iris
bazel build -c opt --define MEDIAPIPE_DISABLE_GPU=1 mediapipe/examples/desktop/iris_tracking:iris_tracking_cpu
GLOG_logtostderr=1 bazel-bin/mediapipe/examples/desktop/iris_tracking/iris_tracking_cpu --calculator_graph_config_file=mediapipe/graphs/iris_tracking/iris_tracking_cpu.pbtxt
Hands
bazel build -c opt --define MEDIAPIPE_DISABLE_GPU=1 mediapipe/examples/desktop/hand_tracking:hand_tracking_cpu
GLOG_logtostderr=1 bazel-bin/mediapipe/examples/desktop/hand_tracking/hand_tracking_cpu --calculator_graph_config_file=mediapipe/graphs/hand_tracking/hand_tracking_desktop_live.pbtxt
Pose
bazel build -c opt --define MEDIAPIPE_DISABLE_GPU=1 mediapipe/examples/desktop/pose_tracking:pose_tracking_cpu
GLOG_logtostderr=1 bazel-bin/mediapipe/examples/desktop/pose_tracking/pose_tracking_cpu --calculator_graph_config_file=mediapipe/graphs/pose_tracking/pose_tracking_cpu.pbtxt
-> shutdown
I20220321 23:38:44.711040 285152768 demo_run_graph_main.cc:84] Start grabbing and processing frames.
INFO: Created TensorFlow Lite XNNPACK delegate for CPU.
I20220321 23:38:45.168316 285152768 demo_run_graph_main.cc:143] Shutting down.
E20220321 23:38:45.586645 285152768 demo_run_graph_main.cc:154] Failed to run the graph: CalculatorGraph::Run() failed in Run:
Calculator::Process() for node "poselandmarkcpu__posesegmentationfiltering__SegmentationSmoothingCalculator" failed: ; (current_mat.rows)==(previous_mat.rows)s/image/segmentation_smoothing_calculator.cc:196)
Holistic
bazel build -c opt --define MEDIAPIPE_DISABLE_GPU=1 mediapipe/examples/desktop/holistic_tracking:holistic_tracking_cpu
GLOG_logtostderr=1 bazel-bin/mediapipe/examples/desktop/holistic_tracking/holistic_tracking_cpu --calculator_graph_config_file=mediapipe/graphs/holistic_tracking/holistic_tracking_cpu.pbtxt
Selfi Segmentation
bazel build -c opt --define MEDIAPIPE_DISABLE_GPU=1 mediapipe/examples/desktop/selfie_segmentation:selfie_segmentation_cpu
GLOG_logtostderr=1 bazel-bin/mediapipe/examples/desktop/selfie_segmentation/selfie_segmentation_cpu --calculator_graph_config_file=mediapipe/graphs/selfie_segmentation/selfie_segmentation_cpu.pbtxt
Hair Segmentation
GPU만 가능
Object Detection
bazel build -c opt --define MEDIAPIPE_DISABLE_GPU=1 mediapipe/examples/desktop/object_detection:object_detection_cpu
GLOG_logtostderr=1 bazel-bin/mediapipe/examples/desktop/object_detection/object_detection_cpu --calculator_graph_config_file=mediapipe/graphs/object_detection/object_detection_desktop_live.pbtxt
Windows
set GLOG_logtostderr=1
bazel build -c opt --define MEDIAPIPE_DISABLE_GPU=1 --action_env PYTHON_BIN_PATH="C://Users//energizerlee//AppData//Local//Programs//Python//Python39//python.exe" mediapipe/examples/desktop/object_detection:object_detection_tflite
bazel-bin\mediapipe\examples\desktop\object_detection\object_detection_tflite.exe --calculator_graph_config_file=mediapipe\graphs\object_detection\object_detection_desktop_tflite_graph.pbtxt --input_side_packets=input_video_path=C:/Users/energizerlee/Documents/mjjeon/dev/mediapipe/mediapipe/mediapipe/examples/desktop/object_detection/test_video.mp4,output_video_path=C:/Users/energizerlee/Documents/mjjeon/dev/mediapipe/mediapipe/mediapipe/examples/desktop/object_detection/output_video.mp4
Box Tracking
bazel build -c opt --define MEDIAPIPE_DISABLE_GPU=1 mediapipe/examples/desktop/object_tracking:object_tracking_cpu
GLOG_logtostderr=1 bazel-bin/mediapipe/examples/desktop/object_tracking/object_tracking_cpu --calculator_graph_config_file=mediapipe/graphs/tracking/object_detection_tracking_desktop_live.pbtxt
'개발 > mediapipe' 카테고리의 다른 글
Framework Concepts - GPU (0) | 2022.03.21 |
---|---|
Framework Concepts - Synchronization (0) | 2022.03.14 |
Framework Concepts - Packets (0) | 2022.03.05 |
python - face mesh (0) | 2022.03.05 |
mediapipe hello world error on m1 (0) | 2022.03.03 |