Generate 3D meshes from images using AI with scalable fidelity - from quick previews on low-end GPUs to high-detail models. A lightweight Python program built on Tencent's Hunyuan3D-2 model with automatic background removal and mesh optimization.
Clone the repository:
git clone https://github.com/ovhensik/RabbitMesh.git
cd RabbitMesh
Run install.bat - Auto-detects GPU, installs dependencies, and creates launcher
Download the model file:
model.fp16.safetensors (4.9 GB) from Hugging Face (click download arrow ↓)models/ folderLaunch: Double-click RabbitMesh.bat
Clone the repository:
git clone https://github.com/ovhensik/RabbitMesh.git
cd RabbitMesh
Install dependencies:
pip install -r requirements.txt
pip install torch torchvision --index-url https://download.pytorch.org/whl/cu121 # For GPU
Download the model:
model.fp16.safetensors from Hugging Face (click download arrow ↓)models/ folderLaunch the graphical interface:
python gui.py
Or if you used Easy Install, simply double-click RabbitMesh.bat
Open with an image pre-loaded:
python gui.py path/to/image.png
The GUI provides:
Basic usage:
python generate_mesh.py input_image.png --out output.obj
The script will:
python generate_mesh.py <input_image> --out <output_file.obj>
input_image: Path to your PNG/JPG image--out: Output OBJ file path (default: output.obj)MODEL_FILE: Override model path (default: models/hunyuan3d-dit-v2.safetensors)Example:
set MODEL_FILE=C:\path\to\model.safetensors
python generate_mesh.py myimage.png
On GTX 1070 (8GB VRAM):
On more powerful GPUs (RTX 3090, 4090), expect 3-5 minute generation times.
RabbitMesh/
├── generate_mesh.py # Headless CLI pipeline
├── gui.py # Tkinter GUI
├── native_messaging_host.py # Browser extension bridge
├── install_context_menu.bat # Windows context menu installer
├── uninstall_context_menu.bat # Context menu uninstaller
├── browser-extension/ # Chrome/Edge extension
│ ├── manifest.json
│ ├── background.js
│ ├── install_browser_extension.bat # Browser extension installer
│ ├── uninstall_browser_extension.bat # Browser extension uninstaller
│ ├── native_messaging_host.bat # Native messaging host launcher
│ └── ...
├── comfyui-hunyuan3dwrapper/ # Hunyuan3D implementation
│ └── hy3dgen/ # Core generation modules
├── models/ # Place model file here
│ └── hunyuan3d-dit-v2.safetensors (download separately)
├── requirements.txt # Python dependencies
└── README.md # This file
octree_resolution from 192 to 128 in the codenvidia-smipython -c "import torch; print(torch.cuda.is_available())""dtype=torch.float16 is being used (line ~48)pip install -r requirements.txtcomfyui-hunyuan3dwrapper folder is presentAdd "Send to RabbitMesh" to your right-click menu for image files:
Run as Administrator:
.\install_context_menu.bat
Right-click any PNG/JPG file → "Send to RabbitMesh" → GUI opens with the image loaded
To remove:
.\uninstall_context_menu.bat
Right-click any image on the web → "Send to RabbitMesh" → Downloads and opens in GUI.
Installation:
Run as Administrator to register the native messaging host:
.\install_browser_extension.bat
Load the extension in your browser:
chrome://extensions (or edge://extensions)browser-extension folderRight-click any image on a webpage → "Send to RabbitMesh"
Note: The native messaging host assumes Python is available at C:\ComfyUI\.venv\Scripts\python.exe. Edit browser-extension\native_messaging_host.bat if your Python path differs.
To remove:
.\uninstall_browser_extension.bat
Then remove the extension from your browser.
This project uses code from the ComfyUI Hunyuan3D Wrapper. Please refer to the original repositories for their respective licenses.
The Hunyuan3D-2 model is provided by Tencent under their license terms.
Python
93.5%
C++
3.7%
Batchfile
1.0%
Generate 3D meshes from images using AI with scalable fidelity - from quick previews on low-end GPUs to high-detail models. A lightweight Python program built on Tencent's Hunyuan3D-2 model with automatic background removal and mesh optimization.
Clone the repository:
git clone https://github.com/ovhensik/RabbitMesh.git
cd RabbitMesh
Run install.bat - Auto-detects GPU, installs dependencies, and creates launcher
Download the model file:
model.fp16.safetensors (4.9 GB) from Hugging Face (click download arrow ↓)models/ folderLaunch: Double-click RabbitMesh.bat
Clone the repository:
git clone https://github.com/ovhensik/RabbitMesh.git
cd RabbitMesh
Install dependencies:
pip install -r requirements.txt
pip install torch torchvision --index-url https://download.pytorch.org/whl/cu121 # For GPU
Download the model:
model.fp16.safetensors from Hugging Face (click download arrow ↓)models/ folderLaunch the graphical interface:
python gui.py
Or if you used Easy Install, simply double-click RabbitMesh.bat
Open with an image pre-loaded:
python gui.py path/to/image.png
The GUI provides:
Basic usage:
python generate_mesh.py input_image.png --out output.obj
The script will:
python generate_mesh.py <input_image> --out <output_file.obj>
input_image: Path to your PNG/JPG image--out: Output OBJ file path (default: output.obj)MODEL_FILE: Override model path (default: models/hunyuan3d-dit-v2.safetensors)Example:
set MODEL_FILE=C:\path\to\model.safetensors
python generate_mesh.py myimage.png
On GTX 1070 (8GB VRAM):
On more powerful GPUs (RTX 3090, 4090), expect 3-5 minute generation times.
RabbitMesh/
├── generate_mesh.py # Headless CLI pipeline
├── gui.py # Tkinter GUI
├── native_messaging_host.py # Browser extension bridge
├── install_context_menu.bat # Windows context menu installer
├── uninstall_context_menu.bat # Context menu uninstaller
├── browser-extension/ # Chrome/Edge extension
│ ├── manifest.json
│ ├── background.js
│ ├── install_browser_extension.bat # Browser extension installer
│ ├── uninstall_browser_extension.bat # Browser extension uninstaller
│ ├── native_messaging_host.bat # Native messaging host launcher
│ └── ...
├── comfyui-hunyuan3dwrapper/ # Hunyuan3D implementation
│ └── hy3dgen/ # Core generation modules
├── models/ # Place model file here
│ └── hunyuan3d-dit-v2.safetensors (download separately)
├── requirements.txt # Python dependencies
└── README.md # This file
octree_resolution from 192 to 128 in the codenvidia-smipython -c "import torch; print(torch.cuda.is_available())""dtype=torch.float16 is being used (line ~48)pip install -r requirements.txtcomfyui-hunyuan3dwrapper folder is presentAdd "Send to RabbitMesh" to your right-click menu for image files:
Run as Administrator:
.\install_context_menu.bat
Right-click any PNG/JPG file → "Send to RabbitMesh" → GUI opens with the image loaded
To remove:
.\uninstall_context_menu.bat
Right-click any image on the web → "Send to RabbitMesh" → Downloads and opens in GUI.
Installation:
Run as Administrator to register the native messaging host:
.\install_browser_extension.bat
Load the extension in your browser:
chrome://extensions (or edge://extensions)browser-extension folderRight-click any image on a webpage → "Send to RabbitMesh"
Note: The native messaging host assumes Python is available at C:\ComfyUI\.venv\Scripts\python.exe. Edit browser-extension\native_messaging_host.bat if your Python path differs.
To remove:
.\uninstall_browser_extension.bat
Then remove the extension from your browser.
This project uses code from the ComfyUI Hunyuan3D Wrapper. Please refer to the original repositories for their respective licenses.
The Hunyuan3D-2 model is provided by Tencent under their license terms.
Python
93.5%
C++
3.7%
Batchfile
1.0%