mirror of
https://github.com/Bing-su/adetailer.git
synced 2026-05-01 03:31:21 +00:00
fix: protobuf install
This commit is contained in:
@@ -7,7 +7,7 @@ from importlib.metadata import version # python >= 3.8
|
|||||||
|
|
||||||
from packaging.version import parse
|
from packaging.version import parse
|
||||||
|
|
||||||
import_name = {"py-cpuinfo": "cpuinfo"}
|
import_name = {"py-cpuinfo": "cpuinfo", "protobuf": "google.protobuf"}
|
||||||
|
|
||||||
|
|
||||||
def is_installed(
|
def is_installed(
|
||||||
@@ -44,11 +44,13 @@ def run_pip(*args):
|
|||||||
def install():
|
def install():
|
||||||
deps = [
|
deps = [
|
||||||
# requirements
|
# requirements
|
||||||
("ultralytics", "8.0.143", None),
|
("ultralytics", "8.0.145", None),
|
||||||
("mediapipe", "0.10.2", None),
|
("mediapipe", "0.10.2", None),
|
||||||
("rich", "13.4.2", None),
|
("rich", "13.4.2", None),
|
||||||
# ultralytics
|
# ultralytics
|
||||||
("py-cpuinfo", None, None),
|
("py-cpuinfo", None, None),
|
||||||
|
# mediapipe
|
||||||
|
("protobuf", "3.20", "3.9999"),
|
||||||
]
|
]
|
||||||
|
|
||||||
for pkg, low, high in deps:
|
for pkg, low, high in deps:
|
||||||
|
|||||||
Reference in New Issue
Block a user