Fixing work with onnxruntime for rembg

This commit is contained in:
Level Pixel Dev
2025-05-28 07:03:45 +06:00
parent 6999dd366e
commit 32861175aa
3 changed files with 16 additions and 57 deletions
+4
View File
@@ -9,6 +9,10 @@ if /I "%user_input%"=="Y" (
cd ..\..\..\..
.\python_embeded\python.exe -m pip uninstall -y onnxruntime
.\python_embeded\python.exe -m pip uninstall -y onnxruntime-gpu
rmdir /s /q "python_embeded\Lib\site-packages\onnxruntime"
for /d %%D in ("python_embeded\Lib\site-packages\onnxruntime-*") do rmdir /s /q "%%~fD"
) else (
echo Please close the ComfyUI console first and run this script again.
)