(pkg_name: str, wheel_url: str)
| 67 | except Exception: |
| 68 | return None |
| 69 | def try_install_from_wheel(pkg_name: str, wheel_url: str): |
| 70 | if get_installed_version(pkg_name) is not None: |
| 71 | return |
| 72 | try: |
| 73 | launch.run_pip(f"install {wheel_url}", f" {pkg_name} requirement for depthmap script") |
| 74 | except Exception as e: |
| 75 | print('Failed to install wheel for Depth Anything support. It won\'t work.') |
| 76 | try_install_from_wheel( |
| 77 | "depth_anything", |
| 78 | "https://github.com/huchenlei/Depth-Anything/releases/download/v1.0.0/depth_anything-2024.1.22.0-py2.py3-none-any.whl") |
no test coverage detected