Downloads · 30 days
433
1% of all-time downloads
Yiwen-ntu/MeshAnything
MeshAnything is a image-to-3d model from Yiwen-ntu. Use it for the image-to-3d task on the model card, and read the license before you ship it in a product. It is set up for mesh-anything.
<p align="center" <h3 align="center"<strongMeshAnything:<br Artist-Created Mesh Generation<br with Autoregressive Transformers</strong</h3
Downloads · 30 days
433
1% of all-time downloads
All-time downloads
46.1K
Public
Repo size
4.7 GB
Likes
14
Public
Click a slice to open those files.
.pth2.4 GB · 100%
From the Hugging Face model README
Our environment has been tested on Ubuntu 22, CUDA 11.8 with A100, A800 and A6000.
git clone https://github.com/buaacyw/MeshAnything.git && cd MeshAnything
conda create -n MeshAnything python==3.10.13
conda activate MeshAnything
pip install torch==2.1.1 torchvision==0.16.1 torchaudio==2.1.1 --index-url https://download.pytorch.org/whl/cu118
pip install -r requirements.txt
pip install flash-attn --no-build-isolation
python app.py
# folder input
python main.py --input_dir examples --out_dir mesh_output --input_type mesh
# single file input
python main.py --input_path examples/wand.ply --out_dir mesh_output --input_type mesh
# Preprocess with Marching Cubes first
python main.py --input_dir examples --out_dir mesh_output --input_type mesh --mc
# Note: if you want to use your own point cloud, please make sure the normal is included.
# The file format should be a .npy file with shape (N, 6), where N is the number of points. The first 3 columns are the coordinates, and the last 3 columns are the normal.
# inference for folder
python main.py --input_dir pc_examples --out_dir pc_output --input_type pc_normal
# inference for single file
python main.py --input_dir pc_examples/mouse.npy --out_dir pc_output --input_type pc_normal
The repo is still being under construction, thanks for your patience.
Our code is based on these wonderful repos:
@misc{chen2024meshanything,
title={MeshAnything: Artist-Created Mesh Generation with Autoregressive Transformers},
author={Yiwen Chen and Tong He and Di Huang and Weicai Ye and Sijin Chen and Jiaxiang Tang and Xin Chen and Zhongang Cai and Lei Yang and Gang Yu and Guosheng Lin and Chi Zhang},
year={2024},
eprint={2406.10163},
archivePrefix={arXiv},
primaryClass={cs.CV}
}