Instructions to use heboya8/controlnet-sd-2.1 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use heboya8/controlnet-sd-2.1 with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("heboya8/controlnet-sd-2.1", dtype=torch.bfloat16, device_map="cuda") prompt = "Astronaut in a jungle, cold color palette, muted colors, detailed, 8k" image = pipe(prompt).images[0] - Notebooks
- Google Colab
- Kaggle
Add files using upload-large-folder tool
Browse files- checkpoint-13500/controlnet/config.json +57 -0
- checkpoint-13500/controlnet/diffusion_pytorch_model.safetensors +3 -0
- checkpoint-13500/optimizer.bin +3 -0
- checkpoint-13500/random_states_0.pkl +3 -0
- checkpoint-13500/scaler.pt +3 -0
- checkpoint-13500/scheduler.bin +3 -0
- config.json +1 -1
- diffusion_pytorch_model.safetensors +1 -1
- logs/train_controlnet/1751900165.7183657/events.out.tfevents.1751900165.6a2d4df2f66d.202.1 +3 -0
- logs/train_controlnet/1751900165.720241/hparams.yml +50 -0
- logs/train_controlnet/1751900397.852038/events.out.tfevents.1751900397.6a2d4df2f66d.247.1 +3 -0
- logs/train_controlnet/1751900397.8538356/hparams.yml +50 -0
- logs/train_controlnet/events.out.tfevents.1751900165.6a2d4df2f66d.202.0 +3 -0
- logs/train_controlnet/events.out.tfevents.1751900397.6a2d4df2f66d.247.0 +3 -0
checkpoint-13500/controlnet/config.json
ADDED
|
@@ -0,0 +1,57 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"_class_name": "ControlNetModel",
|
| 3 |
+
"_diffusers_version": "0.35.0.dev0",
|
| 4 |
+
"_name_or_path": "./controlnet-sd-2.1/checkpoint-13000",
|
| 5 |
+
"act_fn": "silu",
|
| 6 |
+
"addition_embed_type": null,
|
| 7 |
+
"addition_embed_type_num_heads": 64,
|
| 8 |
+
"addition_time_embed_dim": null,
|
| 9 |
+
"attention_head_dim": [
|
| 10 |
+
5,
|
| 11 |
+
10,
|
| 12 |
+
20,
|
| 13 |
+
20
|
| 14 |
+
],
|
| 15 |
+
"block_out_channels": [
|
| 16 |
+
320,
|
| 17 |
+
640,
|
| 18 |
+
1280,
|
| 19 |
+
1280
|
| 20 |
+
],
|
| 21 |
+
"class_embed_type": null,
|
| 22 |
+
"conditioning_channels": 3,
|
| 23 |
+
"conditioning_embedding_out_channels": [
|
| 24 |
+
16,
|
| 25 |
+
32,
|
| 26 |
+
96,
|
| 27 |
+
256
|
| 28 |
+
],
|
| 29 |
+
"controlnet_conditioning_channel_order": "rgb",
|
| 30 |
+
"cross_attention_dim": 1024,
|
| 31 |
+
"down_block_types": [
|
| 32 |
+
"CrossAttnDownBlock2D",
|
| 33 |
+
"CrossAttnDownBlock2D",
|
| 34 |
+
"CrossAttnDownBlock2D",
|
| 35 |
+
"DownBlock2D"
|
| 36 |
+
],
|
| 37 |
+
"downsample_padding": 1,
|
| 38 |
+
"encoder_hid_dim": null,
|
| 39 |
+
"encoder_hid_dim_type": null,
|
| 40 |
+
"flip_sin_to_cos": true,
|
| 41 |
+
"freq_shift": 0,
|
| 42 |
+
"global_pool_conditions": false,
|
| 43 |
+
"in_channels": 4,
|
| 44 |
+
"layers_per_block": 2,
|
| 45 |
+
"mid_block_scale_factor": 1,
|
| 46 |
+
"mid_block_type": "UNetMidBlock2DCrossAttn",
|
| 47 |
+
"norm_eps": 1e-05,
|
| 48 |
+
"norm_num_groups": 32,
|
| 49 |
+
"num_attention_heads": null,
|
| 50 |
+
"num_class_embeds": null,
|
| 51 |
+
"only_cross_attention": false,
|
| 52 |
+
"projection_class_embeddings_input_dim": null,
|
| 53 |
+
"resnet_time_scale_shift": "default",
|
| 54 |
+
"transformer_layers_per_block": 1,
|
| 55 |
+
"upcast_attention": true,
|
| 56 |
+
"use_linear_projection": true
|
| 57 |
+
}
|
checkpoint-13500/controlnet/diffusion_pytorch_model.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:51850d57df76ae519696a9d198b8118169396850f7de99df36537600345721ff
|
| 3 |
+
size 1456953560
|
checkpoint-13500/optimizer.bin
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:43817a51a608991627c25851281e8e9aae7d9115c8fadd2990a30fa317cbf184
|
| 3 |
+
size 741499074
|
checkpoint-13500/random_states_0.pkl
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:fbc11b1c52d64bf904ad59872011a77e268328a676f5ef2c49078fccfe804468
|
| 3 |
+
size 14408
|
checkpoint-13500/scaler.pt
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:9cb254b6597ef621de4aa59aa69cb3759edc7782daabffce76f8984afa12e0e5
|
| 3 |
+
size 988
|
checkpoint-13500/scheduler.bin
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:ffffa702af5594ed5a6944107b8720b403dd1b041fda024b59f8527337c0a387
|
| 3 |
+
size 1000
|
config.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
| 1 |
{
|
| 2 |
"_class_name": "ControlNetModel",
|
| 3 |
"_diffusers_version": "0.35.0.dev0",
|
| 4 |
-
"_name_or_path": "./controlnet-sd-2.1/checkpoint-
|
| 5 |
"act_fn": "silu",
|
| 6 |
"addition_embed_type": null,
|
| 7 |
"addition_embed_type_num_heads": 64,
|
|
|
|
| 1 |
{
|
| 2 |
"_class_name": "ControlNetModel",
|
| 3 |
"_diffusers_version": "0.35.0.dev0",
|
| 4 |
+
"_name_or_path": "./controlnet-sd-2.1/checkpoint-13000",
|
| 5 |
"act_fn": "silu",
|
| 6 |
"addition_embed_type": null,
|
| 7 |
"addition_embed_type_num_heads": 64,
|
diffusion_pytorch_model.safetensors
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 1456953560
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:289e008097533e8849c09376b8daf65f7389c1c00979fa1ee07bc15011c6efe8
|
| 3 |
size 1456953560
|
logs/train_controlnet/1751900165.7183657/events.out.tfevents.1751900165.6a2d4df2f66d.202.1
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:e07eaeb139f7109ac025576477fdf8e310513752d61b0d37c6df4c21b563c816
|
| 3 |
+
size 2510
|
logs/train_controlnet/1751900165.720241/hparams.yml
ADDED
|
@@ -0,0 +1,50 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
adam_beta1: 0.9
|
| 2 |
+
adam_beta2: 0.999
|
| 3 |
+
adam_epsilon: 1.0e-08
|
| 4 |
+
adam_weight_decay: 0.01
|
| 5 |
+
allow_tf32: false
|
| 6 |
+
cache_dir: null
|
| 7 |
+
caption_column: text
|
| 8 |
+
checkpointing_steps: 500
|
| 9 |
+
checkpoints_total_limit: 2
|
| 10 |
+
conditioning_image_column: conditioning_image
|
| 11 |
+
controlnet_model_name_or_path: null
|
| 12 |
+
dataloader_num_workers: 0
|
| 13 |
+
dataset_config_name: null
|
| 14 |
+
dataset_name: HighCWu/open_pose_controlnet_subset
|
| 15 |
+
enable_xformers_memory_efficient_attention: false
|
| 16 |
+
gradient_accumulation_steps: 2
|
| 17 |
+
gradient_checkpointing: true
|
| 18 |
+
hub_model_id: null
|
| 19 |
+
hub_token: null
|
| 20 |
+
image_column: image
|
| 21 |
+
learning_rate: 0.0002
|
| 22 |
+
logging_dir: logs
|
| 23 |
+
lr_num_cycles: 1
|
| 24 |
+
lr_power: 1.0
|
| 25 |
+
lr_scheduler: constant
|
| 26 |
+
lr_warmup_steps: 500
|
| 27 |
+
max_grad_norm: 1.0
|
| 28 |
+
max_train_samples: null
|
| 29 |
+
max_train_steps: 13875
|
| 30 |
+
mixed_precision: fp16
|
| 31 |
+
num_train_epochs: 37
|
| 32 |
+
num_validation_images: 4
|
| 33 |
+
output_dir: ./controlnet-sd-2.1
|
| 34 |
+
pretrained_model_name_or_path: stabilityai/stable-diffusion-2-1
|
| 35 |
+
proportion_empty_prompts: 0
|
| 36 |
+
push_to_hub: false
|
| 37 |
+
report_to: tensorboard
|
| 38 |
+
resolution: 512
|
| 39 |
+
resume_from_checkpoint: ./output_model/checkpoint-11000
|
| 40 |
+
revision: null
|
| 41 |
+
scale_lr: false
|
| 42 |
+
seed: null
|
| 43 |
+
set_grads_to_none: false
|
| 44 |
+
tokenizer_name: null
|
| 45 |
+
tracker_project_name: train_controlnet
|
| 46 |
+
train_batch_size: 4
|
| 47 |
+
train_data_dir: null
|
| 48 |
+
use_8bit_adam: true
|
| 49 |
+
validation_steps: 100
|
| 50 |
+
variant: null
|
logs/train_controlnet/1751900397.852038/events.out.tfevents.1751900397.6a2d4df2f66d.247.1
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:fe6b40a32b62cab3bd8d038121f52c24396e309813edb9660fe6d50824b018da
|
| 3 |
+
size 2510
|
logs/train_controlnet/1751900397.8538356/hparams.yml
ADDED
|
@@ -0,0 +1,50 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
adam_beta1: 0.9
|
| 2 |
+
adam_beta2: 0.999
|
| 3 |
+
adam_epsilon: 1.0e-08
|
| 4 |
+
adam_weight_decay: 0.01
|
| 5 |
+
allow_tf32: false
|
| 6 |
+
cache_dir: null
|
| 7 |
+
caption_column: text
|
| 8 |
+
checkpointing_steps: 500
|
| 9 |
+
checkpoints_total_limit: 2
|
| 10 |
+
conditioning_image_column: conditioning_image
|
| 11 |
+
controlnet_model_name_or_path: null
|
| 12 |
+
dataloader_num_workers: 0
|
| 13 |
+
dataset_config_name: null
|
| 14 |
+
dataset_name: HighCWu/open_pose_controlnet_subset
|
| 15 |
+
enable_xformers_memory_efficient_attention: false
|
| 16 |
+
gradient_accumulation_steps: 2
|
| 17 |
+
gradient_checkpointing: true
|
| 18 |
+
hub_model_id: null
|
| 19 |
+
hub_token: null
|
| 20 |
+
image_column: image
|
| 21 |
+
learning_rate: 0.0002
|
| 22 |
+
logging_dir: logs
|
| 23 |
+
lr_num_cycles: 1
|
| 24 |
+
lr_power: 1.0
|
| 25 |
+
lr_scheduler: constant
|
| 26 |
+
lr_warmup_steps: 500
|
| 27 |
+
max_grad_norm: 1.0
|
| 28 |
+
max_train_samples: null
|
| 29 |
+
max_train_steps: 13875
|
| 30 |
+
mixed_precision: fp16
|
| 31 |
+
num_train_epochs: 37
|
| 32 |
+
num_validation_images: 4
|
| 33 |
+
output_dir: ./controlnet-sd-2.1
|
| 34 |
+
pretrained_model_name_or_path: stabilityai/stable-diffusion-2-1
|
| 35 |
+
proportion_empty_prompts: 0
|
| 36 |
+
push_to_hub: false
|
| 37 |
+
report_to: tensorboard
|
| 38 |
+
resolution: 512
|
| 39 |
+
resume_from_checkpoint: ./output_model/checkpoint-13000
|
| 40 |
+
revision: null
|
| 41 |
+
scale_lr: false
|
| 42 |
+
seed: null
|
| 43 |
+
set_grads_to_none: false
|
| 44 |
+
tokenizer_name: null
|
| 45 |
+
tracker_project_name: train_controlnet
|
| 46 |
+
train_batch_size: 4
|
| 47 |
+
train_data_dir: null
|
| 48 |
+
use_8bit_adam: true
|
| 49 |
+
validation_steps: 100
|
| 50 |
+
variant: null
|
logs/train_controlnet/events.out.tfevents.1751900165.6a2d4df2f66d.202.0
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:222907556e283443752ce75cc5b9023ecf6d44ef3fece87730c62f4dad96f17f
|
| 3 |
+
size 88
|
logs/train_controlnet/events.out.tfevents.1751900397.6a2d4df2f66d.247.0
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:021afd70f3405077327f24d2ca38da503ec9d6345b4bbd9c39ba67b074e71ce8
|
| 3 |
+
size 147088
|