forked from mattyamonaca/PBRemTools
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request mattyamonaca#34 from udon-universe/feature/pin-onn…
…xrutime-gpu-version-and-etc update package list with dict and pin
- Loading branch information
Showing
1 changed file
with
13 additions
and
13 deletions.
There are no files selected for viewing
This file contains 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
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") |