Live data from Hacker News

How to Build Your Own AI-Generated Images with ControlNet and Stable Diffusion

datature.io

61–70 of 70 posts

Re: How to Build Your Own AI-Generated Images with ControlNet and Stable Diffusion

#61
post #30
post #7

Earlier quoted context omitted.

DALL-E within ChatGPT uses GPT-4 to rewrite what you ask for into a good text-to-image prompt. You could probably do something similar with Stable Diffusion with just a little upfront effort tuning that system prompt.

Somewhat, but dalle3 is hugely better at understanding a description and relationships.

LLMs in general are, and that can be leveraged by using an LLM to set up layout for Stable Diffusion.

https://github.com/TonyLianLong/LLM-groundedDiffusion

Re: How to Build Your Own AI-Generated Images with ControlNet and Stable Diffusion

#62

The word ControlNet doesn’t appear even once in the article?

They did use the Canny ControlNet Pipeline

I think the article was updated with that in response to my comment:

> P.S. As pointed out by a fellow HackerNews reader, we clearly forgot to include our code snippet for ControlNet in the article.

No other code snippet besides the one added in response uses Canny, at least so far as I can see.

Re: How to Build Your Own AI-Generated Images with ControlNet and Stable Diffusion

#63
post #52

Earlier quoted context omitted.

Looks like it requires good hardware to run this? My GPU is too old for this.

You typically want an Nvidia GPU with at least 8GB of VRAM to get started with this stuff. You can get away with less, but it will be slow going. More VRAM is better. If you're serious about learning how to use these tools, it's far more affordable to rent a GPU in the cloud. Google Colab even has some free tiers with limited access to GPUs that are significantly more powerful than what you would normally put in a de…

Thanks for the advice, I’ll look into the option of renting a gpu sadly.

I just want to create my own images like Dall-e 2 but using my face instead.

Re: How to Build Your Own AI-Generated Images with ControlNet and Stable Diffusion

#64
post #38

ControlNet model specifically the scribble ControlNet (and ComfyUI) was major gamechanger for me. Was getting good results with just SD and occassional masking but it would take hours and hours to hone in and composite a complex scene with specific requirements & shapes (with most of the work spent currating the best outputs and then blending them into a scene with Gimp/Inkscape). Masking is unintuitive compared to t…

Comfy ui is really nice. The fact that the node graph is saved as png metadata actually makes node based workflows super fluent and reproducible since all you need to do to get the graph for your image is to drag and drop the result png to the gui. This feels like a huge quality-of-life improvement compared to any other lightweight node tools I’ve used.

Yeah the PNG embedded 'drag and drop to restore your config' is brilliant.

Reminds me of Fireworks which Adobe killed off (after putting out a decent update or two to be fair) which used PNGs for layers and meta ala PSD format.

But its more analogous to a 3D modeller suite like Blender or Maya but with theoretical feature such that you could take a rendered output image and dragndrop it back into the 3D viewport and have it restore all the exact render settings you used instantly back. That would be handy!

Re: How to Build Your Own AI-Generated Images with ControlNet and Stable Diffusion

#65
post #41

ControlNet model specifically the scribble ControlNet (and ComfyUI) was major gamechanger for me. Was getting good results with just SD and occassional masking but it would take hours and hours to hone in and composite a complex scene with specific requirements & shapes (with most of the work spent currating the best outputs and then blending them into a scene with Gimp/Inkscape). Masking is unintuitive compared to t…

any tutorial you would recommend? I found https://comfyanonymous.github.io/ComfyUI_examples/controlnet...

Yeah that tutorial is decent its what I used to get going.

Note that all of the images in those comfy tutorials (except for images of the UI itself) can be dragndropped into ComfyUI and you'll get the entire node layout you can use to understand how it works.

Another good resource is civit.ai and specifically look for images that have a comfy UI embedded metadata. I made a feature request that they create a tag for uploaders to flag comfyUI pngs but not sure if they've added that yet. Or caroose Reddit or Discord for people sharing PNGs with comfy embeds.

Trying out different models (also avail from civit) is a good way to get an understanding of how swapping out models affects performance and the results. I've been abusing Absolutereality (v1.81) + More Details LORA because its just so damn fast and the results are great for almost any requirement I throw at it. AI moves so fast but I don't even bother updating the models anymore there is just so much potential in the models we already have; more pay off would be mastering other techniques like the depth map Control Net.

I would say that above all extensive familiarity with an image editor like Photoshop, Gimp, or Krita - will get you the most mileage particularly if you have specific needs beyond just fun and concepting. AI art makes artists better, people who struggle with image editing will struggle to maximize this new tech just as people who struggle with code will have issues maintaining the code Copilot or ChatGPT is spitting out (versus a coder who will refactor and fine tune before integrating to the rest of their application).

Re: How to Build Your Own AI-Generated Images with ControlNet and Stable Diffusion

#66
post #58

While SD is pretty interesting, I'm curious what do people use it for? Outside of custom greeting cards and backgrounds, it's not really precise enough for conceptual art nor is it consistent enough for animation.

Illustrating my fanfiction.

Re: How to Build Your Own AI-Generated Images with ControlNet and Stable Diffusion

#67
post #43

ControlNet model specifically the scribble ControlNet (and ComfyUI) was major gamechanger for me. Was getting good results with just SD and occassional masking but it would take hours and hours to hone in and composite a complex scene with specific requirements & shapes (with most of the work spent currating the best outputs and then blending them into a scene with Gimp/Inkscape). Masking is unintuitive compared to t…

You don't need to go through Gimp or Inkscape, this is built-in to the auto1111 ControlNet UI. You just dump the existing photo there and you can select a bunch of pre-processors like edge-detection or 3D depth extraction, which is then fed into ControlNet to generate a new image. This is super powerful for example visualizing the renovation of an apartment room or house exterior.

Will have to play with those more thx for the headsup; I do find however for scribble outlines I like to often draw my own lines by hand instead of an auto-generated one to emphasize the absolute key areas that would not otherwise be auto-identified. Logo and 2D design for example where you may have very specifc text shape that needs be preserved regardless of contrast or perceivable depth.

Re: How to Build Your Own AI-Generated Images with ControlNet and Stable Diffusion

#68
post #18

Earlier quoted context omitted.

Try: https://github.com/lllyasviel/Fooocus I also recommend a good photorealistic base model, like RealVis XL. In my experience its like DALL E but straight up better, more customizable, and local. And thats before you start trying finetunes and LORAs. Other UIs will do SDXL, but every one I tried is terrible without all those default fooocus augmentations.

SDXL is great but it's in no way better than DALL E as far as straight text-to-image goes apart from the lack of censorship. It has plenty of other advantages, but you can't tell it "make me a cute illustration of a 2 year old girl with Blaze from Blaze and the Monster Machines on a birthday cake with a large 2 candle on it." DALL E will nail that, more or less. SDXL very much won't.

Here's what I got, pasting your prompt in DALL-E 3:

- https://ibb.co/k0NCWG7 - https://ibb.co/Vm3GZcR - https://ibb.co/bvSC4w3 - https://ibb.co/VqSdYbZ

I'm surprised that it didn't complain about copyrighted characters, it tends to do that a lot for me.

Re: How to Build Your Own AI-Generated Images with ControlNet and Stable Diffusion

#69
post #68
post #18

Earlier quoted context omitted.

SDXL is great but it's in no way better than DALL E as far as straight text-to-image goes apart from the lack of censorship. It has plenty of other advantages, but you can't tell it "make me a cute illustration of a 2 year old girl with Blaze from Blaze and the Monster Machines on a birthday cake with a large 2 candle on it." DALL E will nail that, more or less. SDXL very much won't.

Here's what I got, pasting your prompt in DALL-E 3: - https://ibb.co/k0NCWG7 - https://ibb.co/Vm3GZcR - https://ibb.co/bvSC4w3 - https://ibb.co/VqSdYbZ I'm surprised that it didn't complain about copyrighted characters, it tends to do that a lot for me.

I used that as an example as I recently asked for it. I did find I had to tell it that "monster" in the title referred to monster trucks, not actual monsters. That helped it not put actual monsters in (as yours are half Blaze/half monsters), though my generations were way better at doing Blaze than yours were - they just had cute little monsters around too.

Re: How to Build Your Own AI-Generated Images with ControlNet and Stable Diffusion

#70

Earlier quoted context omitted.

They did use the Canny ControlNet Pipeline

I think the article was updated with that in response to my comment: > P.S. As pointed out by a fellow HackerNews reader, we clearly forgot to include our code snippet for ControlNet in the article. No other code snippet besides the one added in response uses Canny, at least so far as I can see.

Oh I see, my bad
Post reply on HN