From db72bafc52bcdbd07dd5e90aeb0abb5caf55cd98 Mon Sep 17 00:00:00 2001 From: mattyamonaca Date: Wed, 5 Apr 2023 10:43:36 +0900 Subject: [PATCH] add install.py --- launch.py => demo.py | 0 install.py | 29 +++++++++++++++++++++++++++++ 2 files changed, 29 insertions(+) rename launch.py => demo.py (100%) create mode 100644 install.py diff --git a/launch.py b/demo.py similarity index 100% rename from launch.py rename to demo.py diff --git a/install.py b/install.py new file mode 100644 index 0000000..ad11fbe --- /dev/null +++ b/install.py @@ -0,0 +1,29 @@ +import launch + +if not launch.is_installed("onnx"): + launch.run_pip("install onnx") + print("Installing onnx...") + +if not launch.is_installed("onnxruntime-gpu"): + launch.run_pip("install onnxruntime-gpu") + print("Installing onnxruntime-gpu...") + +if not launch.is_installed("opencv-python"): + launch.run_pip("install opencv-python") + print("Installing opencv-python...") + +if not launch.is_installed("numpy"): + launch.run_pip("install numpy") + print("Installing numpy...") + +if not launch.is_installed("Pillow"): + launch.run_pip("install Pillow") + print("Installing Pillow...") + +if not launch.is_installed("segmentation-refinement"): + launch.run_pip("install segmentation-refinement") + print("Installing segmentation-refinement...") + +if not launch.is_installed("scikit-learn"): + launch.run_pip("install scikit-learn") + print("Installing scikit-learn...") \ No newline at end of file