Power Noise Suite contains nodes centered around latent noise input, and diffusion, as well as latent adjustments.
Power Noise Suite contains nodes centered around latent noise input, and diffusion, as well as latent adjustments. This repo is the successor to PPF_Noise_ComfyUI
<img src="https://github.com/WASasquatch/PowerNoiseSuite/assets/1151589/b4a952f1-b040-4e5c-811c-b15b323d7426" width="400"> <img src="https://github.com/WASasquatch/PowerNoiseSuite/assets/1151589/23bb0f9b-4f63-41ea-961d-ac19e554feef" width="400">
ComfyUI/custom_nodes
.This node generates perlin power fractal noise
batch_size
(int): Number of noisy tensors to generate in the batch.
width
(int): Width of each tensor in pixels.
height
(int): Height of each image in pixels.resampling
(string): This parameter determines the resampling method used for scaling noise to the latent size. Choose from the following options:
X
(float): X-coordinate offset for noise sampling.
Y
(float): Y-coordinate offset for noise sampling.
Z
(float): Z-coordinate offset for noise sampling.
frame
(int): The current frame number for time evolution.
evolution_factor
(float): Factor controlling time evolution. Determines how much the noise evolves over time based on the batch index.
octaves
(int): Number of octaves for fractal generation. Controls the level of detail and complexity in the output.
persistence
(float): Persistence parameter for fractal generation. Determines the amplitude decrease of each octave.
lacunarity
(float): Lacunarity parameter for fractal generation. Controls the increase in frequency from one octave to the next.
exponent
(float): Exponent applied to the noise values. Adjusting this parameter controls the overall intensity and contrast of the output.
scale
(float): Scaling factor for frequency of noise. Larger values produce smaller, more detailed patterns, while smaller values create larger patterns.
brightness
(float): Adjusts the overall brightness of the generated noise.
contrast
(float): Adjusts the contrast of the generated noise.
clamp_min
(float): The floor range of the noise
clamp_max
(float): The ceiling range of the noiseseed
(int, optional): Seed for random number generation. If None, uses random seeds for each batch.
device
(string): Specify the device to generate noise on, either "cpu" or "cuda".optional_vae
(VAE, optional): The optional VAE for encoding the noise.latents
(LATENT): The latent image resultpreviews
(IMAGE): The noise as tensor imagesThis node generates Power-Law noise. Power law noise is a common form of noise used all over. For example, vanilla_comfyui
mode is regular ComfyUI noise that is White Noise.
This class provides the following input parameters:
batch_size
(INT): The batch size for generating noise.
width
(INT): The width of the generated noise image.
height
(INT): The height of the generated noise image.
resampling
(List of Strings): The resampling method to use for resizing.
noise_type
: ["white", "grey", "pink", "green", "blue", "mix"]:
frequency
(FLOAT): Frequency of the power law noise.
attenuation
(FLOAT): Attenuation factor for the power law noise.
seed
(INT): Seed value for random number generation.
device
(List of Strings): The device on which to generate the noise.
optional_vae
(VAE): An optional Variational Autoencoder (VAE) instance.
latents
(LATENT): The latent image resultpreviews
(IMAGE): The noise as tensor imagesThis node generates a batch of cross-hatch power fractal noise patterns.
batch_size
(int): Number of noisy tensors to generate in the batch.
width
(int): Width of each tensor in pixels.
height
(int): Height of each image in pixels.resampling
(string): This parameter determines the resampling method used for scaling noise to the latent size. Choose from the following options:
frequency
(float): Frequency parameter for fractal generation. Determines the frequency of the cross-hatch pattern.
octaves
(int): Number of octaves for fractal generation. Controls the level of detail and complexity in the output.
persistence
(float): Persistence parameter for fractal generation. Determines the amplitude decrease of each octave.
color_tolerance
(float): Tolerance parameter for color mapping. Affects the variety of colors in the output.
num_colors
(int): Number of colors to use in the output.
angle_degrees
(float): Angle in degrees for the cross-hatch pattern.
brightness
(float): Adjusts the overall brightness of the generated noise.
contrast
(float): Adjusts the contrast of the generated noise.
blur
(float): Blur parameter for the generated noise.
clamp_min
(float): The floor range of the noise.
clamp_max
(float): The ceiling range of the noise.
seed
(int, optional): Seed for random number generation. If None, uses random seeds for each batch.
device
(string): Specify the device to generate noise on, either "cpu" or "cuda".optional_vae
(VAE, optional): The optional VAE for encoding the noise.latents
(LATENT): The latent image resultpreviews
(IMAGE): The noise as tensor images.This node generates a batch of linear cross-hatch power fractal noise patterns.
batch_size
(INT): The number of images to generate in the batch.
width
(INT): The width of each image in pixels.
height
(INT): The height of each image in pixels.
resampling
(STRING): The resampling method used for scaling noise to the latent size. Choose from the following options:
frequency
(FLOAT): The frequency parameter for fractal generation. It determines the frequency of the cross-hatch pattern.
gain
(FLOAT): The gain factor for controlling the amplitude of the generated noise.
octaves
(INT): The number of octaves for fractal generation. It controls the level of detail and complexity in the output.
persistence
(FLOAT): The persistence parameter for fractal generation. It determines the amplitude decrease of each octave.
add_noise
(FLOAT): The tolerance parameter for adding random noise to the generated pattern. It affects the variety of colors in the output.
linear_range
(INT): The range for mapping noise values to different levels.
linear_tolerance
(FLOAT): The tolerance parameter for color mapping.
angle_degrees
(FLOAT): The angle in degrees for the cross-hatch pattern.
brightness
(FLOAT): Adjusts the overall brightness of the generated noise.
contrast
(FLOAT): Adjusts the contrast of the generated noise.
seed
(INT): The seed for random number generation.
device
(STRING): Specify the device to generate noise on, either "cpu" or "cuda".optional_vae
(VAE): The optional VAE for encoding the noise.latents
(LATENT): The latent image resultpreviews
(IMAGE): The noise as tensor images.This node provides a method for blending two latent images.
latent_a
(LATENT, required): The first input latent image to be blended.latent_b
(LATENT, required): The second input latent image to be blended.operation
(string, required): The blending operation to apply. Choose from the following options:
t
.blend_ratio
(FLOAT, required): The blend ratio between latent_a
and latent_b
.
blend_strength
(FLOAT, required): The strength of the blending operation.
mask
(MASK, optional): An optional mask tensor to control the blending region.set_noise_mask
(string, optional): Whether to set the noise mask. Choose from "false" or "true".normalize
(string, optional): Whether to normalize the resulting latent image. Choose from "false" or "true".clamp_min
(FLOAT, optional): The minimum clamping range for the output.
clamp_max
(FLOAT, optional): The maximum clamping range for the output.
latent
(LATENT): The latent image result.This node converts IMAGE
to LATENT
format, without encoding them. Really only useful for raw noise.
images
(IMAGE): Input images to be converted into latent images.resampling
(string): This parameter determines the resampling method used for scaling images to the latent size. Choose from the following options:
tuple
(LATENT, IMAGE): A tuple containing the generated latent image and the input images.This node allows your to adjust the latents such as brightness, contrast, and sharpness.
latents
(LATENT): The input latent image to be adjusted.brightness
(FLOAT): Adjusts the brightness of the latent image.
contrast
(FLOAT): Adjusts the contrast of the latent image.
saturation
(FLOAT): Adjusts the saturation of the latent image.
exposure
(FLOAT): Adjusts the exposure of the latent image.
alpha_sharpen
(FLOAT): Applies alpha sharpening to the latent image.
high_pass_radius
(FLOAT): Applies high-pass filtering to the latent image.
high_pass_strength
(FLOAT): Specifies the strength of the high-pass filtering.
clamp_min
(FLOAT): Sets the minimum clamping range for the output.
clamp_max
(FLOAT): Sets the maximum clamping range for the output.
latent2rgb_preview
(BOOL): Convert the latent (if encoded) to a RGB representation (not very accurate).
latents
(LATENT): The latent image resultpreviews
(IMAGE): The noise as tensor imagesThe PPFNKSamplerAdvanced
class is part of the Power Noise Suite and provides advanced capabilities for noise sampling. It is categorized under "Power Noise Suite/Sampling."
comfy.k_diffusion.sampling.default_noise_sampler()
method.sigma
value that is throwing off the sigma scaling.model
(MODEL): The model used for sampling.add_noise
(["enable", "disable"]): Specifies whether to add noise during sampling.
seed
(INT): The random seed for sampling.
steps
(INT): The number of total sampling steps.
cfg
(FLOAT): Classifier Free Guidance scale (higher values try to adhere closer to your prompt)
sampler_name
(sampler_name): The name of the sampler to user. Power KSampler Advanced has a limited set of samplers that it is compatible with.scheduler
(SCHEDULERS): The scheduler used by sampling.positive
(CONDITIONING): Conditioning prompt.negative
(CONDITIONING): Conditioning prompt.latent_image
(LATENT): The latent image.start_at_step
(INT): Sampling starting step.
end_at_step
(INT): Sampling ending step.
enable_denoise
["false", "true"]
start_at_step
and end_at_step
. If enabled, start_at_step
and end_at_step
will be set to None
.return_with_leftover_noise
(["disable", "enable"]): Specifies whether to return the latent image with left of noise (only really helpful for feeding another KSampler advanced)denoise
(FLOAT): The denoising value for img2img inference.
noise_type
: ["white", "grey", "pink", "green", "blue", "random_mix", "brownian", "velvet", "violet", "vanilla_comfy"]:
noise_blending
: ["bislerp", "cosine interp", "cuberp", "hslerp", "lerp", "add", "inject"]
noise_mode
: ["additive", "subtractive"]
scale
(FLOAT): The scale of the noise range.
alpha_exponent
(FLOAT): The noise alpha exponent for Power-Law Noise. Higher it is, the softer noise will be.
modulator
(FLOAT): Modulator used for Brownian noise. Changes noise density.
sigma_tolerance
(FLOAT): The sigma tolerance controls how the amplitude of sigma to apply noise with.
ppf_settings
(PPF_SETTINGS): Settings for power fractal noise. If plugged, Power-Law, and Cross-Hatch noise will be disabled.ch_settings
(CH_SETTINGS): Settings for cross-hatch noise. If plugged, Power-Law noise will be disabled. ppf_setttings
will bypass this input.tonal_guide_latent
(CH_SETTINGS): An optional latent image used to potentially help guide the colors and sometimes influences composition.guide_use_noise
["true", "false"]latents
(LATENT): The latent image result.Define Perlin Power Fractal settings for Power KSampler Advanced
X
(FLOAT): X-coordinate offset for noise sampling.
Y
(FLOAT): Y-coordinate offset for noise sampling.
Z
(FLOAT): Z-coordinate offset for noise sampling.
evolution
(FLOAT): Factor controlling time evolution. Determines how much the noise evolves over time.
frame
(INT): The current frame number for time evolution.
scale
(FLOAT): Scaling factor for frequency of noise. Larger values produce smaller, more detailed patterns, while smaller values create larger patterns.
octaves
(INT): Number of octaves in the fractal noise.
persistence
(FLOAT): Persistence of the fractal noise.
lacunarity
(FLOAT): Lacunarity of the fractal noise.
exponent
(FLOAT): Exponent of the fractal noise.
brightness
(FLOAT): Brightness adjustment for the generated noise.
contrast
(FLOAT): Contrast adjustment for the generated noise.
ppf_settings
(PPF_SETTINGS): Dictionary settings for Power KSampler Advanced.Define Cross-Hatch Power Fractal settings for Power KSampler Adanced.
frequency
(FLOAT): Frequency of the cross-hatch pattern.
octaves
(INT): Number of octaves in the cross-hatch noise.
persistence
(FLOAT): Persistence of the cross-hatch noise.
num_colors
(INT): Number of colors in the generated cross-hatch pattern.
color_tolerance
(FLOAT): Color tolerance for the cross-hatch pattern.
angle_degrees
(FLOAT): Angle in degrees for the cross-hatch pattern.
brightness
(FLOAT): Brightness adjustment for the generated cross-hatch pattern.
contrast
(FLOAT): Contrast adjustment for the generated cross-hatch pattern.
blur
(FLOAT): Blur amount for the generated cross-hatch pattern.
ch_settings
(CH_SETTINGS): Dictionary settings for Power KSampler Advanced.