diff --git a/install.py b/install.py index 2dce592..cb4e26c 100644 --- a/install.py +++ b/install.py @@ -29,3 +29,6 @@ if not launch.is_installed("pyqt5"): launch.run_pip("install pyqt5", "pyqt5 requirement for depthmap script") +if platform.system() == 'Darwin': + if not launch.is_installed("pyqt6"): + launch.run_pip("install pyqt6", "pyqt6 requirement for depthmap script") \ No newline at end of file diff --git a/scripts/depthmap.py b/scripts/depthmap.py index 5a30181..0ac6dc2 100644 --- a/scripts/depthmap.py +++ b/scripts/depthmap.py @@ -724,6 +724,8 @@ def run_3dphoto_videos(mesh_fi, basename, outpath, num_frames, fps, crop_border, if platform.system() == 'Windows': vispy.use(app='PyQt5') + elif platform.system() == 'Darwin': + vispy.use('PyQt6') else: vispy.use(app='egl')