代码拉取完成,页面将自动刷新
import launch
import platform
if not launch.is_installed("timm"): #0.6.7
launch.run_pip("install --force-reinstall timm==0.6.12", "timm requirement for depthmap script")
if not launch.is_installed("matplotlib"):
launch.run_pip("install matplotlib", "matplotlib requirement for depthmap script")
if not launch.is_installed("numba"):
launch.run_pip("install numba", "numba requirement for depthmap script")
if not launch.is_installed("vispy"):
launch.run_pip("install vispy", "vispy requirement for depthmap script")
if not launch.is_installed("rembg"):
launch.run_pip("install rembg", "rembg requirement for depthmap script")
if not launch.is_installed("moviepy"):
launch.run_pip("install moviepy==1.0.2", "moviepy requirement for depthmap script")
if not launch.is_installed("transforms3d"):
launch.run_pip("install transforms3d", "transforms3d requirement for depthmap script")
if not launch.is_installed("imageio"): #2.4.1
launch.run_pip("install imageio", "imageio-ffmpeg requirement for depthmap script")
if not launch.is_installed("imageio-ffmpeg"):
launch.run_pip("install imageio-ffmpeg", "imageio-ffmpeg requirement for depthmap script")
if not launch.is_installed("networkx"):
launch.run_pip("install install networkx==2.5", "networkx requirement for depthmap script")
if platform.system() == 'Windows':
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")
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。