2023-03-03 06:02:00 +00:00
|
|
|
"""
|
|
|
|
invokeai.backend.generator.img2img descends from .generator
|
|
|
|
"""
|
2023-02-28 05:37:13 +00:00
|
|
|
|
|
|
|
from .base import Generator
|
2023-03-03 06:02:00 +00:00
|
|
|
|
2023-02-28 05:37:13 +00:00
|
|
|
|
|
|
|
class Img2Img(Generator):
|
2023-03-03 06:02:00 +00:00
|
|
|
def get_make_image(
|
|
|
|
self,
|
|
|
|
sampler,
|
|
|
|
steps,
|
|
|
|
cfg_scale,
|
|
|
|
ddim_eta,
|
|
|
|
conditioning,
|
|
|
|
init_image,
|
|
|
|
strength,
|
|
|
|
step_callback=None,
|
|
|
|
threshold=0.0,
|
|
|
|
warmup=0.2,
|
|
|
|
perlin=0.0,
|
|
|
|
h_symmetry_time_pct=None,
|
|
|
|
v_symmetry_time_pct=None,
|
|
|
|
attention_maps_callback=None,
|
|
|
|
**kwargs,
|
|
|
|
):
|
2023-02-28 05:37:13 +00:00
|
|
|
"""
|
|
|
|
Returns a function returning an image derived from the prompt and the initial image
|
|
|
|
Return value depends on the seed at the time you call it.
|
|
|
|
"""
|
2023-08-06 04:43:55 +00:00
|
|
|
raise NotImplementedError("replaced by invokeai.app.invocations.latent.LatentsToLatentsInvocation")
|