The most powerful and modular diffusion model GUI, api and backend with a graph/nodes interface. The fastest local inference engine in the world.
Remove dead code. (#13251)
comfyanonymous0c63b4f6e3ce
diff --git a/comfy/ldm/modules/encoders/noise_aug_modules.py b/comfy/ldm/modules/encoders/noise_aug_modules.pyindex a5d866030..c853e4298 100644--- a/comfy/ldm/modules/encoders/noise_aug_modules.py+++ b/comfy/ldm/modules/encoders/noise_aug_modules.py@@ -3,12 +3,9 @@ from ..diffusionmodules.openaimodel import Timestepimport torchclass CLIPEmbeddingNoiseAugmentation(ImageConcatWithNoiseAugmentation):- def __init__(self, *args, clip_stats_path=None, timestep_dim=256, **kwargs):+ def __init__(self, *args, timestep_dim=256, **kwargs):super().__init__(*args, **kwargs)- if clip_stats_path is None:- clip_mean, clip_std = torch.zeros(timestep_dim), torch.ones(timestep_dim)- else:- clip_mean, clip_std = torch.load(clip_stats_path, map_location="cpu")+ clip_mean, clip_std = torch.zeros(timestep_dim), torch.ones(timestep_dim)self.register_buffer("data_mean", clip_mean[None, :], persistent=False)self.register_buffer("data_std", clip_std[None, :], persistent=False)self.time_embed = Timestep(timestep_dim)