Neural networks that add, or remove, censorship squares
It automates the tedious work of painting over—or restoring—censored regions in images and video using semantic segmentation and image-to-image translation.

What it does DeepMosaics is a PyTorch-based tool that detects mosaic regions in images and video, then either removes them by inpainting the underlying content or adds fresh ones. It handles both still frames and video sequences, and ships with pre-trained models tuned for different effects. The project also exposes a web demo and a Windows GUI for users who prefer not to touch source code.
The interesting bit The pipeline borrows from CycleGAN, pix2pixHD, and BiSeNet, treating mosaic manipulation as a semantic-segmentation-plus-translation problem rather than simple filtering. That same backbone apparently moonlights in style transfer, as the examples include Van Gogh and winter conversions.
Key highlights
- Supports both mosaic addition and removal on images and video.
- Provides a Windows GUI binary and a web demo (face-only removal).
- Requires specific pre-trained model files, including
mosaic_position.pth, for core operations. - Can be retrained on custom datasets using the provided training docs.
- GPU acceleration via CUDA is supported but not mandatory.
Caveats
- The public web demo only handles face mosaic removal; full functionality requires local execution.
- The pre-built Windows GUI lags behind the source code in updates.
- Output videos may need a player like PotPlayer to render correctly.
Verdict
Worth a look for computer-vision researchers or content-restoration hobbyists working with censored media. If you are not comfortable managing PyTorch model files and ffmpeg versions, the pre-built GUI is a better entry point than source.
Frequently asked
- What is HypoX64/DeepMosaics?
- It automates the tedious work of painting over—or restoring—censored regions in images and video using semantic segmentation and image-to-image translation.
- Is DeepMosaics open source?
- Yes — HypoX64/DeepMosaics is open source, released under the GPL-3.0 license.
- What language is DeepMosaics written in?
- HypoX64/DeepMosaics is primarily written in Python.
- How popular is DeepMosaics?
- HypoX64/DeepMosaics has 2.6k stars on GitHub.
- Where can I find DeepMosaics?
- HypoX64/DeepMosaics is on GitHub at https://github.com/HypoX64/DeepMosaics.