You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
area: installationInstallers, environment setup and runtime dependency compatibilitybugSomething isn't workingneeds-infoAdditional reproduction details or confirmation on current main needed
Describe the bug
First of all, the script is saved using CRLF linebreaks instead of LF which immediatelly causes a env: bash\r: No such file or directory when running it on the Mac. Luckly that's very easy to fix, but when running it this is what I get:
=============================================
WatermarkRemover-AI Setup (Linux/macOS)
=============================================
[OK] Found python3.10 (version 3.10)
[*] Creating virtual environment...
[OK] Virtual environment created
[*] Upgrading pip...
[*] Installing dependencies (this may take a few minutes)...
ERROR: Could not find a version that satisfies the requirement torch>=2.4.0 (from versions: 1.11.0, 1.12.0, 1.12.1, 1.13.0, 1.13.1, 2.0.0, 2.0.1, 2.1.0, 2.1.1, 2.1.2, 2.2.0, 2.2.1, 2.2.2)
ERROR: No matching distribution found for torch>=2.4.0
To Reproduce
Steps to reproduce the behavior:
run ./setup.sh
Expected behavior
Should setup the environment and install the requirements;
Desktop (please complete the following information):
I've pushed a fix to the fix/macos-linux-setup branch that addresses both issues you reported:
CRLF line endings - Fixed with .gitattributes to enforce LF for shell scripts
PyTorch installation - The setup.sh now detects macOS and installs PyTorch from the main PyPI (with MPS support for Apple Silicon) instead of the CUDA index
Clicking on Preview Detection yields the following error:
Traceback (most recent call last):
File "/Users/admin/webapps/WatermarkRemover-AI/remwm.py", line 14, in <module>
from iopaint.model_manager import ModelManager
File "/Users/admin/webapps/WatermarkRemover-AI/venv/lib/python3.10/site-packages/iopaint/model_manager.py", line 7, in <module>
from iopaint.download import scan_models
File "/Users/admin/webapps/WatermarkRemover-AI/venv/lib/python3.10/site-packages/iopaint/download.py", line 7, in <module>
from iopaint.schema import ModelType, ModelInfo
File "/Users/admin/webapps/WatermarkRemover-AI/venv/lib/python3.10/site-packages/iopaint/schema.py", line 19, in <module>
from pydantic import BaseModel, Field, computed_field, model_validator
ModuleNotFoundError: No module named 'pydantic'
I've pushed a fix for the missing dependencies issue. The problem was that iopaint --no-deps skips all dependencies, including ones required for the app to work.
Traceback (most recent call last):
File "D:\WatermarkRemover-AI\remwm.py", line 14, in <module>
from iopaint.model_manager import ModelManager
File "D:\WatermarkRemover-AI\python\Lib\site-packages\iopaint\model_manager.py", line 7, in <module>
from iopaint.download import scan_models
File "D:\WatermarkRemover-AI\python\Lib\site-packages\iopaint\download.py", line 7, in <module>
from iopaint.schema import ModelType, ModelInfo
File "D:\WatermarkRemover-AI\python\Lib\site-packages\iopaint\schema.py", line 19, in <module>
from pydantic import BaseModel, Field, computed_field, model_validator
ModuleNotFoundError: No module named 'pydantic'
.\setup.ps1
=============================================
WatermarkRemover-AI Setup
=============================================
[*] Downloading Python 3.12.7...
[OK] Downloaded Python
[*] Extracting...
[*] Installing pip...
[OK] Python 3.12.7 ready
[*] Installing dependencies...
This takes 5-10 minutes. Chill and learn something!
Did you know?
Looking in indexes: https://pypi.org/simple, https://download.pytorch.org/whl/cu124
Collecting torch>=2.4.0 (from -r requirements.txt (line 3))
Downloading torch-2.9.1-cp312-cp312-win_amd64.whl (110.9 MB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 110.9/110.9 MB 18.6 MB/s 0:00:06
Collecting torchvision>=0.19.0 (from -r requirements.txt (line 4))
Downloading torchvision-0.24.1-cp312-cp312-win_amd64.whl (4.3 MB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 4.3/4.3 MB 21.6 MB/s 0:00:00
Collecting transformers>=4.50.0 (from -r requirements.txt (line 5))
Downloading transformers-4.57.3-py3-none-any.whl (12.0 MB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 12.0/12.0 MB 22.1 MB/s 0:00:00
[?] Tip: PNG format preserves quality, JPG saves space Collecting diffusers>=0.30.0 (from -r requirements.txt (line 6))
Downloading diffusers-0.36.0-py3-none-any.whl (4.6 MB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 4.6/4.6 MB 21.4 MB/s 0:00:00
Collecting numpy<2 (from -r requirements.txt (line 7))
Downloading numpy-1.26.4-cp312-cp312-win_amd64.whl (15.5 MB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 15.5/15.5 MB 22.2 MB/s 0:00:00
Collecting opencv-python-headless<4.12.0,>=4.8.0 (from -r requirements.txt (line 10))
Downloading opencv_python_headless-4.11.0.86-cp37-abi3-win_amd64.whl (39.4 MB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 39.4/39.4 MB 22.4 MB/s 0:00:01
Collecting Pillow>=10.0.0 (from -r requirements.txt (line 11))
Downloading pillow-12.0.0-cp312-cp312-win_amd64.whl (7.0 MB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 7.0/7.0 MB 22.7 MB/s 0:00:00
Collecting pywebview>=4.0 (from -r requirements.txt (line 16))
Downloading pywebview-6.1-py3-none-any.whl (511 kB)
[?] Tip: Install FFmpeg to keep audio in processed videos Collecting loguru (from -r requirements.txt (line 19))
Downloading loguru-0.7.3-py3-none-any.whl (61 kB)
Collecting click (from -r requirements.txt (line 20))
Downloading click-8.3.1-py3-none-any.whl (108 kB)
Collecting tqdm (from -r requirements.txt (line 21))
Downloading tqdm-4.67.1-py3-none-any.whl (78 kB)
Collecting psutil (from -r requirements.txt (line 22))
Downloading psutil-7.1.3-cp37-abi3-win_amd64.whl (247 kB)
Collecting pyyaml (from -r requirements.txt (line 23))
Downloading pyyaml-6.0.3-cp312-cp312-win_amd64.whl (154 kB)
[i] The inpainting AI 'imagines' what should be behind the watermark Collecting filelock (from torch>=2.4.0->-r requirements.txt (line 3))
Downloading filelock-3.20.1-py3-none-any.whl (16 kB)
Collecting typing-extensions>=4.10.0 (from torch>=2.4.0->-r requirements.txt (line 3))
Downloading typing_extensions-4.15.0-py3-none-any.whl (44 kB)
Collecting sympy>=1.13.3 (from torch>=2.4.0->-r requirements.txt (line 3))
Downloading sympy-1.14.0-py3-none-any.whl (6.3 MB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 6.3/6.3 MB 22.7 MB/s 0:00:00
Collecting networkx>=2.5.1 (from torch>=2.4.0->-r requirements.txt (line 3))
Downloading networkx-3.6.1-py3-none-any.whl (2.1 MB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 2.1/2.1 MB 23.2 MB/s 0:00:00
Collecting jinja2 (from torch>=2.4.0->-r requirements.txt (line 3))
[?] Tip: Works best on watermarks that cover less than 10% of image Downloading jinja2-3.1.6-py3-none-any.whl (134 kB)
Collecting fsspec>=0.8.5 (from torch>=2.4.0->-r requirements.txt (line 3))
Downloading fsspec-2025.12.0-py3-none-any.whl (201 kB)
Requirement already satisfied, skipping upgrade: setuptools; python_version >= "3.12" in d:\watermarkremover-ai\python\lib\site-packages (from torch>=2.4.0->-r requirements.txt (line 3)) (80.9.0)
Collecting huggingface-hub<1.0,>=0.34.0 (from transformers>=4.50.0->-r requirements.txt (line 5))
Downloading huggingface_hub-0.36.0-py3-none-any.whl (566 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 566.1/566.1 kB 19.0 MB/s 0:00:00
Collecting packaging>=20.0 (from transformers>=4.50.0->-r requirements.txt (line 5))
Downloading packaging-25.0-py3-none-any.whl (66 kB)
Collecting regex!=2019.12.17 (from transformers>=4.50.0->-r requirements.txt (line 5))
Downloading regex-2025.11.3-cp312-cp312-win_amd64.whl (277 kB)
[i] Processing 4K video? Get some snacks, it takes a while Collecting requests (from transformers>=4.50.0->-r requirements.txt (line 5))
Downloading requests-2.32.5-py3-none-any.whl (64 kB)
Collecting tokenizers<=0.23.0,>=0.22.0 (from transformers>=4.50.0->-r requirements.txt (line 5))
Downloading tokenizers-0.22.1-cp39-abi3-win_amd64.whl (2.7 MB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 2.7/2.7 MB 25.9 MB/s 0:00:00
Collecting safetensors>=0.4.3 (from transformers>=4.50.0->-r requirements.txt (line 5))
Downloading safetensors-0.7.0-cp38-abi3-win_amd64.whl (341 kB)
Collecting importlib_metadata (from diffusers>=0.30.0->-r requirements.txt (line 6))
Downloading importlib_metadata-8.7.0-py3-none-any.whl (27 kB)
[?] Tip: Check the logs if something goes wrong Collecting httpx<1.0.0 (from diffusers>=0.30.0->-r requirements.txt (line 6))
Downloading httpx-0.28.1-py3-none-any.whl (73 kB)
Collecting pythonnet; sys_platform == "win32" (from pywebview>=4.0->-r requirements.txt (line 16))
Downloading pythonnet-3.0.5-py3-none-any.whl (297 kB)
Collecting proxy_tools (from pywebview>=4.0->-r requirements.txt (line 16))
Downloading proxy_tools-0.1.0.tar.gz (3.0 kB)
[i] The AI can handle semi-transparent watermarks too! done
Getting requirements to build wheel ... done
Preparing metadata (pyproject.toml) ... done
Collecting bottle (from pywebview>=4.0->-r requirements.txt (line 16))
Downloading bottle-0.13.4-py2.py3-none-any.whl (103 kB)
Collecting colorama>=0.3.4; sys_platform == "win32" (from loguru->-r requirements.txt (line 19))
Downloading colorama-0.4.6-py2.py3-none-any.whl (25 kB)
[?] Tip: Your settings are saved automatically between sessions Collecting win32-setctime>=1.0.0; sys_platform == "win32" (from loguru->-r requirements.txt (line 19))
Downloading win32_setctime-1.2.0-py3-none-any.whl (4.1 kB)
Collecting mpmath<1.4,>=1.1.0 (from sympy>=1.13.3->torch>=2.4.0->-r requirements.txt (line 3))
Downloading mpmath-1.3.0-py3-none-any.whl (536 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 536.2/536.2 kB ? 0:00:00
Collecting MarkupSafe>=2.0 (from jinja2->torch>=2.4.0->-r requirements.txt (line 3))
Downloading markupsafe-3.0.3-cp312-cp312-win_amd64.whl (15 kB)
Collecting charset_normalizer<4,>=2 (from requests->transformers>=4.50.0->-r requirements.txt (line 5))
Downloading charset_normalizer-3.4.4-cp312-cp312-win_amd64.whl (107 kB)
Collecting idna<4,>=2.5 (from requests->transformers>=4.50.0->-r requirements.txt (line 5))
[i] Florence-2 can detect watermarks in any language - even emojis! Downloading idna-3.11-py3-none-any.whl (71 kB)
Collecting urllib3<3,>=1.21.1 (from requests->transformers>=4.50.0->-r requirements.txt (line 5))
Downloading urllib3-2.6.2-py3-none-any.whl (131 kB)
Collecting certifi>=2017.4.17 (from requests->transformers>=4.50.0->-r requirements.txt (line 5))
Downloading certifi-2025.11.12-py3-none-any.whl (159 kB)
Collecting zipp>=3.20 (from importlib_metadata->diffusers>=0.30.0->-r requirements.txt (line 6))
Downloading zipp-3.23.0-py3-none-any.whl (10 kB)
Collecting anyio (from httpx<1.0.0->diffusers>=0.30.0->-r requirements.txt (line 6))
Downloading anyio-4.12.0-py3-none-any.whl (113 kB)
[?] Tip: Use 'Transparent mode' to keep the original background visible Collecting httpcore==1.* (from httpx<1.0.0->diffusers>=0.30.0->-r requirements.txt (line 6))
Downloading httpcore-1.0.9-py3-none-any.whl (78 kB)
Collecting clr_loader<0.3.0,>=0.2.7 (from pythonnet; sys_platform == "win32"->pywebview>=4.0->-r requirements.txt (line 16))
Downloading clr_loader-0.2.9-py3-none-any.whl (56 kB)
Collecting h11>=0.16 (from httpcore==1.*->httpx<1.0.0->diffusers>=0.30.0->-r requirements.txt (line 6))
Downloading h11-0.16.0-py3-none-any.whl (37 kB)
Collecting cffi>=1.17; python_version >= "3.8" (from clr_loader<0.3.0,>=0.2.7->pythonnet; sys_platform == "win32"->pywebview>=4.0->-r requirements.txt (line 16))
Downloading cffi-2.0.0-cp312-cp312-win_amd64.whl (183 kB)
[i] The AI model was trained on millions of images to understand context Collecting pycparser; implementation_name != "PyPy" (from cffi>=1.17; python_version >= "3.8"->clr_loader<0.3.0,>=0.2.7->pythonnet; sys_platform == "win32"->pywebview>=4.0->-r requirements.txt (line 16))
Downloading pycparser-2.23-py3-none-any.whl (118 kB)
Building wheels for collected packages: proxy_tools
Building wheel for proxy_tools (pyproject.toml) ... done
Created wheel for proxy_tools: filename=proxy_tools-0.1.0-py3-none-any.whl size=2944 sha256=780a27f9f307bc3110f9ba9d4ba3196b47750d78e5bc998ba9f4811d8d8fb5e7
Stored in directory: C:\Users\yangjieshao\AppData\Local\Temp\pip-ephem-wheel-cache-iy_3ag4l\wheels\07\37\12\f3390260c831aa68c3835d6ec2e10d8da094b5fc0ac32feb14
Successfully built proxy_tools
Installing collected packages: filelock, typing-extensions, mpmath, sympy, networkx, MarkupSafe, jinja2, fsspec, torch, numpy, Pillow, torchvision, packaging, pyyaml, charset_normalizer, idna, urllib3, certifi, requests, colorama, tqdm, huggingface-hub, regex, tokenizers, safetensors, transformers, zipp, importlib_metadata, anyio, h11, httpcore, httpx, diffusers, opencv-python-headless, pycparser, cffi, clr_loader, pythonnet, proxy_tools, bottle, pywebview, win32-setctime, loguru, click, psutil
━━╸━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 3/45 [sympy] WARNING: The script isympy.exe is installed in 'D:\WatermarkRemover-AI\python\Scripts' which is not on PATH.
Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location.
━━━━━━━╺━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 8/45 [torch] WARNING: The scripts torchfrtrace.exe and torchrun.exe are installed in 'D:\WatermarkRemover-AI\python\Scripts' which is not on PATH.
Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location.
━━━━━━━━╺━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 9/45 [numpy] WARNING: The script f2py.exe is installed in 'D:\WatermarkRemover-AI\python\Scripts' which is not on PATH.
Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location.
━━━━━━━━━━━━╺━━━━━━━━━━━━━━━━━━━━━━━━━━━ 14/45 [charset_normalizer] WARNING: The script normalizer.exe is installed in 'D:\WatermarkRemover-AI\python\Scripts' which is not on PATH.
Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location.
━━━━━━━━━━━━━━━━╸━━━━━━━━━━━━━━━━━━━━━━━ 19/45 [colorama] WARNING: The script tqdm.exe is installed in 'D:\WatermarkRemover-AI\python\Scripts' which is not on PATH.
Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location.
━━━━━━━━━━━━━━━━━━╸━━━━━━━━━━━━━━━━━━━━━ 21/45 [huggingface-hub] WARNING: The scripts hf.exe, huggingface-cli.exe and tiny-agents.exe are installed in 'D:\WatermarkRemover-AI\python\Scripts' which is not on PATH.
Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location.
━━━━━━━━━━━━━━━━━━━━━━╺━━━━━━━━━━━━━━━━━ 25/45 [transformers] WARNING: The scripts transformers-cli.exe and transformers.exe are installed in 'D:\WatermarkRemover-AI\python\Scripts' which is not on PATH.
Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location.
━━━━━━━━━━━━━━━━━━━━━━━━━━╸━━━━━━━━━━━━━ 30/45 [httpcore] WARNING: The script httpx.exe is installed in 'D:\WatermarkRemover-AI\python\Scripts' which is not on PATH.
Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━╺━━━━━━━━━━━ 32/45 [diffusers] WARNING: The script diffusers-cli.exe is installed in 'D:\WatermarkRemover-AI\python\Scripts' which is not on PATH.
Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location.
[i] Florence-2 is Microsoft's latest vision AI model WARNING: The script bottle.exe is installed in 'D:\WatermarkRemover-AI\python\Scripts' which is not on PATH.
Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location.
Successfully installed MarkupSafe-3.0.3 Pillow-12.0.0 anyio-4.12.0 bottle-0.13.4 certifi-2025.11.12 cffi-2.0.0 charset_normalizer-3.4.4 click-8.3.1 clr_loader-0.2.9 colorama-0.4.6 diffusers-0.36.0 filelock-3.20.1 fsspec-2025.12.0 h11-0.16.0 httpcore-1.0.9 httpx-0.28.1 huggingface-hub-0.36.0 idna-3.11 importlib_metadata-8.7.0 jinja2-3.1.6 loguru-0.7.3 mpmath-1.3.0 networkx-3.6.1 numpy-1.26.4 opencv-python-headless-4.11.0.86 packaging-25.0 proxy_tools-0.1.0 psutil-7.1.3 pycparser-2.23 pythonnet-3.0.5 pywebview-6.1 pyyaml-6.0.3 regex-2025.11.3 requests-2.32.5 safetensors-0.7.0 sympy-1.14.0 tokenizers-0.22.1 torch-2.9.1 torchvision-0.24.1 tqdm-4.67.1 transformers-4.57.3 typing-extensions-4.15.0 urllib3-2.6.2 win32-setctime-1.2.0 zipp-3.23.0
[*] Installing iopaint (no deps)...
Collecting iopaint
Downloading IOPaint-1.6.0-py3-none-any.whl.metadata (8.2 kB)
Downloading IOPaint-1.6.0-py3-none-any.whl (3.3 MB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 3.3/3.3 MB 4.7 MB/s 0:00:01
Installing collected packages: iopaint
WARNING: The script iopaint.exe is installed in 'D:\WatermarkRemover-AI\python\Scripts' which is not on PATH.
Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location.
Successfully installed iopaint-1.6.0
Could not fetch URL https://pypi.org/simple/pip/: There was a problem confirming the ssl certificate: HTTPSConnectionPool(host='pypi.org', port=443): Max retries exceeded with url: /simple/pip/ (Caused by SSLError(SSLEOFError(8, '[SSL: UNEXPECTED_EOF_WHILE_READING] EOF occurred in violation of protocol (_ssl.c:1000)'))) - skipping
[X] Failed to install iopaint
Press Enter to exit:
修改 run.bat 以添加path
set PATH=D:\WatermarkRemover-AI\python\Scripts;%PATH%
@echo off
cd /d "%~dp0"
python\pythonw.exe remwmgui.py
启动后点击 preview detection
返回错误
Traceback (most recent call last):
File "D:\WatermarkRemover-AI\remwm.py", line 14, in <module>
from iopaint.model_manager import ModelManager
File "D:\WatermarkRemover-AI\python\Lib\site-packages\iopaint\model_manager.py", line 7, in <module>
from iopaint.download import scan_models
File "D:\WatermarkRemover-AI\python\Lib\site-packages\iopaint\download.py", line 7, in <module>
from iopaint.schema import ModelType, ModelInfo
File "D:\WatermarkRemover-AI\python\Lib\site-packages\iopaint\schema.py", line 19, in <module>
from pydantic import BaseModel, Field, computed_field, model_validator
ModuleNotFoundError: No module named 'pydantic'
Traceback (most recent call last):
File "C:\test\ai\WatermarkRemover-AI\remwm.py", line 13, in
from transformers import AutoProcessor, Florence2ForConditionalGeneration
File "C:\test\ai\WatermarkRemover-AI\python\Lib\site-packages\transformers_init_.py", line 27, in
from . import dependency_versions_check
File "C:\test\ai\WatermarkRemover-AI\python\Lib\site-packages\transformers\dependency_versions_check.py", line 16, in
from .utils.versions import require_version, require_version_core
File "C:\test\ai\WatermarkRemover-AI\python\Lib\site-packages\transformers\utils_init_.py", line 24, in
from .auto_docstring import (
File "C:\test\ai\WatermarkRemover-AI\python\Lib\site-packages\transformers\utils\auto_docstring.py", line 30, in
from .generic import ModelOutput
File "C:\test\ai\WatermarkRemover-AI\python\Lib\site-packages\transformers\utils\generic.py", line 51, in
import torch
File "C:\test\ai\WatermarkRemover-AI\python\Lib\site-packages\torch_init_.py", line 281, in load_dll_libraries()
File "C:\test\ai\WatermarkRemover-AI\python\Lib\site-packages\torch_init.py", line 264, in _load_dll_libraries
raise err
OSError: [WinError 1114] 动态链接库(DLL)初始化例程失败。 Error loading "C:\test\ai\WatermarkRemover-AI\python\Lib\site-packages\torch\lib\c10.dll" or one of its dependencies.
This thread now contains several different failures. LF line endings are enforced for shell scripts and checked by the CI added in #82, but those checks do not validate a complete application installation or resolve the later dependency errors in this thread.
For remaining macOS failures, please provide the current revision, Intel/Apple Silicon architecture, Python version and the first failing step with its traceback. Dependency compatibility is tracked in #48 and Linux/macOS GUI backend setup is being addressed in #68. Keeping this open until the current installation path is verified.
area: installationInstallers, environment setup and runtime dependency compatibilitybugSomething isn't workingneeds-infoAdditional reproduction details or confirmation on current main needed
Activity
Fix macOS/Linux setup: detect OS, install correct PyTorch version
D-Ogi commentedon Dec 12, 2025
Hi @Ghostavio,
I've pushed a fix to the
fix/macos-linux-setupbranch that addresses both issues you reported:.gitattributesto enforce LF for shell scriptsCould you please test this branch?
git clone -b fix/macos-linux-setup https://github.com/D-Ogi/WatermarkRemover-AI.git cd WatermarkRemover-AI chmod +x setup.sh ./setup.shLet me know if it works for you!
Ghostavio commentedon Dec 13, 2025
Thanks for acting on this so quickly. Here's the full output of the script now:
============================================= WatermarkRemover-AI Setup (Linux/macOS) ============================================= [*] Detected macOS [OK] Found python3.10 (version 3.10) [OK] Virtual environment exists [*] Upgrading pip... [*] Installing PyTorch... [OK] PyTorch installed (MPS support on Apple Silicon) [*] Installing other dependencies... [*] Installing iopaint... [OK] Dependencies installed [*] Downloading LaMA model (~196MB)... Traceback (most recent call last): File "/usr/local/Cellar/python@3.10/3.10.19_1/Frameworks/Python.framework/Versions/3.10/lib/python3.10/runpy.py", line 196, in _run_module_as_main return _run_code(code, main_globals, None, File "/usr/local/Cellar/python@3.10/3.10.19_1/Frameworks/Python.framework/Versions/3.10/lib/python3.10/runpy.py", line 86, in _run_code exec(code, run_globals) File "/Users/admin/webapps/WatermarkRemover-AI/venv/lib/python3.10/site-packages/iopaint/__main__.py", line 4, in <module> entry_point() File "/Users/admin/webapps/WatermarkRemover-AI/venv/lib/python3.10/site-packages/iopaint/__init__.py", line 52, in entry_point from iopaint.cli import typer_app File "/Users/admin/webapps/WatermarkRemover-AI/venv/lib/python3.10/site-packages/iopaint/cli.py", line 6, in <module> import typer ModuleNotFoundError: No module named 'typer' [!] LaMA download failed, will retry on first use [*] Downloading Florence-2 model (~1.5GB)... .gitattributes: 1.52kB [00:00, 4.81MB/s] | 0/13 [00:00<?, ?it/s] preprocessor_config.json: 100%|██████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 603/603 [00:00<00:00, 3.53MB/s] config.json: 2.40kB [00:00, 10.1MB/s] README.md: 13.4kB [00:00, 3.51MB/s] | 0.00/603 [00:00<?, ?B/s] added_tokens.json: 22.4kB [00:00, 8.24MB/s] | 1/13 [00:00<00:03, 3.62it/s] tokenizer_config.json: 198kB [00:00, 279MB/s]████████████████████████▉ | 3/13 [00:00<00:03, 3.21it/s] processor_config.json: 2.26kB [00:00, 10.9MB/s] generation_config.json: 100%|████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 292/292 [00:00<00:00, 2.67MB/s] merges.txt: 456kB [00:00, 9.93MB/s] | 0.00/292 [00:00<?, ?B/s] tokenizer.json: 3.75MB [00:00, 61.9MB/s]███████████████████████████████████████████████████████████████████████████▊ | 6/13 [00:01<00:01, 7.00it/s] special_tokens_map.json: 147kB [00:00, 253MB/s] vocab.json: 798kB [00:00, 3.46MB/s]00, ?B/s] model.safetensors: 100%|█████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 1.55G/1.55G [01:06<00:00, 23.2MB/s] Fetching 13 files: 100%|██████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 13/13 [01:08<00:00, 5.23s/it] ============================================= Setup complete! ============================================= To run the app: source venv/bin/activate python remwmgui.py Or for CLI: source venv/bin/activate python remwm.py input.png output/ Launch now? (y/n)LaMA download failed, will retry on first usefailed for some reason, but the applications launched. I'm gonna test it now.Ghostavio commentedon Dec 13, 2025
Clicking on Preview Detection yields the following error:
Fix missing iopaint dependencies (typer, pydantic, etc.)
Fix missing iopaint dependencies (typer, pydantic, etc.)
D-Ogi commentedon Dec 13, 2025
Hi @Ghostavio,
I've pushed a fix for the missing dependencies issue. The problem was that
iopaint --no-depsskips all dependencies, including ones required for the app to work.Changes:
pydantic,typer,einops,omegaconf,easydict,yacsiopaintCLI (which requiresfastapi)Please test the updated branch:
git clone -b fix/macos-linux-setup https://github.com/D-Ogi/WatermarkRemover-AI.git cd WatermarkRemover-AI chmod +x setup.sh ./setup.shLet me know if it works!
Fix missing iopaint dependencies (typer, pydantic, etc.)
yangjieshao commentedon Dec 16, 2025
same error on windows
yangjieshao commentedon Dec 16, 2025
以下是安装时的日志
修改 run.bat 以添加path
启动后点击 preview detection
返回错误
D-Ogi commentedon Dec 17, 2025
感谢您的详细日志!
我们刚刚发布了修复版本,解决了两个问题:
1. 缺少 pydantic 等依赖
现在
setup.ps1和新增的setup.bat会自动安装并验证 iopaint 的依赖(pydantic, typer, einops 等)。2. 中国网络问题
从您的日志可以看到 SSL 错误:
这是因为中国网络环境导致 PyPI 连接不稳定。
新版本支持中国镜像! 请重新下载并运行 setup:
在开始时会询问:
输入
y,将自动使用:https://pypi.tuna.tsinghua.edu.cn/simplehttps://hf-mirror.com这样下载速度会快很多,也不会遇到 SSL 问题。
如果您已经安装了 Python,可以手动安装缺失的依赖:
D-Ogi commentedon Dec 17, 2025
另外,我们有简体中文翻译!🇨🇳
请检查一下
ui/lang/zh.json的翻译质量 - 我们用了一些抽象梗,不知道翻译得地不地道?如果有更好的翻译建议,欢迎提 PR 或者直接在这里告诉我们!🙏
(语言可以在界面右上角切换 🌐)
yangjieshao commentedon Dec 18, 2025
不知为何,我第一次执行 setup.ps1 ,错误仍然存在
然后删除整个目录后重新执行 setup.bat 整个程序卡死,从任务管理器看CPU负担和GPU负担都是0,我强制结束进程后在 setup.bat 开头添加了临时path后直接重新执行(未删除目录内内容),程序就可以正常运行了
感谢作者
另外,最好提供不玩梗的中文翻译,和玩梗的翻译区分开,会更合适(毕竟有时候并不适合展示现在的中文翻译)
还有就是 ,通过setup.bat 启动会从日志发现缺失了UI布局的配置文件,第一次启动没有这个文件可以理解,但是运行过一次后未自动创建这个配置文件有点不合适。
anbency commentedon Dec 25, 2025
Traceback (most recent call last):
File "C:\test\ai\WatermarkRemover-AI\remwm.py", line 13, in
from transformers import AutoProcessor, Florence2ForConditionalGeneration
File "C:\test\ai\WatermarkRemover-AI\python\Lib\site-packages\transformers_init_.py", line 27, in
from . import dependency_versions_check
File "C:\test\ai\WatermarkRemover-AI\python\Lib\site-packages\transformers\dependency_versions_check.py", line 16, in
from .utils.versions import require_version, require_version_core
File "C:\test\ai\WatermarkRemover-AI\python\Lib\site-packages\transformers\utils_init_.py", line 24, in
from .auto_docstring import (
File "C:\test\ai\WatermarkRemover-AI\python\Lib\site-packages\transformers\utils\auto_docstring.py", line 30, in
from .generic import ModelOutput
File "C:\test\ai\WatermarkRemover-AI\python\Lib\site-packages\transformers\utils\generic.py", line 51, in
import torch
File "C:\test\ai\WatermarkRemover-AI\python\Lib\site-packages\torch_init_.py", line 281, in
load_dll_libraries()
File "C:\test\ai\WatermarkRemover-AI\python\Lib\site-packages\torch_init.py", line 264, in _load_dll_libraries
raise err
OSError: [WinError 1114] 动态链接库(DLL)初始化例程失败。 Error loading "C:\test\ai\WatermarkRemover-AI\python\Lib\site-packages\torch\lib\c10.dll" or one of its dependencies.
Ghostavio commentedon Jan 22, 2026
Has all been resolved on this issue?
luminous11111 commentedon Jan 27, 2026
I'm also having the exact same issue with Mac and cannot get it to run properly. Any updates @D-Ogi ?
Thank you!
D-Ogi commentedon Jan 27, 2026
It's working fine on mine M3 Pro, so I encourage you to deep into the troubleshooting on your own. It's open source repo.
Fix silent install-verification failure and document VC++ redist fix
D-Ogi commentedon Sep 16, 2026
This thread now contains several different failures. LF line endings are enforced for shell scripts and checked by the CI added in #82, but those checks do not validate a complete application installation or resolve the later dependency errors in this thread.
For remaining macOS failures, please provide the current revision, Intel/Apple Silicon architecture, Python version and the first failing step with its traceback. Dependency compatibility is tracked in #48 and Linux/macOS GUI backend setup is being addressed in #68. Keeping this open until the current installation path is verified.
Fix macOS/Linux setup: detect OS, install correct PyTorch version
Fix missing iopaint dependencies (typer, pydantic, etc.)