a state-of-the-art feed-forward framework for high-quality 3D mesh generation from a single image.
199
Efficient, reproducible Nix environments and Docker images for running InstantMesh: a state-of-the-art feed-forward framework for high-quality 3D mesh generation from a single input image.
This flake provides:
dockerTools)Copyright © 2026 DeMoD (ALH477)
All rights reserved.
experimental-features = nix-command flakes)On NixOS, enable the appropriate hardware modules in your configuration:
# For NVIDIA
hardware.nvidia.enable = true;
services.xserver.videoDrivers = [ "nvidia" ];
# For ROCm (AMD)
hardware.amdgpu.amdvlk.enable = true;
# Enter CUDA shell (creates .venv-cuda + installs deps on first run)
nix develop .#cuda
# Or ROCm shell
nix develop .#rocm
Inside the shell:
cd InstantMesh
# Run Gradio demo (open http://127.0.0.1:7860 in browser)
python app.py
# Or CLI inference (upload your own image)
python run.py configs/instant-mesh-large.yaml examples/hatsune_miku.png --save_video --export_texmap
First build the image (may take time the first run due to layers):
# NVIDIA / CUDA
nix build .#instantmesh-cuda-docker
# AMD / ROCm
nix build .#instantmesh-rocm-docker
Load into Docker:
docker load < result
Run (mount current directory as workspace):
# NVIDIA
docker run --rm -it --gpus all -v $(pwd):/workspace instantmesh-cuda:latest
# ROCm (adjust devices as needed)
docker run --rm -it --device /dev/kfd --device /dev/dri -v $(pwd):/workspace instantmesh-rocm:latest
Inside container:
instantmesh-app # Start Gradio UI
instantmesh-run configs/instant-mesh-large.yaml /workspace/your-image.png --output /workspace/output/
BSD 3-Clause License
Copyright © 2026 DeMoD (ALH477)
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
The underlying InstantMesh project (TencentARC) is licensed under Apache-2.0.
Please cite the original work if you use this in research:
@article{xu2024instantmesh,
title={InstantMesh: Efficient 3D Mesh Generation from a Single Image with Sparse-view Large Reconstruction Models},
author={Xu, Jiale and Cheng, Weihao and Gao, Yiming and Wang, Xintao and Gao, Shenghua and Shan, Ying},
journal={arXiv preprint arXiv:2404.07191},
year={2024}
}
flake.nix with hashes from the Nix error message and rebuild.Contributions, issues, and pull requests welcome!
Maintained by DeMoD (@DeMoDLLC / ALH477)
Content type
Image
Digest
sha256:5c8011429…
Size
7.6 GB
Last updated
8 months ago
docker pull alh477/instantmesh:rocm