Skip to content

liamzebedee/3d-headshot-pipeline

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

LLama69's 3D HeadGen

Screenshot 2023-11-27 at 10 38 50 am

A text-to-3D asset pipeline I built for the AI Rick and Morty TV show to generate 3D characters.

  1. Generates 4x candidate images (.png's) in parallel using Stable Diffusion XL, with prompt/antiprompt/reference image configured.
  2. Feeds these 4x images to a DreamGaussian model, generating 4x 3D models in parallel (.obj, .mtl)
  3. Downloads .zip containing 3D model (.obj) and textures (.mtl, .png)
  4. Live imports into Unity and rigs them onto a generic human model https://github.com/liamzebedee/unity-runtime-obj-importer and custom code.

See docs/pipeline.md for more info.

Usage.

Sign up for the Replicate service.

export REPLICATE_API_KEY=...
pipenv install
python headshot/server.py

# Then run an inference for "mario".
curl -X POST -H "Content-Type: application/json" -d '{"character": "mario"}' http://0.0.0.0:10001/v1/character-heads/generate

Demos.

A 3D donald trump generated at runtime:

image

Sam altman telling codebullet about AGI

Screenshot 2023-11-27 at 5 12 54 pm

Gordon Ramsey and Dutch guys:

Screenshot 2023-11-27 at 10 38 50 am

Internals.

Filesystem layout:

Screenshot 2023-11-05 at 4 08 28 pm

The boys:

Screen Shot 2023-10-23 at 6 21 14 pm

Notice.

Copyright LLaMa69 Inc, 2023.

About

A text-to-3D headshot pipeline for an AI TV show

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published