Skip to content

xiwen1/MultiDiffusion_with_controlnet

Repository files navigation

MultiDiffusion with controlnet

This code is based on https://github.com/omerbt/MultiDiffusion. By adding controlnet into MultiDiffusion's region based diffusion pipeline, you can generate images with both region and sketch control, writing prompts for every mask. You can get more precise control over single controlnet or single MultiDiffusion through combination of the two.

Usage

  1. install requirements
pip install -r requirements.txt
  1. prepare sketch image and corresponding masks. Then run code like this:
python multidiffusion_controlnet.py \
--mask_paths mask/house.png mask/tree.png \
--bg_prompt 'a photo of the a green field and blue sky, {photo-realistic}' \
--fg_prompts 'a house old and made of stone' 'one Cedar tree' \
--fg_negative small multiple \
--sketch 'sketch/simp_house_sketch_converted.jpg'

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published