183 Commits

Author SHA1 Message Date
comfyanonymous
03ccdd76a7 Simplify differential diffusion code. 2024-03-03 15:34:42 -05:00
Shiimizu
8363203d85 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.
2024-03-03 15:34:13 -05:00
comfyanonymous
0bd8fc1e4d Playground V2.5 support with ModelSamplingContinuousEDM node.
Use ModelSamplingContinuousEDM with edm_playground_v2.5 selected.
2024-02-27 15:12:33 -05:00
comfyanonymous
bc2422090b Merge branch 'patch-1' of https://github.com/feffy380/ComfyUI 2024-02-22 16:23:50 -05:00
comfyanonymous
a25fa937dc ModelSamplingDiscrete: x0 model support that predict a denoised image. 2024-02-21 08:05:43 -05:00
feffy380
a5a21e526e Fix Perp-Neg math
adjust perp-neg implementation to match the paper
2024-02-21 10:33:03 +01:00
comfyanonymous
1b2e67827f Node to make stable cascade image to image easier. 2024-02-19 13:36:20 -05:00
comfyanonymous
cb8f02a4a9 Larger range for min/max compression for StableCascade_EmptyLatentImage. 2024-02-19 08:59:53 -05:00
comfyanonymous
3518d94368 Add ModelSamplingStableCascade to control the shift sampling parameter.
shift is 2.0 by default on Stage C and 1.0 by default on Stage B.
2024-02-18 00:55:23 -05:00
comfyanonymous
e5a0f735be Stable Cascade Stage B. 2024-02-16 13:02:03 -05:00
comfyanonymous
7b608054c8 Add ImageFromBatch. 2024-02-12 12:46:15 -05:00
comfyanonymous
f093328358 Add a node to give the controlnet a prompt different from the unet. 2024-02-10 08:27:05 -05:00
FizzleDorf
9aca950219 changed default of LatentBatchSeedBehavior to fixed 2024-02-02 18:31:35 +09:00
comfyanonymous
b5cd88a3c9 Fix some issues with --gpu-only 2024-01-27 02:51:27 -05:00
comfyanonymous
23c1968a9d Add a LatentBatchSeedBehavior node.
This lets you set it so the latents can use the same seed for the sampling
on every image in the batch.
2024-01-26 23:13:02 -05:00
comfyanonymous
646783d2b4 Add experimental photomaker nodes.
Put the model file in models/photomaker and use PhotoMakerLoader.

Then use PhotoMakerEncode with the keyword "photomaker" to apply the image
2024-01-24 09:51:42 -05:00
comfyanonymous
a53633211f Fix potential turbo scheduler model patching issue. 2024-01-22 00:28:13 -05:00
comfyanonymous
381fe99d0c Move some nodes to model_patches section. 2024-01-18 15:57:35 -05:00
comfyanonymous
8739736c6e Add unfinished ImageOnlyCheckpointSave node to save a SVD checkpoint.
This node is unfinished, SVD checkpoints saved with this node will
work with ComfyUI but not with anything else.
2024-01-17 19:46:21 -05:00
comfyanonymous
94ba290da9 Fix hypertile issue with high depths. 2024-01-11 15:13:38 -05:00
comfyanonymous
abdd5c3f33 Skip SAG when latent is too small. 2024-01-10 04:08:43 -05:00
comfyanonymous
528df49b57 Round up to nearest power of 2 in SAG node to fix some resolution issues. 2024-01-09 15:12:12 -05:00
comfyanonymous
cca348a662 Fix BasicScheduler issue with Loras. 2024-01-05 12:31:13 -05:00
comfyanonymous
42aa083379 StableZero123_Conditioning_Batched node.
This node lets you generate a batch of images with different elevations or
azimuths by setting the elevation_batch_increment and/or
azimuth_batch_increment.

It also sets the batch index for the latents so that the same init noise is
used on each frame.
2024-01-05 04:20:03 -05:00
comfyanonymous
a36114ce30 Implement noise augmentation for SD 4X upscale model. 2024-01-03 14:27:11 -05:00
comfyanonymous
004cf09984 Fix model patches not working in custom sampling scheduler nodes. 2024-01-03 12:16:30 -05:00
comfyanonymous
7629685d08 Add support for the stable diffusion x4 upscaling model.
This is an old model.

Load the checkpoint like a regular one and use the new
SD_4XUpscale_Conditioning node.
2024-01-03 03:37:56 -05:00
comfyanonymous
fe129df5ba Add a denoise parameter to BasicScheduler node. 2023-12-31 15:37:20 -05:00
comfyanonymous
cae5bede07 Fix potential tensor device issue with ImageCompositeMasked. 2023-12-21 02:35:01 -05:00
comfyanonymous
fcd1d723ac Add a RebatchImages node. 2023-12-20 16:22:18 -05:00
comfyanonymous
23f97628e1 Add a denoise parameter to the SDTurboScheduler. 2023-12-20 02:54:25 -05:00
comfyanonymous
bf90151704 Fix SAG not working with cfg 1.0 2023-12-18 17:03:32 -05:00
comfyanonymous
a2d5004d23 Fix wrong Stable Zero123 node name. 2023-12-18 03:59:50 -05:00
comfyanonymous
c39ed85f3d Support stable zero 123 model.
To use it use the ImageOnlyCheckpointLoader to load the checkpoint and
the new Stable_Zero123 node.
2023-12-18 03:48:04 -05:00
comfyanonymous
1b16f64d1c Move SaveAnimated nodes to image->animation. 2023-12-17 02:37:22 -05:00
comfyanonymous
f345c77b3d Fix perpneg not working on SDXL. 2023-12-16 02:30:16 -05:00
comfyanonymous
73d62af037 Fix SAG not working on certain resolutions. 2023-12-16 01:29:57 -05:00
comfyanonymous
778dd90076 Add a LatentBatch node. 2023-12-16 01:21:00 -05:00
comfyanonymous
6a3d15681b Forgot this. 2023-12-15 15:46:23 -05:00
comfyanonymous
5adaa97798 Refactor LCM to support more model types. 2023-12-15 15:26:12 -05:00
comfyanonymous
291643cde3 Make perp neg take a conditioning input instead of a CLIP one. 2023-12-15 14:40:57 -05:00
Hari
72500f183b Implement Perp-Neg 2023-12-16 00:28:16 +05:30
comfyanonymous
99f61f753a Remove useless code. 2023-12-15 01:28:16 -05:00
comfyanonymous
9f728f9e00 cleanup. 2023-12-14 20:11:46 -05:00
comfyanonymous
b83523b241 Refactor and improve the sag node.
Moved all the sag related code to comfy_extras/nodes_sag.py
2023-12-13 16:11:26 -05:00
Rafie Walker
58df1767b4 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
2023-12-13 15:52:11 -05:00
comfyanonymous
63349484b8 Make --gpu-only put intermediate values in GPU memory instead of cpu. 2023-12-08 02:35:45 -05:00
comfyanonymous
d9b51ff370 Fix hypertile. 2023-12-07 15:22:35 -05:00
asagi4
6806b383ad Make HyperTile deterministic 2023-12-06 21:17:56 +02:00
comfyanonymous
9b85cd696c Add SDTurboScheduler node. 2023-11-28 13:35:32 -05:00