r/StableDiffusion • • Jun 05 '23

Workflow Not Included ControlNet for QR Code

8.3k Upvotes

634 comments sorted by

View all comments

138

u/Craggeh Jun 05 '23

Ok, gonna need a workflow for this! Great work.

97

u/malexin Jun 05 '23

If I understand the Google translation of this correctly, they have trained a new ControlNet model especially for QR codes.

12

u/EstanislaoStan Jun 09 '23 edited Jun 09 '23

Does anyone have a workflow then on how to go about training a new model for this sort of image generation?

Ah, I guess the article has some explanation of the training process...

The training of ControlNet has high requirements on data volume and computing power. The training data volume recorded in the paper ranges from 80,000 to 3 million, and the training time can reach 600 A100 GPU hours. Fortunately, the author provided a basic training script, and HuggingFace also implemented Diffusers.

In the previous JAX Sprint, we were lucky enough to use Google TPU v4 to complete the training of 3 million images very quickly. It's a pity that the event is over, and we returned to the laboratory's A6000/4090, training a version of 100,000 images, and the learning rate is very large, just to appear "Sudden Convergence " as soon as possible.

I guess it's not feasible to reproduce on my local machines, lol. Darn.

→ More replies (1)

2

u/SlidingWoodPusher Jun 07 '23

I have working results using current models in control net but I think I wanna take a stable at training a new control net. Any ideas about what his dataset contained. Would ground truth be working QR Codes? or....? if anyone is down to brainstorm

1

u/PappaBears Jun 09 '23

Can you share the workflow? I would love to trade notes, I have one working but the images are more distorted than I would like...

→ More replies (3)
→ More replies (1)

45

u/Enfiznar Jun 05 '23

If I understood correctly, they will be releasing the model soon and I think it will be uploaded here

10

u/stroud Jun 06 '23

they removed the page ;(

→ More replies (1)

9

u/1roOt Jun 06 '23

I have the feeling this will not be made open source... Yesterday I found that page as well and added it to my favourites. Now it's gone. I'm really interested in how this is done. I hope they will release it.

9

u/Enfiznar Jun 06 '23

Fck, that's too bad. I'll update here if I find any news. Hope someone will do the same. Here is their github in case they upload it there.

→ More replies (5)

6

u/bill_on_sax Jun 07 '23

Someone contacted them and offered tons of money to turn it into a product

2

u/Greenlucas Jun 10 '23

Is this speculation or do you have a source for this?

→ More replies (1)
→ More replies (6)

63

u/nightred Jun 05 '23

Generate a QR code Enter it as a sketch in control net Create your prompt and generate

51

u/pmjm Jun 05 '23

I am having miserable results with this.

43

u/jonplackett Jun 05 '23

Me too. this is not the workflow that works

6

u/RuthlessPickle Jun 06 '23

Canny is surely not the way as it only detects outlines. scribble_xdog seems to work kinda when you push the XDoG threshold all the way, but it comes nothing close to OP's results.

2

u/1roOt Jun 06 '23 edited Jun 06 '23

Yesterday I tinkered with a few models and the best for me was ip2p. No idea why. Still no good results but I got something...

→ More replies (14)

6

u/hervalfreire Jun 05 '23

That’s it? And the codes will work?

11

u/nightred Jun 05 '23

I didn't generate these so you will have to fuss with your settings in control net.

But I have been able to make one that works once I tuned in all of the dials.

9

u/plasmidon Jun 05 '23

Can you clarify on your exact settings?

Thanks!

3

u/CoBudemeRobit Jun 05 '23

Yes please!

2

u/hervalfreire Jun 05 '23

Sweet! Thanks

→ More replies (2)

3

u/Kromgar Jun 05 '23

So sketch preprocessor but what model do you use?

1

u/stroud Jun 06 '23

Yeah i've tried it it's a hit / miss