Skip to content

Controlnet training explain #29

Answered by laksjdjf
hinablue asked this question in Q&A
Discussion options

You must be logged in to vote

There is a simple link available for Colab, but it lacks information about ControlNet.

The required directory structure is as follows:

dataset_directory
  |----buckets.json # bucketing.py
  |----latents
  |  |----hoge.npy # latent.py
  |----captions
  |  |----hoge.caption # tagger.py if anime style
  |----control 
  |  |----hoge.png # no code for it
  1. Adjust the resolution of images using bucketing.py
python3 preprocess/bucketing.py \
--input_dir "image_directory" \
--output_dir "dataset_directory" \
--resolution 768 \
--min_length 512 \
--max_length 1024 \
--max_ratio 2 \
--threads 2
  1. Cache latent
python3 preprocess/latent.py \
--directory "dataset_directory" \
--output_path "dataset_…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by hinablue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants