Sanster/IOPaint

Why did using subprocess to execute iopaint run fail?

xiaoxiaohuayu opened this issue · 0 comments

I'm not very good at Python, how can I do it?
My example

import subprocess

iopaint_command = [
    'iopaint', 'run',
    '--image', 'img_down/downloaded_images/2024-10-01-17-49-37',
    '--mask',  'img_down/jksMask/output_mask.png',
    '--output', 'img_down/downloaded_images/2024-10-01-17-49-37'
]

try:
    result = subprocess.run(iopaint_command, capture_output=True, text=True, check=True)
    print("命令执行成功")
    print("标准输出:", result.stdout)
except subprocess.CalledProcessError as e:
    print("命令执行失败")
    print("错误码:", e.returncode)
    print("标准错误:", e.stderr)

error info:
image

image