This section will walk you step-by-step through the easiest way to set up a demo based on LGM, as covered in previous units.
Start by duplicating the LGM-full model.
write token
in your account settings. Copy it into the token
field.dylanebert/LGM-full
in the source_repo
field.{username}/{model_name}
in the dst_repo
field, replacing {username}
with your Hugging Face account username, and {model_name}
with any name you like, such as LGM
.You will see a link labeled “find your repo here”, which leads to http://huggingface.co/{username}/{model_name}
.
Congratulations! You can now use this model with Diffusers, and it will appear in hf.co/models.
Go to the LGM Tiny space, which provides a simplified image-to-3D demo.
Duplicate Space
button.Files
in the top right.app.py
to view the demo source code.edit
to change the code.dylanebert/LGM-full
with your model path, e.g. {username}/{model_name}
.Commit changes
.Congratulations! You’ve created a demo and met the minimum requirements for this capstone project.
The demo requires a GPU, so it won’t work on free hardware. However, there are many free options:
The following sections will walk you through each of these options.
< > Update on GitHub