Replies: 2 comments 1 reply
-
"NaN" means "Not a Number", and indeed you are feeding it not-a-number! You're feeding it a string that happens to look like a number. ps please be sure to change the placeholder names to real ones before publishing your extension |
Beta Was this translation helpful? Give feedback.
-
Is there a way for an extension to install a Comfy node? It would be annoying if someone had to go to the Comfy Workflow tab and install the node from there before using the extension. But it would also make sense if this was not allowed for security reasons. |
Beta Was this translation helpful? Give feedback.
-
I'm trying to create a Swarm UI extension for the Latent Diffusion Mega Modifier node.
The node itself has about 22 parameters, but I'm only exposing one of the parameters in the UI, which would be the "contrast_multiplier" parameter.
When I add the extension into the chain, it seems to work okay, I'm seeing images getting generated, and the Contrast Multiplier setting seems to apply okay. However, when I go to the Comfy Workflow tab, then click "Import from Generate Tab", I see that many of the arguments for the Latent Diffusion Mega Modifier node suddenly have values of NaN.
In particular, any parameter where I'm assigning 0 instead appears to have a NaN as its value, this affects 9 different parameters. The full list is: sharpness_multiplier, tonemap_multiplier, tonemap_percentile, combat_cfg_drift, rescale_cfg_phi, extra_noise_multiplier, divisive_norm_multiplier, spectral_mod_percentile, spectral_mod_multiplier. Other numbers like 100, 127, or 5 are unaffected, and are not turning into NaN.
I can't tell if this is an issue with my code, or with Swarm's import feature itself.
You need to install the Comfy node for "Latent Diffusion Mega Modifier" to use the extension.
The code for the extension is tiny, so I'll paste it here:
File is named "LatentModifierContrastMultiplierExtension.cs"
Beta Was this translation helpful? Give feedback.
All reactions