Views
No views yet
1git clone https://github.com/DreamTechAI/Direct3D.git
2
3cd Direct3D
4
5pip install -r requirements.txt
6
7pip install -e .1from direct3d.pipeline import Direct3dPipeline
2pipeline = Direct3dPipeline.from_pretrained("DreamTechAI/Direct3D")
3pipeline.to("cuda")
4mesh = pipeline(
5 "assets/devil.png",
6 remove_background=False, # set to True if the background of the image needs to be removed
7 mc_threshold=-1.0,
8 guidance_scale=4.0,
9 num_inference_steps=50,
10)["meshes"][0]
11mesh.export("output.obj")1@article{direct3d,
2 title={Direct3D: Scalable Image-to-3D Generation via 3D Latent Diffusion Transformer},
3 author={Wu, Shuang and Lin, Youtian and Zhang, Feihu and Zeng, Yifei and Xu, Jingxi and Torr, Philip and Cao, Xun and Yao, Yao},
4 journal={arXiv preprint arXiv:2405.14832},
5 year={2024}
6}