Skip to content

Commit

Permalink
Merge pull request mattyamonaca#34 from udon-universe/feature/pin-onn…
Browse files Browse the repository at this point in the history
…xrutime-gpu-version-and-etc

update package list with dict and pin
  • Loading branch information
mattyamonaca authored May 22, 2023
2 parents 302252a + efe6752 commit b179be6
Showing 1 changed file with 13 additions and 13 deletions.
26 changes: 13 additions & 13 deletions install.py
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
import launch

packages = [
"onnx",
"onnxruntime-gpu",
"opencv-python",
"numpy",
"Pillow",
"segmentation-refinement",
"scikit-learn",
"clip",
]
packages = {
"onnx": "onnx",
"onnxruntime-gpu": "onnxruntime-gpu==1.14.0",
"opencv-python": "opencv-python",
"numpy": "numpy",
"Pillow": "Pillow",
"segmentation-refinement": "segmentation-refinement",
"scikit-learn": "scikit-learn",
"clip": "clip",
}

for package in packages:
if not launch.is_installed(package):
launch.run_pip(f'install {package}', desc=f'{package} for PBRemTools')
for name, target in packages.items():
if not launch.is_installed(name):
launch.run_pip(f'install {target}', desc=f'{name} for PBRemTools')

if not launch.is_installed("segment_anything"):
launch.run_pip("install git+https://github.com/facebookresearch/segment-anything.git", desc="segment_anything for PBRemTools")

0 comments on commit b179be6

Please sign in to comment.