Skip to content

u/StayInWonderlandAI

In this archive from Jan 2024 to Jan 2024

2
posts
5
comments
0
media
9
score

Top posts

Workflow to recreate input image

Hey all, been using ComfyUI for a couple months and absolutely love it. Also psyched this community seems to be so helpful. So much fun all around. I'm trying to build a workflow that can take an input image and vary it by a given amount. This seems like an oft-asked and well documented problem. Bes...

2 points9 comments
Open on Reddit

Top comments

Spent some time playing with this, it's really helpful. Seeing an image Unsampler'ed and then resampled back to the original image was great. I modified this to something that seems to work for my needs, which is basically as follows..

(a) Input Image -> VAE Encode -> Unsampler (back to step 0) -> Inject this Noise into a Latent

(b) Empty Latent -> Inject Noise into this Latent

(c) Latent Blend node to combine a and b by the percentage I want

...then kSample for results. Inject Noise is used, and Get Sigma is used, both from ComfyUI Noise

With this I set the blend_factor on the Latent Blend to control how much noise is added. This seems to work for now, at least!

1 points

Thanks all, these ideas sound along the lines of what I've been thinking. I have a setup which actually varies an empty latent by a 0->1 value and the results are pretty controllable.

Here is an image where I keep the prompt and the seed fixed, and gradually increase the VariationAmount (in my setup). Notice how the image changes as I increase the amount...

(top: variation workflow I use)

(bottom: results of increasing VariationAmount from 0->1, left to right)

https://preview.redd.it/3xdhfuxm1vbc1.png?width=3226&format=png&auto=webp&s=19e7b2a6573137163e21b6dc8f6ca47d161b30b2

My thinking is if I can get a workflow that takes an input image as a latent I can slowly apply this workflow to get variations. The trick is to get the noisy latent that produced the input image.

I know the Unsampler can do this, but when I pass it back through a kSampler, I get a really really contrasty image back.

1 points

Subreddits

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.