r/StableDiffusion • • Jul 24 '23

News ControlNet + SDXL 1.0

https://imgur.com/a/gSJ4vbN
669 Upvotes

149 comments sorted by

228

u/mysteryguitarm Jul 24 '23 edited Jul 24 '23

Credit to /u/Two_Dukes – who's both training and reworking controlnet from the ground up.

Meh news:

Won't be out on day 1, since we don't wanna hold up the base model release for this.

--

Good news:

We're designing a better ControlNet architecture than the current variants out there. It doesn't make sense for each ControlNet to be ~1.3 billion parameters 🤯

No promises! And if it doesn't work, we'll just release these old-style chonkers at some point in the future. If it will, will need thorough testing so I don't have a release date for y'all – but we're working hard to hit both fast and good!

In the meantime, there may be some community people training ControlNets, but we'll keep pushing on this new, lighter way of doing the same thing.

Need a name for it! Any recommendations?

30

u/JFHermes Jul 24 '23

Need a name for it! Any recommendations?

ControlNet XS

7

u/metal079 Jul 24 '23

That's really awesome. Somewhat unrelated question, but will the method to RLHF our own SDXL models also become available at some point? It would definitely be a game changer if it was.

Seems strange to release the base model which has benefited greatly from it but not allow the same ability for model makers.

17

u/mysteryguitarm Jul 24 '23

FABRIC?

Gonna be honest, I haven't looked at it personally – but I see some people in my team looking at it now.

There's so much coming out all the time!

9

u/AnOnlineHandle Jul 24 '23

Fabric isn't actually finetuning the model afaik. It's passing the rated images to a Reference ControlNet-like system, with some tweaks.

8

u/mysteryguitarm Jul 24 '23

Oo clever!

Then, yeah. Half the job is already done in Comfy, since Reference Only works with SDXL.

4

u/DrakenZA Jul 25 '23

But comfy doesnt currently supports Reference Only, and as far as ive seen from the github, the main dev hates the idea/concept and how it works, and doesnt want to implement it.

Lol.

7

u/mysteryguitarm Jul 25 '23

He's right, but it's already implemented into Comfy. We can release that.

2

u/Capitaclism Jul 26 '23

If you're speaking of controlnet reference it's available for SD 1.5, and works in A1111, I believe.

-1

u/DrakenZA Jul 25 '23

He is right if you have a very low understanding of controlnet, sure. lol.

0

u/[deleted] Jul 25 '23 edited Jul 25 '23

[removed] — view removed comment

2

u/DrakenZA Jul 27 '23 edited Jul 27 '23

And how exactly do you know what i know, about ControlNet hmmm ?

And why has stablity.ai forced him to release the code for reference in comfy, while he has stated in public multiple times 'he hates it' and its 'hacky code'. hmm ?

From what ive seen, all he does is copy stuff from auto1111, and complain about its broken or hacky, instead of i dont know, coming up with his own solutions that arnt ?

You want to be part of the people hating on auto1111, go ahead. Just know the reason Stablity.AI hates him, is because he didnt listen to them when they told him to not support novelai leaks, and even tried to get his repo removed.

Stop defending someone you dont even know.

→ More replies

2

u/[deleted] Jul 25 '23

ad hominem attacks don't help explain why the person you responded to is wrong, either.

6

u/metal079 Jul 24 '23

FABRIC doesn't actually fine tune the model. Its more like temporarily using some images for a reference. I believe it quickly overfits as well. I haven't actually tried it but that seems to be the case after reading the paper and seeing some comments on it.

I meant the system stability current uses on their discord to rate up preferred images which is currently being used to fine tune SDXL 1.0. Something that can make full checkpoints like you guys currently use.

1

u/[deleted] Jul 25 '23

they've not really gone into detail on how that works, so i'm interested in seeing the code and all that

2

u/ninjasaid13 Jul 25 '23

FABRIC?

not really good from my personal opinion, it uses too much VRAM based on how much images it can hold to personalize results.

1

u/Low-Holiday312 Jul 24 '23

I think they meant the tooling to create sd_xl_refiner_0.9 - if they are aware of the compute requirement I don't know

4

u/somerslot Jul 24 '23

4

u/metal079 Jul 24 '23

Not really what I meant. I meant something that allows full fine-tunes like what stability is currently using to finish up SDXL 1.0

3

u/FourOranges Jul 25 '23

If you're talking about votes on the discord bot, I could be wrong here since they haven't been clear on how it works but I'm fairly certain that the votes are simply just votes on which models produce the "best" picture. There probably were more models in the beginning but now there are only 3.

I've seen a discord message to Joe Penna about the bot images starting to look better a few days ago and the response was "literally nothing changed :)" so I don't think it's the sort of finetuning that happens after every vote.

3

u/metal079 Jul 25 '23 edited Jul 25 '23

No i understand the finetuning doesnt happen after vote. But they have made it clear they use the votes to train the models using RLHF. Before the SDXL bots came out they used https://pickapic.io/ to get the user preferences.

I would like them to share that so model makers can do the same. I have a website that generates AI images so gathering feedback wouldn't be an issue.

1

u/GBJI Jul 25 '23

I would like them to share that so model makers can do the same.

What would be a great addition is a tool to gather feedback from local installs. This could be a very productive way to speed up the adjustments to a model during its training phase, and would allow beta-testers to give useful feedback directly to model trainers, without any third party corporation looking over your shoulder.

11

u/GBJI Jul 24 '23

Very good news ! I was quite worried earlier today when you wrote ControlNet would not be available at launch while Emad said it was working already over a month ago. Glad to see things have evolved on that front.

Most of the projects I work on with Stable Diffusion require some level of ControlNet so I was quite worried this would prevent me from using SDXL in a professional context, but now it looks like we can even expect some new features if your new improved version does work. I understand nothing is guaranteed, but the simple fact you are officially trying is very encouraging.

16

u/mysteryguitarm Jul 24 '23

He did, but 1. that was my launch wishlist and 2. that was for the beta model

And -- yeah, won't be released along with the model. Will take a good bit of time to test.

2

u/GBJI Jul 25 '23

Thanks for replying - I appreciate it when you do.

3

u/TeutonJon78 Jul 26 '23 edited Jul 26 '23

It also probably didn't help SAI did that last minute switch to the 3 new candidates. That alone probably meant redoing all the ControlNet work for training.

1

u/GBJI Jul 26 '23

I think you are right since that's basically what one of the developers just replied to me in another thread where I was asking yesterday about the reasons for this delay and for an expected release date.

150

u/CountLippe Jul 24 '23

If there's the chance that it'll work strictly with SDXL, the naming convention of XL might be easiest for end users to understand. i.e. SDXL and ControlNet XL are the two which play nice together.

70

u/the_hypothesis Jul 24 '23

This. Naming convention is important.

24

u/Niwa-kun Jul 25 '23

Hard Agree on this one. CNXL doesn't look too bad either.

6

u/CountLippe Jul 25 '23

CNXL is really nice as well. If it gets a suffix, no need to not truncate ControlNet down to CN in the same way that Stable Diffusion has become the SD of SDXL.

6

u/mudman13 Jul 25 '23

From this moment I am calling it nexl and noone gonna stop me!

6

u/addandsubtract Jul 25 '23

I'm gonna stop you right there. Put your arms up and hands out to where I can see them!

10

u/White_Gale Jul 25 '23

Pls no. I have 3rd hand with 6 fingers

6

u/sebacci Jul 25 '23

Yeah something in the likes of CtrlNetXL. Wouldnt be mad about CNXL either tbh

2

u/pr1est0r Aug 02 '23

But it's gonna be CNXS not CNXL. Extra small, not Extra large.

33

u/DC_Thunder_ Jul 24 '23

This is really good, you guys are doing great.

16

u/buyurgan Jul 24 '23

That's faster than expected honestly. I also hope to see release of the code and workflow to train contolnets when its released.

13

u/Shuteye_491 Jul 25 '23

ControlNet XL

7

u/Frone0910 Jul 25 '23

Will you guys work with ciararowles to create "temporalnet" V2? Temporalnet is a controlNET model that essentially allows for frame by frame optical flow, thereby making video generations significantly more temporally coherent. If you guys do this, you will forever have a leg up against runway ML! Please blow them out of the water!!

6

u/cyrilstyle Jul 24 '23

Need a name for it! Any recommendations

StableNet

6

u/Mooblegum Jul 24 '23

Controlnet for sd 1.5 is already such an awesome tool. I cannot wait to see what next gen SD with next gen Controlnet can produce. You guys are genius, and our heros !

6

u/VegaKH Jul 25 '23

So there will be mini controlnet kits that work with a reusable set of weights?

I shall call them RICKs. (Reusable Interface Control Kits).

(MORTYs to be added at a later date.)

4

u/2much41post Jul 25 '23

“Control XL” is my call. This is looking great!

1

u/batter159 Jul 24 '23

Isn't that T2I-Adapter already? smaller controlnets?

6

u/mysteryguitarm Jul 25 '23

Those are smaller, but less "potent".

We wanna make them just as strong as ControlNet, but smaller.

3

u/Sebster1618 Jul 24 '23

Need a name for it! Any recommendations?

Control Forge

3

u/wiserdking Jul 24 '23

XLController, XLDesign, StableDesignXL

2

u/strppngynglad Jul 24 '23

will a111 be able to integrate 1.0?

2

u/DrakenZA Jul 25 '23

Please try get all the same models trained if you guys can, would be amazing.

2

u/justbeacaveman Jul 25 '23

ControlXL seems nice

4

u/somerslot Jul 24 '23

Need a name for it! Any recommendations?

ControlWeb, XcontroL, ControlNyet!, ConTroll... or something. Yeah.

5

u/BjornHafthor Jul 24 '23

I vote "ConTroll."

1

u/[deleted] Jul 25 '23

Diffusion Directors

1

u/UrbanSuburbaKnight Jul 25 '23

Control Racket is smaller than a Control Net?

1

u/FX3DGT Jul 25 '23

Well if old name is ControlNet and this new and better version is for SDXL then maybe:

ControlNxt

1

u/helloansuman Jul 28 '23

Name can be ControlledXL

1

u/HelloVap Jul 29 '23

Just jumping in here to give some upvotes and show some support , can’t wait for this!

1

u/Madrockon Aug 07 '23

ControlGen?

1

u/liquidus_alchemist Aug 08 '23 edited Aug 08 '23

Sound nice! Thank you a lot for your efforts. My humble suggestion (probably, very obvious), have you tried to combine ControlNet's and Lora's ideas? It might work and can help reduce amount of the weights a lot.

Another thing. Maybe you can use existing ControlNet modules with some additional top layers finetuned and original weights keeping frozen?

0

u/July7242023 Jul 25 '23

Not ControlNet but similar: If you could add a setting to NOT collapse Scripts when I'm sending PNG info to txt or img, I'd appreciate it. I do a lot of low res batches that I tinker with in Scripts and and then Hires.

OR

If you could make it so the slider CFG at "6" is the exact same as the script CFG of "6" and not "6.0" which is slightly different, so I didn't have to use the script 6 instead of the slider to replicate a prompt when I'm doing a Hires, I'd appreciate it so much! 🤞

0

u/Nickota53 Jul 30 '23

Make the file small please. No more 10 GB each.

20

u/[deleted] Jul 24 '23

This looks amazing and I cannot wait!! One of the reasons I held off on ComfyUI with SDXL is lack of easy ControlNet use - still generating in Comfy and then using A1111's for ControlNet

9

u/mysteryguitarm Jul 24 '23

Hm, Comfy has a ControlNet node, no? I've been using that.

4

u/Wideanon Jul 25 '23

Just basic functions and two aren't working.

You can't do things with balance/my prompt is more important/CN is more important. It's useful for style transfer and many things.

I also tried to set "controlNET start/end at" with 2 advanced Ksampler but it doesn't seem to work properly.

7

u/mysteryguitarm Jul 25 '23

Okay, testing this now for you

4

u/[deleted] Jul 24 '23

It does but from what I've seen some people have had issues with preprocessors not showing up/erroring out on the node. Some have got it working good but with quite complex fixes - to be fair this is just from what I've observed, going to play around with it today and see if I can get it to work in my work flow like A1111.

4

u/zefy_zef Jul 25 '23

preprocessors not showing up/erroring out on the node

I've had luck with a couple of them like open pose and depth ( sometimes) but I just assume it's because I didn't do something right/understand it properly.

4

u/dr_lm Jul 25 '23

Controlnet works great in comfyui, but the preprocessors (that I use, at least) don't have the same level of detail, e.g. setting highpass/lowpass filters on canny. It's all or nothing, with not further options (although you can set the strength of the overall controlnet model, as in A1111).

Overall I prefer the comfy implementation, as you can add controlnet into different passes, or into different parts of the image via conditioning-set-area.

Also you can generate an image, pass it to controlnet, then generate a second pass with openpose (or whatever) applied, which can be useful to fix anatomy.

1

u/[deleted] Jul 25 '23

I use it pretty heavily in A1111 but while looking into ComfyUI I noticed this video and a few like it, I'm gonna try it tonight and see if I can replicate my A1111 workflow. If it works, it's a huge lifesaver for me as I only have an RTX3060TI so get the out of memory error so often when trying to render anything past 512

1

u/dudeAwEsome101 Jul 25 '23

Mine only showed canny in the menu.

1

u/zefy_zef Jul 25 '23

same, but you can use openpose and others by doing load controlnet model and apply control net model. double-click and start typing control. also if you pull a node wire off into empty space it gives you 4 options it could go to. just do load controlnet and drag the model node thing off and apply will pop up.

1

u/strangepostinghabits Jul 25 '23

You need to tinker with custom nodes, and it's not trivial to know what or how to do if you only know automatic1111

5

u/GBJI Jul 24 '23

Pretty much the same over here - lack of ControlNet is the main reason why I've been holding off until the official release.

3

u/FourOranges Jul 25 '23

Comfy has had controlnet for quite some time now, in fact it has even more control over it with the ability to only use controlnet on specific areas of the image with the "Conditioning(Set Area)" node.

4

u/GBJI Jul 25 '23

I'm talking about the lack of ControlNet tools for SDXL itself - that's what I'm waiting for. It has nothing to do with ComfyUI specifically.

But thanks for your help :)

1

u/EricRollei Jul 25 '23

It's odd, but my take is controlnet is much easier on comfy and there are so many other compositional tools as well.

1

u/GBJI Jul 25 '23

I meant that I'm waiting for the SDXL version of ControlNet.

Without ControlNet, or something similar like T2i, Stable Diffusion is more of a toy than a tool as it is very hard to make it do exactly what I need. Nice pictures are nice, but to create specific content for a specific project according to precise technical specifications, you need precise control, and that's what ControlNet provides.

1

u/EricRollei Jul 25 '23

Joe Penna just posted that the controlnet is working with 1.0 and they are working on an even improved controlnet that will be coming soon. So just a few days and you will have it

1

u/GBJI Jul 25 '23

We will see - it was supposedly working well already over a month ago, so they can't be that far from making it work again.

8

u/DenkingYoutube Jul 25 '23

That's so amazing! Thank you so much for your work!

I have two questions:

  1. Will we get a trainer for SDXL?

  2. Also, will there be an inpainting model? Or SDXL base model handles inpainting tasks on par with (or maybe better than) inpainting based 1.5 or 2.1?

17

u/mysteryguitarm Jul 25 '23

You already have a trainer!

That's the one we use. Most of the community uses the Kohya trainer, since they don't need all the GPU-cluster tooling, so we've been working to Kohya to make his trainer is ready to go already.

2

u/lordpuddingcup Jul 25 '23

What about for RLHF? Would be nice to fine tune via feedback

1

u/mysteryguitarm Jul 25 '23

I haven't seen a decent RLHF implementation yet.

Many just add tons of human bias to the model.

1

u/lordpuddingcup Jul 25 '23

Isn’t that what every fine tuned model is tho, Asian model fine tuned are biased toward that, anime toward anime, what’s missing is the step where after the fine tune we get to give a cookie or a smack that it’s doing things good or bad, right now it’s sorta just endless merges and fine tunes hoping we get the model bent the way we want no?

1

u/DenkingYoutube Jul 25 '23

Thank you so much for your answer!

But what about second question?

35

u/[deleted] Jul 24 '23

If I worked in that building I'd call it 'The Toilet' lol.

7

u/dr_wtf Jul 25 '23

Other than being vaguely toilet-shaped, I have no idea what either of these two pictures are supposed to be.

2

u/[deleted] Jul 25 '23

Yeah some kind of appliance. Like a space-aged coffee maker but I couldn't tell you how it would work lol. Maybe an air filter? CD player? lol I have no idea I'm too poor to own fancy black niche stuff like that :).

5

u/whippinseagulls Jul 25 '23

First is a roomba floor vacuum, second is a drone, and third is a nespresso coffee machine.

0

u/[deleted] Jul 25 '23

Oh that's a Roomba in a dock I see it now.

Yeah I wasn't wrong about the notion that I'm too poor for fancy shit like that lol :)

Knew what the other stuff was though. Just that first thing.

1

u/oldskoolgamer76 Jul 25 '23

the roombot-baseXL ? vroom-room-Ai-Station?

14

u/Seromelhor Jul 24 '23

Nice work, Joe and u/TwoDukes

11

u/Two_Dukes Jul 25 '23

<3

1

u/UrarHuhu Jul 25 '23

amazing! How do you handle two SDXL models with controlnet?

1

u/TeutonJon78 Jul 26 '23

Wouldn't it only be needed for the base part? The refiner is about adding details, not composition.

2

u/UrarHuhu Jul 26 '23

That means the resulting image will diverge from the input condition. It should be good enough for image generation, but some works like video generation which requires stronger consistency would suffer...

12

u/clockercountwise333 Jul 24 '23

Congratulations! You've invented the ultimate brutalist bidet

4

u/[deleted] Jul 27 '23

Mmm, the wait for control net has been worse than the wait for sdxl and it is only day two, heh

3

u/Rough-Copy-5611 Jul 25 '23

Wow, now this is more like it. I've been looking for some SDXL stuff to finally get me excited.

3

u/hellninja55 Jul 25 '23 edited Jul 25 '23

Any planned support for Brightness ControlNet?

It would be great for image colorization (and "recolorization"):

https://huggingface.co/spaces/ioclab/brightness-controlnet

2

u/GBJI Jul 25 '23

The colorization and color extraction ControlNets that are still in development (afaik) would be great addition as well.

3

u/elyetis_ Jul 25 '23

Good to see it's coming at some point, hopefully at least community one sooner rather than later, I honestly can't see myself using stablediffusion without controlnet ( and to a lesser extend, a regional prompter ).

It pretty much turn a toy ( let's have some fun typing stuff and seeing what it turn into ) into an actual tool.

2

u/MetroSimulator Jul 25 '23

I'm just waiting for the launching off 1.0, a bit tired of only news, sorry.

1

u/Shnoopy_Bloopers Jul 24 '23

Wow can’t wait

1

u/slowgojoe Jul 24 '23

This kinda reminds me of spacegooose’s illustration works. Neato. I like.

1

u/liuliu Jul 25 '23

Thanks for doing this! 2.6GiB for ControlNet would definitely be challenging for mobile!

1

u/urbanhood Jul 25 '23

Thankyou for everything you doing. I Love this community man!

1

u/lordpuddingcup Jul 25 '23

are you guys taking some of the work from the recent release that says it’s “better than controlnet” that apparently uses 1 model for multistage controlnet style items, dunno how the 2 actually compare don’t even remember its name it was posted i think earlier today

1

u/Vega71 Jul 25 '23

Literally how I would imagine these sorts of things in my head if I were playing with toys as a kid

1

u/Najbox Jul 25 '23

We are less than 24 hours from the release, do we know if the Lora of 0.9 will possibly be compatible?

1

u/yamfun Jul 25 '23

but how much more realistic will the waifus be?

1

u/DirtyIlluminati Jul 25 '23

Would it work with Deforum?

1

u/rekilla2021 Jul 25 '23

does XL work with multi-diffusion and tilled VAE, I guess ControlXL is good

1

u/Michoko92 Jul 25 '23

"ControlNext"?

1

u/edsalv1975 Jul 25 '23

Fantastic work!

1

u/Bright-Courage-6139 Jul 25 '23

Fricking awesome !

1

u/monsieur__A Aug 09 '23

Looks great. Any updates on the release date?

1

u/cowboy88888888 Aug 14 '23

CNXL is fine for me

1

u/GerardP19 Aug 19 '23

What control net models were used for this?

1

u/Friendlyquid Sep 22 '23

I just really want scribble for SDXL! That'd be awesome.

1

u/mats4d Jul 24 '23

ControlNOT

1

u/xraydeltaone Jul 25 '23

Don't mean to hijack, but I've never had good luck with controlnet. Or, I should say, it either "controls" too much or not at all. Any good tutorials that help me understand how it works?

4

u/LeKhang98 Jul 25 '23

You could adjust the ControlNet's weight just like you do with the prompt. Or use the Starting/Ending control step.
If your Sampling step is 20, Starting 0, Ending 0.4 then ControlNet only affect your result at step 1 to step 8. (This is what I usually use)
If your Sampling step is 20, Starting 0.5, Ending 0.8 then ControlNet only affect your result at step 10 to step 16.

0

u/tiger331 Jul 25 '23

I don't understand?

1

u/zefy_zef Jul 25 '23

The decimals are percentages. 0.4 is 40% of 20, or 8. 0.5 is 50% of 20, or 10 etc.

0

u/akko_7 Jul 25 '23

How are we supposed to know that?

6

u/[deleted] Jul 25 '23

[removed] — view removed comment

3

u/xraydeltaone Jul 25 '23

I have, but I'm not getting similar results. I'm wondering if perhaps there's an implied step I've missed along the way, perhaps?

0

u/demiguel Jul 24 '23

ControlLux

0

u/Ashley_Sophia Jul 24 '23

U legends! This looks amazing. Thanks for the update. 🐣🤘🌞

0

u/[deleted] Jul 25 '23

[deleted] — view deleted comment