From 9fedd24fc49801aa772742c91a8ee2553db20485 Mon Sep 17 00:00:00 2001 From: Saquib Alam Date: Tue, 8 Aug 2023 22:41:52 +0530 Subject: [PATCH] remove noisy latent code --- nodes.py | 22 ---------------------- 1 file changed, 22 deletions(-) diff --git a/nodes.py b/nodes.py index ab9259a7..362eeab7 100644 --- a/nodes.py +++ b/nodes.py @@ -871,28 +871,6 @@ class EmptyLatentImage: latent = torch.zeros([batch_size, 4, height // 8, width // 8]) return ({"samples":latent}, ) -class NoisyLatentImage: - def __init__(self, device="cpu"): - self.device = device - - @classmethod - def INPUT_TYPES(s): - return {"required": { - "seed": ("INT", {"default": 0, "min": 0, "max": 0xffffffffffffffff}), - "width": ("INT", {"default": 512, "min": 64, "max": MAX_RESOLUTION, "step": 8}), - "height": ("INT", {"default": 512, "min": 64, "max": MAX_RESOLUTION, "step": 8}), - "batch_size": ("INT", {"default": 1, "min": 1, "max": 64})}} - RETURN_TYPES = ("LATENT",) - FUNCTION = "generate" - - CATEGORY = "latent" - - def generate(self, seed, width, height, batch_size=1): - generator = torch.manual_seed(seed) - latent = torch.randn([batch_size, 4, height // 8, width // 8], generator=generator, device=self.device) - return ({"samples":latent}, ) - - class LatentFromBatch: @classmethod def INPUT_TYPES(s):