From 41ebf7248be1a7c5c58c14acdfd2fb3b5593535e Mon Sep 17 00:00:00 2001 From: toshiaki1729 <116595002+toshiaki1729@users.noreply.github.com> Date: Sun, 11 Dec 2022 18:52:33 +0900 Subject: [PATCH] remove excess code since cmd_opts is not parsed when install.py is loaded Arm CPUs and/or macOS cannot use without installing onnxruntime package manually see: https://onnxruntime.ai/docs/get-started/with-python.html#install-onnx-runtime --- install.py | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/install.py b/install.py index d24b145..7f445aa 100644 --- a/install.py +++ b/install.py @@ -1,9 +1,4 @@ import launch -from modules.shared import cmd_opts -if 'all' in cmd_opts.use_cpu or 'interrogate' in cmd_opts.use_cpu: - if not launch.is_installed("onnxruntime"): - launch.run_pip("install onnxruntime", "requirements for using SmilingWolf/wd-v1-4-vit-tagger on CPU device") -else: - if not launch.is_installed("onnxruntime-gpu"): - launch.run_pip("install onnxruntime-gpu", "requirements for using SmilingWolf/wd-v1-4-vit-tagger on GPU device") \ No newline at end of file +if not launch.is_installed("onnxruntime-gpu"): + launch.run_pip("install onnxruntime-gpu", "requirements for using SmilingWolf/wd-v1-4-vit-tagger") \ No newline at end of file