-
Notifications
You must be signed in to change notification settings - Fork 2
Home
nguyenvuducthuy edited this page Apr 4, 2023
·
13 revisions
A blender 3 Stable Diffusion depot
-
Opne window cmd and install rembg, the tool still run without it but you cannot use rembg feature
Path\to\blender\3.4\python\bin\python.exe -m pip install rembg
-
Install pillow module good to have but the tool still run without it
Path\to\blender\3.4\python\bin\python.exe -m pip install Pillow
-
Run blender and install addon from https://github.com/nguyenvuducthuy/thuy_b2sd/releases
-
Basic params
isRenAnim : bool set it true when you want to render seq sd_isImg2img : bool set it true when you want to use img2img sd_base_image : str a base image for imag2img cmd sd_prompt : str sd prompt sd_negative_prompt : str sd negative prompt sd_seed : int sd seed sd_root_out_path : str output folder sd_isrembg : bool remove bg in sd output img sd_args : string some parameters from stable diffusion webui ex: Steps: 20, Sampler: DPM++ 2M Karras, CFG scale: 7, Seed: 88888, Size: 512x512, Model hash: 0b9c8fd3a8, Model: macaronMix_v10, Denoising strength: 0.75
-
Add blender collection into render_collection parameter in order to render control net image
- Make sure you have a render layer that has same name with control net model like in this image below
- Add a segmentation tool, select a mesh and choose a name in ui list and hit segmenting button
color will be drawn in vertex color so you need to set a material like this to render correct