-i, --image: Path to single input watermarked image
-f, --folder: Path to folder containing watermarked images (processes all .jpg and .webp files)
-m, --model_path: Path to TorchScript model file (required)
-o, --output_folder: Output folder for results (default: tests)
Output
The script saves two files per input:
Original image: Copied to output folder with original filename
Clean image: Saved as WebP with -clean.webp suffix
Images are automatically resized to maintain aspect ratio while respecting the 768px maximum dimension.
How It Works
The model uses a two-stage pipeline:
Stage 1: Removes 90-95% of watermarks
Stage 2: Removes remaining watermarks
Post-processing: Automatic resizing to original aspect ratio (capped at 768px)
All processing (including resizing and normalization) is performed within the compiled TorchScript model for optimal performance.
Future Improvements
I'm actively exploring ways to enhance this model's capabilities. If you have suggestions, encounter issues, or are interested in collaborating on improvements, please reach out!
License
This model is provided for non-commercial research and personal use only. For commercial applications, please contact by email for licensing options.
Support
Issues: Open an issue on the HuggingFace repository