#9191st of 147 in Image and videoFor image, video and design, image and design
hivisionidphotos
Offline ID photo maker: portrait matting, background swap, sizing and print layouts
Run it:Vast.ai ↗ (opens in a new tab)RackNerd ↗ (opens in a new tab)RepoCloud ↗ (opens in a new tab)Clore.ai ↗ (opens in a new tab)Affiliate links, no effect on a rank.
Watch puts hivisionidphotos on your watch list: its new releases and known problems since your last visit. Kept in this browser, no account.hivisionidphotos is on your watch list. Its new releases and problems show there.
- Stars
- 21.8k
- License
- Apache-2.0
- Last commit
- Jul 2026
- Last release
- Jan 2025
- Language
- Python
20,504 on 25 Mar 202621,796 on 25 Nov 2026
From GitHub's daily star counts.
Checked on GitHub.
Overview
HivisionIDPhotos cuts out the person with ONNX matting models (MODNet, hivision_modnet, RMBG-1.4, BiRefNet-v1-lite), detects the face, then crops and resizes to standard ID photo sizes with a chosen background color. It also produces print layout sheets (6-inch, 5-inch, A4, 3R, 4R). It runs as a Gradio demo, a CLI script, or a REST API, and the default models run on CPU.
Who it is for: Self-hosters and developers who need to generate ID photos locally or via an API
Strengths
- Default MODNet + MTCNN runs on CPU: about 410MB RAM and 0.2s per image on an M1 Max
- Gradio UI, inference.py CLI and deploy_api.py REST API all included
- Fully offline; Face++ cloud face detection is optional
- Preset sizes and colors editable through CSV files
Weaknesses
- BiRefNet-v1-lite, the most accurate matting option, needs about 6GB RAM and ~16GB VRAM on GPU
- Model weights must be downloaded separately before running
- README and docs are mainly Chinese; English is in a separate file
- Last release is 2025-01-21; the smart outfit-change feature is still marked waiting
What it needs
- GPU optional
- Docker + Compose
- Needs onnxruntime, Face++ API (optional)
- Models: MODNet, hivision_modnet, RMBG-1.4, BiRefNet-v1-lite, MTCNN
- port 7860
What changed
From the release notes. No flag means the note does not say so, not that the upgrade is safe. Releases and problems by RSS
Also in Image and video
See all 147| Rank | Project | Score |
|---|---|---|
| #89 | pallaidiumBlender add-on for generating images, video, audio and text in the Video Editor | 44 out of 100 |
| #90 | upscaylDesktop image upscaler using Real-ESRGAN models over Vulkan | 43 out of 100 |
| #92 | terrain-diffusionDiffusion-based infinite terrain generator with deterministic, randomly accessible output | 43 out of 100 |
| #93 | sd-pppPhotoshop plugin that sends layers to ComfyUI or cloud image APIs | 42 out of 100 |
| #94 | duix-avatarOffline talking-avatar video generator with voice cloning and lip-sync | 41 out of 100 |