Skip to main content

Remove watermarks from Gemini-generated images using LaMa inpainting

Project description

gemini-unwatermark

Fast CLI to remove watermarks from Google Gemini-generated images using AI inpainting.

Installation

pip install gemini-unwatermark

Or run directly without installing:

uvx gemini-unwatermark image.png

For GPU acceleration (CUDA):

pip install "gemini-unwatermark[gpu]"

Requirements: Python 3.10-3.13

Usage

# Single image
gemini-unwatermark image.png

# Custom output
gemini-unwatermark image.png -o clean.png

# Batch processing
gemini-unwatermark *.png -d ./cleaned/

# Parallel (8 workers)
gemini-unwatermark photos/*.jpg -d ./output -w 8

Options

Option Description
-o, --output Output path (single image only)
-d, --output-dir Output directory for batch
-f, --force Overwrite existing files
-q, --quiet Suppress progress output
-w, --workers Parallel workers (1-8, default: 4)
--model-path Custom ONNX model path

How it works

Uses LaMa (Large Mask Inpainting) to intelligently fill the watermark region in the bottom-right corner of Gemini images.

The model (~200MB) auto-downloads on first use to ~/.cache/gemini-unwatermark/.

Disclaimer

This tool only removes the visible watermark. It does not remove SynthID, Google's invisible watermarking technology embedded in the image data.

Credits

License

Apache-2.0

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

gemini_unwatermark-0.1.0.tar.gz (9.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

gemini_unwatermark-0.1.0-py3-none-any.whl (11.5 kB view details)

Uploaded Python 3

File details

Details for the file gemini_unwatermark-0.1.0.tar.gz.

File metadata

  • Download URL: gemini_unwatermark-0.1.0.tar.gz
  • Upload date:
  • Size: 9.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.9

File hashes

Hashes for gemini_unwatermark-0.1.0.tar.gz
Algorithm Hash digest
SHA256 c9be774f223a26151d6bf47d1284ac11ec78699b5361f0dc12dcd97eef9be5a5
MD5 af9c1f961cd56a5f9caeb96e281799d4
BLAKE2b-256 60cf146d19b8c1e678f19b7071ed1cae4fecb1a3d8bc7d54fe6217a33b265611

See more details on using hashes here.

File details

Details for the file gemini_unwatermark-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for gemini_unwatermark-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 f88ca55dabe69a41efb2037671a5e32f1c09a6eb161ae664b5c990a5b5662705
MD5 dcc9d97ae3359672a640f17162847c3e
BLAKE2b-256 2db8e9f4e16cc41f25630852070bfbc4a61c52c1207388f4d4191e554bda3ac9

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page