Commit Graph
48 Commits
Author SHA1 Message Date
blepping 68fc7418d1 Yet another noise generation refactor (#12)
* Refactor noise generation
Try to make option passing and CPU/GPU noise selection work
Add advanced custom noise node that allows for parameter passing
Add wavelet noise type

* Add WaveletFilteredNoise node, other fixes

* Fix Brownian arg passing

* Generalized distribution noise for most torch.distributions

* Distro noise improvements, add SonarAdvancedDistroNoise node

* More distributions!

* Add SonarResizedNoise node

* Momentum sampler refactor/improvements (I hope)

* Better approach to integration with external nodes
Documentation updates
Other cleanups

* Internal cleanups and refactoring.
Some integration improvements.
Bump date in changelog

* Add round and step to node FLOAT inputs that did not have it
2025-01-31 17:33:04 -07:00
blepping 6d15c0bbca Use ComfyUI union types for wildcard inputs when available 2024-12-05 03:57:16 -07:00
blepping f7cbbfcbda Merge pull request #11 from blepping/nov2024update
November 2024 mega update
2024-11-30 01:01:33 -07:00
blepping 6369627e99 November 2024 mega update, see changelog for details 2024-11-30 00:59:08 -07:00
blepping 4f1934345a Fix an issue with NoisyLatentLike where it didn't correctly pass a seed to connected custom noise nodes (probably only affected Brownian)
Add normalize and cpu_noise parameters to NoisyLatentLike
2024-10-10 16:09:54 -06:00
blepping d2dc34e9cf Merge pull request #10 from asagi4/main
Don't fail in momentum samplers when self.guidance is None
2024-09-02 10:20:25 -06:00
asagi4 12ff37d8e3 Don't fail when self.guidance is None 2024-09-02 19:08:31 +03:00
blepping 55d9346713 Fix pink noise and batch sizes over 1 2024-09-01 18:11:21 -06:00
blepping 28b9d9c9c2 Add SonarAdvancedPyramidNoise node 2024-08-23 09:26:00 -06:00
blepping 1fa6b44c47 Add tooltips and descriptions for most nodes.
Add repeat_batch parameter to NoisyLatentLike node.
Add a node to convert SONAR_CUSTOM_NOISE to ComfyUI NOISE.
Various code cleanups and lint squashing.
2024-08-23 07:28:10 -06:00
blepping 5eacd52bbf Workaround for Python 3.10 compatibility 2024-05-21 10:35:30 -06:00
blepping 408686b9b8 Fix FreeU Extreme example images/workflow 2024-05-21 07:34:10 -06:00
blepping 4844b7109e Mega update (#6)
Many new features, documentation reorganized.

* Add `SonarScheduledNoise`, `SonarCompositeNoise`, `SonarGuidedNoise`, `SonarRandomNoise` nodes.
* Add `SonarPowerFilterNoise`, `SonarPowerFilter`, `SonarPreviewFilter` nodes.
* Add `FreeUExtreme`, `FreeUExtremeConfig` nodes.
* Replace `pyramid` noise type with a (hopefully) more correct implementation. You can use `pyramid_old` for the previous behavior.
* Add more noise types and variations.
* The `NoisyLatentLike` node now allows using brownian noise if you connect a model and sigmas.
* Refactoring, cleanups, reorganization.
2024-05-21 07:06:46 -06:00
blepping 78e8451324 Feat modulated repeated noise (#5)
* Add modulated and repeated noise nodes
2024-05-06 16:51:23 -06:00
blepping b78cbe0b2a Fix NoisyLatentLike to work with recent ComfyUI changes 2024-04-05 12:57:02 -06:00
blepping 24e1536cb7 Various noise improvements (#4)
* Fixed issue when using Sonar samplers in normal sampling nodes/via stuff like `KSamplerSelect`.
* Add `pyramid` (non-high-res) noise type.
* Allow selecting `brownian` noise in custom noise nodes (but it won't work with `NoisyLatentLike`).
* Use `brownian` as the default noise type for `SamplerSonarDPMPP`.
* Make overriding the selected noise type in Sonar samplers a warning instead of a hard error.
* Improve noise scaling (may change seeds).
* Add `KRestartSamplerCustomNoise` if the user has a recent enough version of ComfyUI_restart_sampling installed.
2024-04-01 11:59:36 -06:00
blepping ecadbfcd19 Improvements to NoisyLatentLike node (#3)
* Improve NoisyLatentLike to allow calculating strength with sigmas and noise injection

* Update documentation for NoisyLatentLike changes + general improvements
2024-03-20 18:37:51 -06:00
blepping 1ee8273771 Update README and changelog for SonarPowerNoise 2024-03-20 07:57:43 -06:00
elias-gaeros 52f929d54d SonarPowerNoise (#2)
* SonarPowerNoise: WIP

* don't allow highpass > lowpass

* fix filter unit gain

The filter was computed as an amplitude gain map. This change computes energy
gains instead. This makes easier to ensure unit-gain and makes the alpha values
more in line with literature where the power spectrum is obeying the power law.
new alpha = old alpha / 2

Also fixes the gain of common_mode.

* allow stretch < 1.0, paramter range fixes

* rename lowpass/highpass to min_freq/max_freq

* remove torch.no_grad wrappers

* add previews

* static seed for previews

* README: SonarPowerNoise documentation
2024-03-14 16:04:35 -06:00
blepping 090df2280d Make custom noise more extensible (internal change) 2024-03-02 04:48:54 -07:00
blepping a2fd7118b5 Noise refactor (#1)
* Refactor noise: stage 1

* Refactor noise: stage 2

* Refactor noise: stage 3

* Refactor noise: stage 4

* Update documentation and changelog
2024-02-27 02:42:19 -07:00
blepping a6f4249464 Fix perlin noise for Cascade, (hopefully) fix power noise for batch size > 1 2024-02-17 15:07:58 -07:00
blepping 227c9c99e5 Add SonarCustomNoise node + use it in other samplers 2024-02-10 20:38:03 -07:00
blepping 884771aa4a README updates 2024-02-08 01:30:14 -07:00
blepping d30b17148e Allow setting the RAND init noise type
Update README and add examples for new noise types
2024-02-07 11:01:55 -07:00
blepping 64910960ea Add green_test noise type 2024-02-06 17:30:27 -07:00
blepping 5fb82c7c4c Add power, laplacian and rainbow noise types 2024-02-06 12:44:18 -07:00
blepping ff45076405 Add DPM++ SDE to README 2024-02-06 11:49:54 -07:00
blepping 1dfdcfe933 Correctly update hd in dpmpp_sde sampler 2024-02-06 11:42:42 -07:00
blepping 1ad81de87f Attempt DPM++ SDE with momentum 2024-02-06 10:45:49 -07:00
blepping 430e1b999d Fix using Sonar samplers in normal sampler nodes 2024-02-06 07:04:58 -07:00
blepping c7b8737199 Update README to reflect recent changes 2024-02-06 07:00:48 -07:00
blepping 0fb3549e29 Add NoisyLatentLike node, further cleanups and refactoring 2024-02-06 06:46:53 -07:00
blepping 87c7309e45 Refactor guidance config and nodes 2024-02-06 04:19:51 -07:00
blepping ead5b6bcca Allow setting guidance range, other cleanups and fixes 2024-02-04 12:46:03 -07:00
blepping e38841d105 Initial implementation of guidance 2024-02-04 07:25:21 -07:00
blepping 7b7f557961 Add a brief usage section to the README 2024-02-03 12:35:20 -07:00
blepping 569d685877 Add sonar samplers to the built in samplers list 2024-02-03 12:25:50 -07:00
blepping cce2b27413 Add renoise with plain old EulerA example image 2024-02-03 11:39:40 -07:00
blepping e2a7ed6b1d Reorganize example images, add img2img examples 2024-02-03 11:32:38 -07:00
blepping 4511a357a9 Add examples for different noise types 2024-02-03 10:47:00 -07:00
blepping bc1358c106 Increase maximum possible direction value 2024-02-03 10:34:01 -07:00
blepping 79a5519a58 Cleanups and refactoring 2024-02-03 10:20:00 -07:00
blepping 347eb3f5cf Allow setting noise type for Euler A 2024-02-02 13:58:45 -07:00
blepping 3eb4e8292d Tweak parameter limits 2024-02-02 12:03:55 -07:00
blepping a48ff65b8d Cleanups, add direction parameter 2024-02-02 07:48:22 -07:00
blepping e57f259f9d Add actual implementation 2024-02-02 06:38:38 -07:00
blepping e085a0693b Initial commit 2024-02-02 05:49:18 -07:00