148 Commits (main)

Author SHA1 Message Date
comfyanonymous 2622c55aff Automatically use RF variant of dpmpp_2s_ancestral if RF model. 6 months ago
Ashen 1beb348ee2 dpmpp_2s_ancestral_RF for rectified flow (Flux, SD3 and Auraflow). 6 months ago
comfyanonymous 63a7e8edba More aggressive batch splitting. 7 months ago
comfyanonymous 95fa9545f1 Only append zero to noise schedule if last sigma isn't zero. 7 months ago
comfyanonymous 6ab8cad22e Implement beta sampling scheduler.
It is based on: https://arxiv.org/abs/2407.12173

Add "beta" to the list of schedulers and the BetaSamplingScheduler node.
7 months ago
Extraltodeus f1a01c2c7e
Add sampler_pre_cfg_function (#3979)
* Update samplers.py

* Update model_patcher.py
8 months ago
comfyanonymous 05e831697a Switch to the real cfg++ method in the samplers.
The old _pp ones will be updated automatically to the regular ones with 2x
the cfg.

My fault for not checking what the "_pp" samplers actually did.
8 months ago
comfyanonymous 44947e7ad4 Add DEIS order 3 sampler.
Order 4 seems to give bad results.
8 months ago
comfyanonymous 69d710e40f Implement my alternative take on CFG++ as the euler_pp sampler.
Add euler_ancestral_pp which is the ancestral version of euler with the
same modification.
8 months ago
comfyanonymous d5efde89b7 Add ipndm_v sampler, works best with the exponential scheduler. 8 months ago
comfyanonymous e11052afcf Add ipndm sampler. 8 months ago
comfyanonymous a5e6a632f9 Support sampling non 2D latents. 9 months ago
comfyanonymous f81a6fade8 Fix some edge cases with samplers and arrays with a single sigma. 10 months ago
Jedrzej Kosinski 7990ae18c1
Fix error when more cond masks passed in than batch size (#3353) 10 months ago
comfyanonymous 0f5768e038 Fix missing arguments in cfg_function. 11 months ago
comfyanonymous 1a0486bb96 Fix model needing to be loaded on GPU to generate the sigmas. 11 months ago
comfyanonymous c6bd456c45 Make zero denoise a NOP. 11 months ago
comfyanonymous fcfd2bdf8a Small cleanup. 11 months ago
comfyanonymous 0542088ef8 Refactor sampler code for more advanced sampler nodes part 2. 11 months ago
comfyanonymous 57753c964a Refactor sampling code for more advanced sampler nodes. 11 months ago
comfyanonymous e6482fbbfc Refactor calc_cond_uncond_batch into calc_cond_batch.
calc_cond_batch can take an arbitrary amount of cond inputs.

Added a calc_cond_uncond_batch wrapper with a warning so custom nodes
won't break.
11 months ago
comfyanonymous 0624838237 Add inverse noise scaling function. 11 months ago
comfyanonymous f2fe635c9f SamplerDPMAdaptative node to test the different options. 11 months ago
comfyanonymous 2a813c3b09 Switch some more prints to logging. 12 months ago
comfyanonymous 12c1080ebc Simplify differential diffusion code. 12 months ago
Shiimizu 727021bdea
Implement Differential Diffusion (#2876)
* Implement Differential Diffusion

* Cleanup.

* Fix.

* Masks should be applied at full strength.

* Fix colors.

* Register the node.

* Cleaner code.

* Fix issue with getting unipc sampler.

* Adjust thresholds.

* Switch to linear thresholds.

* Only calculate nearest_idx on valid thresholds.
12 months ago
comfyanonymous 00425563c0 Cleanup: Use sampling noise scaling function for inpainting. 12 months ago
comfyanonymous c62e836167 Move noise scaling to object with sampling math. 12 months ago
comfyanonymous d46583ecec Playground V2.5 support with ModelSamplingContinuousEDM node.
Use ModelSamplingContinuousEDM with edm_playground_v2.5 selected.
1 year ago
logtd e1cb93c383 Fix model and cond transformer options merge 1 year ago
comfyanonymous 10847dfafe Cleanup uni_pc inpainting.
This causes some small changes to the uni pc inpainting behavior but it
seems to improve results slightly.
1 year ago
comfyanonymous 7dd352cbd7 Merge branch 'feature_expose_discard_penultimate_sigma' of https://github.com/blepping/ComfyUI 1 year ago
Jedrzej Kosinski f44225fd5f Fix infinite while loop being possible in ddim_scheduler 1 year ago
blepping a352c021ec Allow custom samplers to request discard penultimate sigma 1 year ago
comfyanonymous 89507f8adf Remove some unused imports. 1 year ago
Dr.Lt.Data 05cd00695a
typo fix - calculate_sigmas_scheduler (#2619)
self.scheduler -> scheduler_name

Co-authored-by: Lt.Dr.Data <lt.dr.data@gmail.com>
1 year ago
comfyanonymous 8c6493578b Implement noise augmentation for SD 4X upscale model. 1 year ago
comfyanonymous 9a7619b72d Fix regression with inpaint model. 1 year ago
comfyanonymous 571ea8cdcc Fix SAG not working with cfg 1.0 1 year ago
comfyanonymous 8cf1daa108 Fix SDXL area composition sometimes not using the right pooled output. 1 year ago
Hari 574363a8a6 Implement Perp-Neg 1 year ago
comfyanonymous 329c571993 Improve code legibility. 1 year ago
comfyanonymous 6c5990f7db Fix cfg being calculated more than once if sampler_cfg_function. 1 year ago
comfyanonymous ba04a87d10 Refactor and improve the sag node.
Moved all the sag related code to comfy_extras/nodes_sag.py
1 year ago
Rafie Walker 6761233e9d
Implement Self-Attention Guidance (#2201)
* First SAG test

* need to put extra options on the model instead of patcher

* no errors and results seem not-broken

* Use @ashen-uncensored formula, which works better!!!

* Fix a crash when using weird resolutions. Remove an unnecessary UNet call

* Improve comments, optimize memory in blur routine

* SAG works with sampler_cfg_function
1 year ago
comfyanonymous 97015b6b38 Cleanup. 1 year ago
comfyanonymous dcec1047e6 Invert the start and end percentages in the code.
This doesn't affect how percentages behave in the frontend but breaks
things if you relied on them in the backend.

percent_to_sigma goes from 0 to 1.0 instead of 1.0 to 0 for less confusion.

Make percent 0 return an extremely large sigma and percent 1.0 return a
zero one to fix imprecision.
1 year ago
comfyanonymous 57eea0efbb heunpp2 sampler. 1 year ago
comfyanonymous 420beeeb05 Clean up and refactor sampler code.
This should make it much easier to write custom nodes with kdiffusion type
samplers.
1 year ago
comfyanonymous dd4ba68b6e Allow different models to estimate memory usage differently. 1 year ago