Update nodes.py

This commit is contained in:
Extraltodeus
2024-06-20 14:45:29 +02:00
committed by GitHub
parent 1d551c976e
commit 44327b411a
+2 -2
View File
@@ -37,7 +37,7 @@ class uncondZeroNode:
return result
new_scale = 1 / (model.model.latent_format.scale_factor * 8)
new_scale = 1 / (model.model.latent_format.scale_factor * 8) # Anything below this value gave visible artifacts.
#Taken and modified from comfy_extras/nodes_model_advanced
def rescale_cfg(args):
@@ -68,4 +68,4 @@ class uncondZeroNode:
m = model.clone()
m.set_model_sampler_cfg_function({"uncond_zero_v1":uncond_zero,"uncond_zero_v2":uncond_zero_v2,"uncond_zero_v3":rescale_cfg}[method])
return (m, )
return (m, )