Duplicated from Sanster/iopaint-lama
3b90a27 7a09990 3b90a27
1
2
3
4
5
6
7
import subprocess if __name__ == "__main__": cmd = "iopaint start --model lama --host 0.0.0.0 --port 7860 --enable-interactive-seg --interactive-seg-model=vit_b --interactive-seg-device=cpu" # start subprocess using cmd subprocess.run(cmd, shell=True)