Downgrade OpenCV, Add SYSTEM_VERSION_COMPAT=0 for MacOS

This commit is contained in:
henryruhs 2024-02-21 22:22:41 +01:00
parent a5649be4a1
commit dd2193cf39
2 changed files with 3 additions and 1 deletions

View File

@ -48,6 +48,8 @@ def run(program : ArgumentParser) -> None:
args = program.parse_args()
python_id = 'cp' + str(sys.version_info.major) + str(sys.version_info.minor)
if platform.system().lower() == 'darwin':
os.environ['SYSTEM_VERSION_COMPAT'] = '0'
if not args.skip_venv:
os.environ['PIP_REQUIRE_VIRTUALENV'] = '1'
if args.torch and args.onnxruntime:

View File

@ -4,7 +4,7 @@ gradio==3.50.2
numpy==1.26.2
onnx==1.15.0
onnxruntime==1.16.3
opencv-python==4.9.0.80
opencv-python==4.8.1.78
psutil==5.9.6
realesrgan==0.3.0
torch==2.1.2