Commit Graph

1509 Commits

Author SHA1 Message Date
Marco
6e1a07d301 Update controlnet.py
Make it compatible with the changes in nodes.py.
Added parameter soft_injection to the class ControlBase
Added control weight modulator
2023-09-29 01:44:02 +02:00
Marco
a05005ab9d Update nodes.py
Added the soft injection mechanism, which will modulate how the weights are injected. It is best to use this when performing high-res fix with controlnet, as well as controlnet inpaint. To use this simply pass to the controlnet apply node a dict like this {'image': image, 'soft_injection': True} instead of a image tensor .
This will work with the advanced apply controlnet(it will assign 2 scaled weights, one for each controlnet).
It is SDXL safe. it will guess the model based on the controlnet architecture.
This will not break anything since if you pass only an image to the node, the standard beheviour will not change
2023-09-29 01:37:46 +02:00
comfyanonymous
26b7372805 Fix SplitSigmas. 2023-09-28 01:11:22 -04:00
comfyanonymous
71713888c4 Print missing VAE keys. 2023-09-28 00:54:57 -04:00
comfyanonymous
76e0f8fc8f Add function to split sigmas. 2023-09-28 00:40:09 -04:00
comfyanonymous
2bf051fda8 Add a basic node to generate sigmas from scheduler. 2023-09-28 00:30:45 -04:00
comfyanonymous
d234ca558a Add missing samplers to KSamplerSelect. 2023-09-28 00:17:03 -04:00
comfyanonymous
1d7dfc07d5 Make add_noise in SamplerCustom a boolean. 2023-09-27 22:42:23 -04:00
comfyanonymous
1adcc4c3a2 Add a SamplerCustom Node.
This node takes a list of sigmas and a sampler object as input.

This lets people easily implement custom schedulers and samplers as nodes.

More nodes will be added to it in the future.
2023-09-27 22:21:18 -04:00
comfyanonymous
bf3fc2f1b7 Refactor sampling related code. 2023-09-27 16:45:22 -04:00
comfyanonymous
fff491b032 Model patches can now know which batch is positive and negative. 2023-09-27 12:04:07 -04:00
comfyanonymous
1d6dd83184 Scheduler code refactor. 2023-09-26 17:07:07 -04:00
comfyanonymous
446caf711c Sampling code refactor. 2023-09-26 13:45:15 -04:00
comfyanonymous
aeba1cc2a0 Merge branch 'chore/update-actions-versions' of https://github.com/M1kep/ComfyUI 2023-09-26 02:58:55 -04:00
comfyanonymous
9546a798fb Make LoadImage and LoadImageMask return masks in batch format. 2023-09-26 02:56:40 -04:00
comfyanonymous
1d36dfb9fe GrowMask now works with mask batches. 2023-09-26 02:53:57 -04:00
comfyanonymous
d76d71de3f GrowMask can now be used with negative numbers to erode it. 2023-09-26 02:45:31 -04:00
Michael Poutre
e0efa78b71
chore(CI): Update test-build to use updated version of actions 2023-09-25 21:20:51 -07:00
comfyanonymous
d2cec6cdbf Make mask functions work with batches of masks and images. 2023-09-25 16:19:37 -04:00
comfyanonymous
046b4fe0ee Support batches of masks in mask composite nodes. 2023-09-25 16:02:21 -04:00
comfyanonymous
ba7dfd60f2 Merge branch 'proportional-scale' of https://github.com/jn-jairo/ComfyUI 2023-09-25 12:39:53 -04:00
comfyanonymous
2381d36e6d 1024 wasn't enough. 2023-09-25 01:46:44 -04:00
comfyanonymous
42f6d1ebe2 Increase maximum batch sizes of empty image nodes. 2023-09-25 01:22:37 -04:00
comfyanonymous
f00471cdc8 Do FreeU fft on CPU if the device doesn't support fft functions. 2023-09-24 18:09:44 -04:00
comfyanonymous
77c124c5a1 Fix typo. 2023-09-24 13:27:57 -04:00
Jairo Correa
593b7069e7 Proportional scale latent and image 2023-09-24 12:08:54 -03:00
comfyanonymous
76cdc809bf Support more controlnet models. 2023-09-23 18:47:46 -04:00
comfyanonymous
05e661e5ef FreeU now works with the refiner. 2023-09-23 12:19:08 -04:00
comfyanonymous
ae87543653 Merge branch 'cast_intel' of https://github.com/simonlui/ComfyUI 2023-09-23 00:57:17 -04:00
comfyanonymous
fd93c759e2 Implement FreeU: Free Lunch in Diffusion U-Net node.
_for_testing->FreeU
2023-09-23 00:56:09 -04:00
Simon Lui
eec449ca8e Allow Intel GPUs to LoRA cast on GPU since it supports BF16 natively. 2023-09-22 21:11:27 -07:00
comfyanonymous
afa2399f79 Add a way to set output block patches to modify the h and hsp. 2023-09-22 20:26:47 -04:00
comfyanonymous
29ccf9f471 Fix typo. 2023-09-22 01:33:46 -04:00
comfyanonymous
422d16c027 Add some nodes to add, subtract and multiply latents. 2023-09-21 22:23:01 -04:00
comfyanonymous
492db2de8d Allow having a different pooled output for each image in a batch. 2023-09-21 01:14:42 -04:00
comfyanonymous
0793eb9269 Only clear clipboard when copying nodes. 2023-09-20 23:16:01 -04:00
comfyanonymous
4d41bd595c Fix loading group titles. 2023-09-20 21:46:41 -04:00
comfyanonymous
1122df1a20 Increase range of lora strengths. 2023-09-20 17:58:54 -04:00
comfyanonymous
1cdfb3dba4 Only do the cast on the device if the device supports it. 2023-09-20 17:52:41 -04:00
comfyanonymous
b92a86d737 Update litegraph to upstream. 2023-09-20 13:24:08 -04:00
comfyanonymous
f895260e5e Merge branch 'escape-glob' of https://github.com/seanlynch/ComfyUI 2023-09-19 13:13:40 -04:00
comfyanonymous
7c9a92f552 Don't depend on torchvision. 2023-09-19 13:12:47 -04:00
Sean Lynch
8321592408 Escape paths when passing them to globs
Try to prevent JS search from breaking on pathnames with square
brackets.
2023-09-19 08:18:29 -04:00
MoonRide303
2b6b178173 Added support for lanczos scaling 2023-09-19 10:40:38 +02:00
comfyanonymous
6d3dee9d16 Clean up #1541. 2023-09-18 23:33:52 -04:00
comfyanonymous
f32463936d Unhardcode sampler and scheduler list in test. 2023-09-18 23:24:14 -04:00
City
7c93afd2cd
Manual float precision, toggle for old behavior (#1541)
* Add toggle for float rounding

* Add manual precision override
2023-09-18 23:20:00 -04:00
enzymezoo-code
26cd8405dd
Ci quality workflows (#1423)
* Add inference tests

* Clean up

* Rename test graph file

* Add readme for tests

* Separate server fixture

* test file name change

* Assert images are generated

* Clean up comments

* Add __init__.py so tests can run with command line `pytest`

* Fix command line args for pytest

* Loop all samplers/schedulers in test_inference.py

* Ci quality workflows compare (#1)

* Add image comparison tests

* Comparison tests do not pass with empty metadata

* Ensure tests are run in correct order

* Save image files  with test name

* Update tests readme

* Reduce step counts in tests to ~halve runtime

* Ci quality workflows build (#2)

* Add build test github workflow
2023-09-18 23:18:06 -04:00
comfyanonymous
b92bf8196e Do lora cast on GPU instead of CPU for higher performance. 2023-09-18 23:04:49 -04:00
comfyanonymous
0109431626 Lower the minimum resolution of EmptyLatentImage. 2023-09-18 16:20:03 -04:00