STOP! THESE MODELS ARE NOT FOR PROMPTING/IMAGE GENERATION
These are the new ControlNet 1.1 models required for the ControlNet extension, converted to Safetensor and "pruned" to extract the ControlNet neural network.
Also Note: There are associated .yaml files for each of these models now. Place them alongside the models in the models folder - making sure they have the same name as the models!
These models are embedded with the neural network data required to make ControlNet function, they will not produce good images unless they are used with ControlNet.
To be honest, there isn't much difference between these and the OG ControlNet V1's. These models are further trained ControlNet 1.0 models, with an additional 200 GPU hours on an A100 80G.
control_v11p_sd15_seg
control_v11p_sd15_softedge
control_v11p_sd15_normalbae
control_v11p_sd15_scribble
control_v11p_sd15_mlsd
control_v11p_sd15_openpose
control_v11p_sd15_depth
control_v11p_sd15_canny
control_v11e_sd15_ip2p
control_v11e_sd15_shuffle
control_v11p_sd15_inpaint
control_v11p_sd15_lineart
control_v11p_sd15s2_lineart_anime
control_v11u_sd15_tile
Download these models and place them in the \stable-diffusion-webui\extensions\sd-webui-controlnet\models directory.
Please consider joining my Patreon! Advanced SD tutorials, settings explanations, adult-art, from a female content creator (me!) patreon.com/theally - I also have a write-up of ControlNet and will be updating with the latest news/developments!
Description
This is the "e" version of Tile - the latest version
FAQ
Comments (60)
Should there be a config file for Tile(e), or does the old config file work?
Good call! Pretty sure it's the same, but I've uploaded the new one just in case!
When I downloads this, I just get one huge 700 meg file called "controlnet11Models_tileE.safetensors", which doesn't seem right? Especially since I've always had multiple model files prior to this.
I've uploaded each ControlNet model as Civitai "versions" - along the top, under the title. Each ControlNet model is 700mb (I've cut them down in size, the originals are over a gig). The one you're downloading is the Tile model, that's correct. You'll also have to download Depth, Canny, etc.
@theally did cutting down remove anything quality related?
@StereoNostalgic218 No, the preprocessor results are indistinguishable from the results of the full models.
I wish I had a lot of money to give you part of it, but for now my humble thanks.
Thanks a lot! Controlnet evolutions is pretty much disorganized from an A1111 user perspective. It's also way simpler to download them from Civitai than a git.
Absolutely! I'm doing my best to monitor the Huggingface/Git and keep them up to date over here!
Much easier downloads. Thank u for uploading models to Civit. Have a nice day!
"reference" does not work anymore after installing these!
Works just fine for me on ControlNet version 1.1.173. Reference uses no model, so it's extremely doubtful that any of my models (which are just pruned versions of the original models) would have any effect on the preprocessor!
@theally you're right it must have been an add on because it works now... but what about the i2p2? there is no "prompt" box :DD
Where are the Yaml files and where do I download them?
""This checkpoint includes a config file, download and place it along side the checkpoint.""
Over on the right, under "Files" there's the model, and the .yaml
@theally Правильно ли я понимаю, что в итоге в папке должно быть два файла - yaml и safetensors?
This models have different names. Don't forget to rename corresponding YAML files.
So if the YAML says openpose.YAML but the model says Pretrained_OpenPosev10.safetensors. I'd have to change the YAML to pretrained_OpenPosev10.YAML?
@skogsra correct, just name the yaml the same as the model.
Why aren't they named correctly to begin with??
@yzy78550529 Civitai renames (or did, until recently) all uploaded models by appending the version to the model name, but not the config files, leaving them out of sync.
Which folder should I put this file in?
\sd-webui-aki-v4.1\models\ControlNet?
here ` \sd-webui-aki-v4.1\extensions\sd-webui-controlnet-main\models`
@ForestChen Thank you very much!
Thank you for all your great work. If you have the time can you fix these new SDXL versions up like you do please?
diffusers/controlnet-canny-sdxl-1.0 at main (huggingface.co)
YAML are tensorflow files which can contain malicious code. Can you please convert them just like you did to pth files? Thank you
the Yaml files are extremely simple and short config text files. You can very literally open them up and see with one glance that they have no malicious code
@hgfhfhfhfh YAML files are not tensorflow files. They are plaintext human-readable config files.
lmao
i laugh till bleed.
Thanks a lot! I was hoping someone could make these models smaller, so happy I've found them!
Thanks for the work you're doing. Please I'm confused can't find the control_sd15_hed equivalent in the latest version 1.1 models.
the file seg_ofade20k when installed from A1111 throws a warning into the code saying it has malicous content, i find it strange, it is normal or i should remove it?
On the first load, the models need to be setup and you get the following warnings:
WARNING:fvcore.common.config:Loading config ...\stable-diffusion-webui\extensions\sd-webui-controlnet\annotator\oneformer\configs/ade20k/oneformer_swin_large_IN21k_384_bs16_160k.yaml with yaml.unsafe_load. Your machine may be at risk if the file contains malicious content.
WARNING:fvcore.common.config:Loading config ...\stable-diffusion-webui\extensions\sd-webui-controlnet\annotator\oneformer\configs/ade20k\Base-ADE20K-UnifiedSegmentation.yaml with yaml.unsafe_load. Your machine may be at risk if the file contains malicious content.
I get the same error. The exact issue is not that there is malicious content, but that it could load malicious content if there is any in the .yaml files "Base-ADE20K-UnifiedSegmentation.yaml" and "oneformer_swin_large_IN21k_384_bs16_160k.yaml". This is because the creator of the package is using "load_yaml_with_base" with the argument "allow_unsafe" set to True in lines 37/46 of "config(dot)py" file and "yaml.unsafe_load" in lines 228/295 of "lazy(dot)py"
The files in question are located in:
.../stable-diffusion-webui\extensions\sd-webui\controlnet\annotator\oneformer\detectron2\config\
I assume this is because the extension/model is still in development and it is difficult to ensure the .yaml is loaded safely... not really sure, though.
Looking at the two files:
"Base-ADE20K-UnifiedSegmentation.yaml"
MODEL: BACKBONE: FREEZE_AT: 0 NAME: "build_resnet_backbone" WEIGHTS: "detectron2://ImageNetPretrained/torchvision/R-50.pkl" PIXEL_MEAN: [123.675, 116.280, 103.530] PIXEL_STD: [58.395, 57.120, 57.375] RESNETS: DEPTH: 50 STEM_TYPE: "basic" # not used STEM_OUT_CHANNELS: 64 STRIDE_IN_1X1: False OUT_FEATURES: ["res2", "res3", "res4", "res5"] # NORM: "SyncBN" RES5_MULTI_GRID: [1, 1, 1] # not used DATASETS: TRAIN: ("ade20k_panoptic_train",) TEST_PANOPTIC: ("ade20k_panoptic_val",) TEST_INSTANCE: ("ade20k_instance_val",) TEST_SEMANTIC: ("ade20k_sem_seg_val",) SOLVER: IMS_PER_BATCH: 16 BASE_LR: 0.0001 MAX_ITER: 160000 WARMUP_FACTOR: 1.0 WARMUP_ITERS: 0 WEIGHT_DECAY: 0.05 OPTIMIZER: "ADAMW" LR_SCHEDULER_NAME: "WarmupPolyLR" BACKBONE_MULTIPLIER: 0.1 CLIP_GRADIENTS: ENABLED: True CLIP_TYPE: "full_model" CLIP_VALUE: 0.01 NORM_TYPE: 2.0 AMP: ENABLED: True INPUT: MIN_SIZE_TRAIN: !!python/object/apply:eval ["[int(x * 0.1 * 512) for x in range(5, 21)]"] MIN_SIZE_TRAIN_SAMPLING: "choice" MIN_SIZE_TEST: 512 MAX_SIZE_TRAIN: 2048 MAX_SIZE_TEST: 2048 CROP: ENABLED: True TYPE: "absolute" SIZE: (512, 512) SINGLE_CATEGORY_MAX_AREA: 1.0 COLOR_AUG_SSD: True SIZE_DIVISIBILITY: 512 # used in dataset mapper FORMAT: "RGB" DATASET_MAPPER_NAME: "oneformer_unified" MAX_SEQ_LEN: 77 TASK_SEQ_LEN: 77 TASK_PROB: SEMANTIC: 0.33 INSTANCE: 0.66 TEST: EVAL_PERIOD: 5000 AUG: ENABLED: False MIN_SIZES: [256, 384, 512, 640, 768, 896] MAX_SIZE: 3584 FLIP: True DATALOADER: FILTER_EMPTY_ANNOTATIONS: True NUM_WORKERS: 4 VERSION: 2
"oneformer_swin_large_IN21k_384_bs16_160k.yaml"
_BASE_: oneformer_R50_bs16_160k.yaml MODEL: BACKBONE: NAME: "D2SwinTransformer" SWIN: EMBED_DIM: 192 DEPTHS: [2, 2, 18, 2] NUM_HEADS: [6, 12, 24, 48] WINDOW_SIZE: 12 APE: False DROP_PATH_RATE: 0.3 PATCH_NORM: True PRETRAIN_IMG_SIZE: 384 WEIGHTS: "swin_large_patch4_window12_384_22k.pkl" PIXEL_MEAN: [123.675, 116.280, 103.530] PIXEL_STD: [58.395, 57.120, 57.375] ONE_FORMER: NUM_OBJECT_QUERIES: 250 INPUT: MIN_SIZE_TRAIN: !!python/object/apply:eval ["[int(x * 0.1 * 640) for x in range(5, 21)]"] MIN_SIZE_TRAIN_SAMPLING: "choice" MIN_SIZE_TEST: 640 MAX_SIZE_TRAIN: 2560 MAX_SIZE_TEST: 2560 CROP: ENABLED: True TYPE: "absolute" SIZE: (640, 640) SINGLE_CATEGORY_MAX_AREA: 1.0 COLOR_AUG_SSD: True SIZE_DIVISIBILITY: 640 # used in dataset mapper FORMAT: "RGB" TEST: DETECTIONS_PER_IMAGE: 250 EVAL_PERIOD: 5000 AUG: ENABLED: False MIN_SIZES: [320, 480, 640, 800, 960, 1120] MAX_SIZE: 4480 FLIP: True
I can tell you that there is nothing malicious in the files and so long as you change the permissions of the .yaml files being loaded to read only and make sure that you set the access so that only administrators can modify these files you can ensure that only these non-malicious versions stay on your machine.
TLDR:
I recommend setting it so that ONLY ADMINISTRATORS can edit/modify these files:
...\stable-diffusion-webui\extensions\sd-webui\controlnet\annotator\oneformer\detectron2\config\config.py
...\stable-diffusion-webui\extensions\sd-webui\controlnet\annotator\oneformer\detectron2\config\lazy.py
...\stable-diffusion-webui\extensions\sd-webui-controlnet\annotator\oneformer\configs\ade20k\Base-ADE20K-UnifiedSegmentation.yaml
...\stable-diffusion-webui\extensions\sd-webui-controlnet\annotator\oneformer\configs\ade20k\oneformer_swin_large_IN21k_384_bs16_160k.yaml
Then, the model should be safe to use since I do not see any unsafe code/loadings if these files are protected. Or you can just use the other models.
how do I actually use pix2pix? there's no preprocessor for ip2p
to my knowledge ip2p doesn't actually use a preprocessor. preprocessors are needed for adapters which expect the input image to look a certain way. they're filters, basically. ip2p doesn't need one because it uses a text prompt.
(pardon the necro i figure someone coming across this comment might like to know)
How does someone decide which controlnet they want?
Really just personal preference, and it depends on the situation and what you're trying to achieve! Here's a guide on getting started with the basics, and what the most popular ones can do - https://education.civitai.com/civitai-guide-to-controlnet/
You want them all as each serve different purpose
chatgpt helps.
@darkthronefernandao265 it didn't 2 years ago when I asked the question. 😉
Should I follow the naming convention as the original file? Because using your current naming will have to click refresh on Automatic1111 to show up all the controlnet models. So why didn't you follow them
Civitai renames attached files based on Model Name and Version name, so yes, you could definitely rename the files once you've downloaded them to make it clearer.
Issue:
When using the Control Type checkboxes models do not appear in the drop down menu and cannot be selected. This is a new installation of the program after reformatting my device for unrelated issues.
Technical Information:
Automatic1111 WebUI version: v1.7.0
ControlNet v1.1.424
ControlNet Models from CivitAI
I have attempted to place the modelsd into the following folders:
C:\StableDiffusion\stable-diffusion-webui\models\ControlNet
C:\StableDiffusion\stable-diffusion-webui\extensions\sd-webui-controlnet\models
I have also attempted to move them to another folder and add that folder as an "Extra path to scan for ControlNet models"
YAML files are placed in the same folder
I have tried with both the default names and custom names.
Models appear and work without issue when selecting them through "Control Type" "All".
Seeking any advice on how to resolve this issue. Honestly I would appreciate if someone this is working for could just tell me it is working for them on the newest version with default settings because I can't see anything I am possibly doing wrong here and nobody else seems to have this issue.
Did you install the extension?
https://github.com/Mikubill/sd-webui-controlnet
I have this Issue too. Version 1.7.0. If someones knows how too fix it, please share.
Just use the All Control and select your preprocessor and model manually, and I see you've done that haha. I think that is the intended way to use it, the extension was intended to use with the vanilla controlnet.
Thank you! Hope you might get around to doing this for the SDXL ControlNet models at some point!
Community manager actually leads in this community. May Civitai never change, its already great.
Hey. Depth doesn't work properly. I get a "RuntimeError: mat1 and mat2 shapes cannot be multiplied" message. How fix?
Sorry for late response, you probably figured it by now, but I also had the same error. Just had to change the checkpoint to another model because the current one didn't work.
How do you run this on an IPhone and IPad?
you dont
you need to hack into the mainframe
You get a hamster wheel for the additional processing power.
Try "Draw Things" app, it's in the app store. Runs locally.
⚠️ 🚨 Wow, it was not working here and I was driving **ts! No model was appearing in the ControlNet "models" dropdown! 🤯
The issue was simply because the tutorial is saying to put the file in a different folder than the folder that worked here.
1. `\stable-diffusion-webui\extensions\sd-webui-controlnet\models` → Placing files here doesn't work!
2. `/stable-diffusion-webui-forge/models/ControlNet` → Placing files here FINALLY worked!
ℹ️ I'm using Stable Diffusion WebUI Forge.
Details
Files
controlnet11Models_tileE.safetensors
Mirrors
controlnet11Models_tileE.safetensors
controlnet11Models_tileE.safetensors
controlnet11Models_tileE.safetensors
control_v11u_sd15_tile.safetensors
controlnet11Models_tileE.safetensors
controlnet11Models_tileE.safetensors
control_v11f1e_sd15_tile.safetensors
controlnet11Models_tileE.safetensors
controlnet11Models_tileE.safetensors
controlnet11Models_tileE.safetensors
control_v11f1e_sd15_tile.safetensors
controlnet11Models_tileE.safetensors
controlnet11Models_tileE.safetensors
controlnet11Models_tileE.safetensors
tileE_cn11.safetensors
controlnet11Models_tileE.safetensors
controlnet11Models_tileE.safetensors
controlnet11Models_tileE.safetensors
controlnet11Models_tileE.safetensors
Available On (1 platform)
Same model published on other platforms. May have additional downloads or version variants.
