Skip to content

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 useless check.

comfyanonymous478f71a2490a
diff --git a/comfy/model_sampling.py b/comfy/model_sampling.py
index b46202b78..d325f76d9 100644
--- a/comfy/model_sampling.py
+++ b/comfy/model_sampling.py
@@ -16,8 +16,8 @@ class EPS:
noise = noise * torch.sqrt(1.0 + sigma ** 2.0)
else:
noise = noise * sigma
- if latent_image is not None:
- noise += latent_image
+
+ noise += latent_image
return noise
class V_PREDICTION(EPS):