Skip to content

how to set the noise and strength separately like novelAI when I'm using img2img? #5351

Answered by ghost
Pure-island asked this question in Q&A
Discussion options

You must be logged in to vote

I believe you can do this by adding more of the initial noise that's generated for img2img (it looks like NovelAI does something similar). If you want to try this you can modify this function:

def sample_img2img(self, p, x, noise, conditioning, unconditional_conditioning, steps=None, image_conditioning=None):
steps, t_enc = setup_img2img_steps(p, steps)
if p.sampler_noise_scheduler_override:
sigmas = p.sampler_noise_scheduler_override(steps)
elif self.config is not None and self.config.options.get('scheduler', None) == 'karras':
sigmas = k_diffusion.sampling.get_sigmas_karras(n

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@mezotaken
Comment options

Answer selected by mezotaken
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants