A Blender add-on generates Greebles.
This is my Graduation Project.
- Stable Diffusion Web UI by Automatic1111 should be installed locally. (https://github.com/AUTOMATIC1111/stable-diffusion-webui)
- ContorlNet Extension for SD Web-UI should be installed via SD Web-UI -> Extensions -> Install from URL -> (https://github.com/Mikubill/sd-webui-controlnet)
- Blender(3.0 or higher; recommend 3.5)
- Stable Diffusion 1.5 : sd-v1-5-pruned-noema-fp16.safetensors(https://huggingface.co/hollowstrawberry/stable-diffusion-guide/blob/main/models/sd-v1-5-pruned-noema-fp16.safetensors)
- Depth Map estimation model for ControlNet : (https://huggingface.co/lllyasviel/ControlNet/blob/main/models/control_sd15_depth.pth)
- LoRA trained model for Greeble Generator : Greeble_dataset-10.safetensors (in this repository->models)
- Download this repository as zip file and open Blender.
- Navigate to Edit->Preferences->Add-ons->Install and select zip file you downloaded.
- Make sure "Greeble Generator" is enabled and restart Blender.
- Navigate to Stable Diffusion Web UI installed folder and edit webui-user.bat.
- Add "--api" to "COMMANDLINE_ARGS"
- Navigate to stable-diffusion-webui -> models.
- Put sd-v1-5-pruned-noema-fp16.safetensors into models/Stable-diffusion.
- Put control_sd15_depth.pth into models/ControlNet.
- Put Greeble_dataset-10.safetensors into models/Lora
- Navigate to Stable Diffusion Web UI installed folder and run webui-user.bat.
- Open Blender in administrator mode.
- Select desired face in face mode and press "Take Snapshot" in N Panel(Press N to activate).
- Press "Apply Greeble Texture".
- You can keep generate different textures by hitting "Apply Greeble Texture" multiple times.
- After texture is successfully applied, press "Apply Depth Map".
- You can adjust UV Map scale(experimental) and save textures&depthmap.
- Stable Diffusion - https://github.com/CompVis/stable-diffusion, https://github.com/CompVis/taming-transformers
- Stable Diffusion Web UI by Automatic1111 - https://github.com/AUTOMATIC1111/stable-diffusion-webui
- Blender by Blender - https://github.com/blender/blender
- ControlNet for Stable Diffusion WebUI by Mikubill - https://github.com/Mikubill/sd-webui-controlnet