Add macOS installation guide, pinned dependencies and CLI test script - #126
Open
EnricoTalpa wants to merge 1 commit into
Open
Add macOS installation guide, pinned dependencies and CLI test script#126EnricoTalpa wants to merge 1 commit into
EnricoTalpa wants to merge 1 commit into
Conversation
- README.md: complete macOS installation guide (6 steps) with compatibility notes, expected test output and file structure map - mac_requirements.txt: pinned Python dependencies compatible with macOS Intel (numpy, onnxruntime, opencv, Pillow, open3d, scipy, rasterio and full open3d dependency set) - test_libraries.py: CLI test script (13 tests) verifying all installed libraries with the Metashape internal Python 3.12 Tested on Metashape Professional 2.3.1 (macOS Intel x86_64). All 13/13 tests pass including torch 2.2.2 CPU and deepforest 2.0.0. Co-Authored-By: Oz <oz-agent@warp.dev>
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This PR contributes macOS-specific installation documentation, a pinned requirements file and a CLI test script for verifying the full dependency stack with Metashape's internal Python.
Changes
README.mdAdded a complete macOS installation procedure (6 steps) below the existing upstream content:
MacOSX11.1.sdkwhich no longer ships with CLT)user-packages-py312environmentdetect_objects.pyto replace CUDA-only torch wheels with CPU-compatible onesIncludes a compatibility table and installed file structure map.
mac_requirements.txtPinned requirements file for macOS Intel covering all scripts except
detect_objects.py:numpy==1.26.4,onnxruntime==1.18.1,opencv-python==4.10.0.84,Pillow==10.3.0open3d==0.19.0,scipy==1.12.0and their full pinned dependency setrasterio==1.4.3(bundles GDAL 3.9.3, no system GDAL required)test_libraries.pyCLI test script (13 tests) runnable with Metashape's internal Python without launching the GUI:
Covers: numpy, Pillow, opencv, scipy, onnxruntime, rasterio, open3d, torch, torchvision, albumentations, pytorch-lightning, deepforest, faster-coco-eval.
Tested on
Notes on
detect_objects.pyand macOSThe upstream script pins
torch==2.7.0+cu128which does not exist for macOS (PyTorch dropped Intel macOS support after 2.2.x). The README documents the required patch totorch==2.2.2(CPU). The script's existing CPU fallback logic (line 552: "Using CPU (will be very slow)...") works correctly without any further changes.