#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.

Stars
21.8k
License
Apache-2.0
Last commit
Jul 2026
Last release
Jan 2025
Language
Python
Stars, last 35 weeks+1,292
25 Mar 2026: 20,504 stars1 Apr 2026: 20,562 stars8 Apr 2026: 20,663 stars15 Apr 2026: 20,704 stars22 Apr 2026: 20,734 stars29 Apr 2026: 20,765 stars6 May 2026: 20,786 stars13 May 2026: 20,843 stars20 May 2026: 20,859 stars27 May 2026: 20,895 stars3 Jun 2026: 20,926 stars10 Jun 2026: 20,946 stars17 Jun 2026: 20,978 stars24 Jun 2026: 21,000 stars1 Jul 2026: 21,026 stars8 Jul 2026: 21,050 stars15 Jul 2026: 21,076 stars22 Jul 2026: 21,139 stars29 Jul 2026: 21,172 stars5 Aug 2026: 21,200 stars12 Aug 2026: 21,224 stars19 Aug 2026: 21,262 stars26 Aug 2026: 21,306 stars2 Sept 2026: 21,363 stars9 Sept 2026: 21,406 stars16 Sept 2026: 21,444 stars23 Sept 2026: 21,487 stars30 Sept 2026: 21,511 stars7 Oct 2026: 21,543 stars14 Oct 2026: 21,577 stars21 Oct 2026: 21,615 stars28 Oct 2026: 21,646 stars4 Nov 2026: 21,688 stars11 Nov 2026: 21,719 stars18 Nov 2026: 21,750 stars25 Nov 2026: 21,796 stars

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
Also in Image and video
RankProjectScore
#89pallaidiumBlender add-on for generating images, video, audio and text in the Video Editor1.6k starsGPL-3.044 out of 100
#90upscaylDesktop image upscaler using Real-ESRGAN models over Vulkan53.4k starsAGPL-3.043 out of 100
#92terrain-diffusionDiffusion-based infinite terrain generator with deterministic, randomly accessible output1.5k starsMIT43 out of 100
#93sd-pppPhotoshop plugin that sends layers to ComfyUI or cloud image APIs2.2k starsBSD-3-Clause42 out of 100
#94duix-avatarOffline talking-avatar video generator with voice cloning and lip-sync16.5k stars+364 (+2.3%) in 30 dayscustom license41 out of 100