Skip to content

Looking forward to unmasked conditioning

https://github.com/AUTOMATIC1111/stable-diffusion-webui/pull/3669

This is going to be one of the biggest game-changers AUTO111 has ever implemented, in my opinion. Derived from the Runway ML masked approach for inpainting, it preserves the composition while allowing you to change the content, so you don't have to check every quadrant of the image at every generation.

If it works well enough, it could also enable photoreal, temporally-convincing animation (rather than the trippy stuff of Deforum).

27 points18 comments
Open on Reddit
About this post
Posted
Archived
Score
27 · 97% up
Kind
Text
ID
yes978

Author

69
posts
209
comments
8
media
View profile

18 comments

I copied the code to my own Automatic1111 and I can't figure out how to replicate the results presented on Github for this. [Correction: see edit below.]

I found an image of the Mona Lisa, resized it to 512px x 768px, put it into img2img, and set the settings as stated on Github:

A painting of a woman by Claude MonetSteps: 100, Sampler: DPM2 Karras, CFG scale: 7, Denoising strength: 0.8

Over in the settings tab I adjusted the new slider labled "Blend betweeen an unmasked and masked conditioning imge for inpainting models." (sic). The range is between 0 and 1.

I tried renders at 0, 0.5, and 1. I saw nothing like what was presented on the Github page. All I got were nice Monet-esque paintings of random women. As always, I could have done something wrong.

EDIT: I discovered that I each time I changed the setting I had to restart Automatic1111. This got better results. But they weren't as perfect as the examples given at Github. But, again, I have to admit that I may have missed something.

EDIT #2: I was using the v1-5-pruned.ckpt with poor results. u\Striking-Long-2960 pointed out that one should use sd-v1-5-inpainting.ckpt with this. It made a huge difference. Thanks!

6 points

Once installed, it works better with sd-v1-5-inpainting.ckpt (in fact I think it only works with that ckpt)

I think that is what you are missing.

You shouldn't need to restart automatic.

6 points

_That_ did the trick. I had been using v1-5-pruned.ckpt because I thought that was the working default at the moment. Thanks!

4 points

I think it is going to be a great addition to automatic, and is going to make Img2img attractive to everybody.

4 points

If this works like I hope it can work, it might be fantastic!

2 points

Iit works, I mean, it has its limitations but it's much better for certaint tasks that what we have now. And it gives more relaiable results, not like with the old method in which we are always subordinated to the seed, and success or failure depends on a random number.

3 points

Will this help with converting a photograph into a specified artistic style without changing the composition?

2 points

Does anyone have any recommendations for optimizing this? I've been playing with it for a while using different settings, and while it maintains composition almost miraculously, I'm finding that the inpainting model doesn't do the greatest job with the styles I'm prompting, and that everything seems to merge toward a specific high-contrast kind posterized/outlined look pretty quickly. Wondering if there's a combination anybody's come across yet that really nails both sides?

1 points

I'd also be interested to hear experiences - this has got very little sub publicity respective to its power, and I'm not sure it will really impact until someone posts some practical examples.

1 points

Really looking forward to trying this too! I love doing loopback photo to (style) transformations, but I'm never 100% satisfied with how they turn out. Looks like this might make all the difference.

1 points

Keyboard shortcuts

Move and act

jork
Next / previous post or comment
Enteroro
Open the post
f
Open the media viewer
s
Save
h
Hide (the toast has Undo)
Tab
Right after an action: the toast's Undo
x
Collapse the comment
v
Next layout: cards, compact, grid

Go to

/
Search
gthenh
Home
gthena
All
gthens
Subreddits
gthenl
Library
?
This list
Esc
Close a menu or this list

In the viewer

←or→
Previous / next file
↑or↓
Previous / next post
korj
Previous / next post
Space
Play / pause
m
Mute
z
Zoom
s
Save
o
Open the post (on its own page: back to it)
Esc
Close

Keys do nothing while you type in a box.