From d1d044aa87cf8ba95a7e2e553c7fd993ec81a6d7 Mon Sep 17 00:00:00 2001 From: Lincoln Stein Date: Wed, 7 Sep 2022 17:56:59 -0400 Subject: [PATCH 1/2] actual image seed now written into web log rather than -1 (#428) --- ldm/dream/server.py | 1 + 1 file changed, 1 insertion(+) diff --git a/ldm/dream/server.py b/ldm/dream/server.py index f22c5847e2..22a60412f1 100644 --- a/ldm/dream/server.py +++ b/ldm/dream/server.py @@ -129,6 +129,7 @@ class DreamServer(BaseHTTPRequestHandler): name = f'{prefix}.{seed}.png' path = pngwriter.save_image_and_prompt_to_png(image, f'{prompt} -S{seed}', name) + config['seed'] = seed # Append post_data to log, but only once! if not upscaled: with open(os.path.join(self.outdir, "dream_web_log.txt"), "a") as log: From 41687746be5290a4c3d3437957307666d956ae9d Mon Sep 17 00:00:00 2001 From: Lincoln Stein Date: Wed, 7 Sep 2022 20:24:35 -0400 Subject: [PATCH 2/2] added missing initialization of latent_noise to None --- ldm/dream/generator/inpaint.py | 1 + 1 file changed, 1 insertion(+) diff --git a/ldm/dream/generator/inpaint.py b/ldm/dream/generator/inpaint.py index d70e64121f..61a3b8cce3 100644 --- a/ldm/dream/generator/inpaint.py +++ b/ldm/dream/generator/inpaint.py @@ -11,6 +11,7 @@ from ldm.models.diffusion.ddim import DDIMSampler class Inpaint(Img2Img): def __init__(self,model): + self.init_latent = None super().__init__(model) @torch.no_grad()