323 Commits (16eabdf70dbdb64dc4822908f0fe455c56d11ec3)

Author SHA1 Message Date
comfyanonymous d44a2de49f Make VAE code closer to sgm. 1 year ago
comfyanonymous 7e09e889e3 Make clear that the old CheckpointLoader is deprecated. 1 year ago
comfyanonymous 20d3852aa1 Pull some small changes from the other repo. 1 year ago
comfyanonymous 9212bea87c Change a few things in #1578. 1 year ago
MoonRide303 ece69bf28c Change channel type to MASK (reduced redundancy, increased usability) 1 year ago
MoonRide303 d06cd2805d Added support for Porter-Duff image compositing 1 year ago
comfyanonymous ec454c771b Refactor with code from comment of #1588 1 year ago
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.
1 year ago
comfyanonymous bf3fc2f1b7 Refactor sampling related code. 1 year ago
comfyanonymous 9546a798fb Make LoadImage and LoadImageMask return masks in batch format. 1 year ago
comfyanonymous ba7dfd60f2 Merge branch 'proportional-scale' of https://github.com/jn-jairo/ComfyUI 1 year ago
comfyanonymous 2381d36e6d 1024 wasn't enough. 1 year ago
comfyanonymous 42f6d1ebe2 Increase maximum batch sizes of empty image nodes. 1 year ago
comfyanonymous 77c124c5a1 Fix typo. 1 year ago
Jairo Correa 593b7069e7 Proportional scale latent and image 1 year ago
comfyanonymous fd93c759e2 Implement FreeU: Free Lunch in Diffusion U-Net node.
_for_testing->FreeU
1 year ago
comfyanonymous 422d16c027 Add some nodes to add, subtract and multiply latents. 1 year ago
comfyanonymous 1122df1a20 Increase range of lora strengths. 1 year ago
MoonRide303 2b6b178173 Added support for lanczos scaling 1 year ago
comfyanonymous 0109431626 Lower the minimum resolution of EmptyLatentImage. 1 year ago
comfyanonymous db63aa7e53 Nodes can now control the rounding in the UI. 1 year ago
comfyanonymous f88f7f413a Add a ConditioningSetAreaPercentage node. 1 year ago
comfyanonymous 36ea8784a8 Only return tuple of 3 args in CheckpointLoaderSimple. 2 years ago
comfyanonymous 57beace324 Fix VAEDecodeTiled minimum. 2 years ago
comfyanonymous 7e941f9f24 Clean up DiffusersLoader node. 2 years ago
comfyanonymous 8ddd081b09 Use the same units for tile size in VAEDecodeTiled and VAEEncodeTiled. 2 years ago
BVH d86b222fe9
Reduce min tile size for encode 2 years ago
BVH 9196588088
Make tile size in Tiled VAE encode/decode user configurable 2 years ago
comfyanonymous c77f02e1c6 Move controlnet code to comfy/controlnet.py 2 years ago
comfyanonymous d7b3b0f8c1 Don't hardcode node names for image upload widget. 2 years ago
pythongosssss 9b1d5a587c Allow loading js extensions without copying to /web folder 2 years ago
comfyanonymous 27b87c25a1 Add an EmptyImage node.
TODO: implement color picker in the frontend.
2 years ago
comfyanonymous e7d88855f4 Add node to batch images together. 2 years ago
comfyanonymous 9cc12c833d CLIPVisionEncode can now encode multiple images. 2 years ago
comfyanonymous fa962e86c1 Make LatentBlend more consistent with other nodes. 2 years ago
FuamiCake d712193885 Add LatentBlend node, allowing for blending between two Latent inputs. 2 years ago
FuamiCake 3dcad78fe1 SaveLatent reports its outputs so they are visible to API 2 years ago
comfyanonymous 1141029a4a Add --disable-metadata argument to disable saving metadata in files. 2 years ago
comfyanonymous 5f75d784a1 Start is now 0.0 and end is now 1.0 for the timestep ranges. 2 years ago
comfyanonymous 7ff14b62f8 ControlNetApplyAdvanced can now define when controlnet gets applied. 2 years ago
comfyanonymous d191c4f9ed Add a ControlNetApplyAdvanced node.
The controlnet can be applied to the positive or negative prompt only by
connecting it correctly.
2 years ago
comfyanonymous 0240946ecf Add a way to set which range of timesteps the cond gets applied to. 2 years ago
ComfyUI-Community a8f3bbc35d
Patch del self.loaded_lora to prevent error with persistent lora_name swapping 2 years ago
comfyanonymous eed3042830 Move conditioning concat node to conditioning section. 2 years ago
comfyanonymous bdba394290 Add a canny preprocessor node. 2 years ago
comfyanonymous 3bc8be33e4 Don't let custom nodes overwrite base nodes. 2 years ago
comfyanonymous f4b9390623 Add a random string to the temp prefix for PreviewImage. 2 years ago
comfyanonymous ccb1b25908 Add a conditioning concat node. 2 years ago
comfyanonymous af7a49916b Support loading unet files in diffusers format. 2 years ago
comfyanonymous 3a09fac835 ConditioningAverage now also averages the pooled output. 2 years ago
comfyanonymous d94ddd8548 Add text encode nodes to control the extra parameters in SDXL. 2 years ago
comfyanonymous 5a9ddf94eb LoraLoader node now caches the lora file between executions. 2 years ago
comfyanonymous 2d880fec3a Add a node to zero out the cond to advanced/conditioning
The stability streamlit example passes a zero cond as the negative input
so using this for the negative input makes outputs match the streamlit.
2 years ago
comfyanonymous 9b93b920be Add CheckpointSave node to save checkpoints.
The created checkpoints contain workflow metadata that can be loaded by
dragging them on top of the UI or loading them with the "Load" button.

Checkpoints will be saved in fp16 or fp32 depending on the format ComfyUI
is using for inference on your hardware. To force fp32 use: --force-fp32

Anything that patches the model weights like merging or loras will be
saved.

The output directory is currently set to: output/checkpoints but that might
change in the future.
2 years ago
comfyanonymous 4eab00e14b Set the seed in the SDE samplers to make them more reproducible. 2 years ago
comfyanonymous cef6aa62b2 Add support for TAESD decoder for SDXL. 2 years ago
comfyanonymous 20f579d91d Add DualClipLoader to load clip models for SDXL.
Update LoadClip to load clip models for SDXL refiner.
2 years ago
comfyanonymous 05676942b7 Add some more transformer hooks and move tomesd to comfy_extras.
Tomesd now uses q instead of x to decide which tokens to merge because
it seems to give better results.
2 years ago
comfyanonymous 8607c2d42d Move latent scale factor from VAE to model. 2 years ago
comfyanonymous f87ec10a97 Support base SDXL and SDXL refiner models.
Large refactor of the model detection and loading code.
2 years ago
comfyanonymous bf3f271775 Add some nodes for basic model merging. 2 years ago
comfyanonymous 8c9c94b5f3 Add bicubic upscale method. 2 years ago
comfyanonymous 67833c83d8 Add ImageScaleBy node. 2 years ago
comfyanonymous c64ca8c0b2 Refactor unCLIP noise augment out of samplers.py 2 years ago
comfyanonymous a3a713b6c5 Refactor previews into one command line argument.
Clean up a few things.
2 years ago
space-nuko 8b4a6c19c2 Fix 2 years ago
space-nuko 3e17971acb preview method autodetection 2 years ago
space-nuko d5a28fadaa Add latent2rgb preview 2 years ago
space-nuko 70d72c4336 Slightly less vibrant sample 2 years ago
space-nuko 48f7ec750c Make previews into cli option 2 years ago
space-nuko f326a0a468 Make new LATENT_PREVIEWER type for declaring KSampler preview methods 2 years ago
space-nuko b4f434ee66 Preview sampled images with TAESD 2 years ago
comfyanonymous 0fc483dcfd Refactor diffusers model convert code to be able to reuse it. 2 years ago
space-nuko 4d1ed829d9 Don't load some model types if weight is zero 2 years ago
comfyanonymous c00bb1a0b7 Add a latent upscale by node. 2 years ago
comfyanonymous 34887b8885 Add experimental bislerp algorithm for latent upscaling.
It's like bilinear but with slerp.
2 years ago
comfyanonymous 6cc450579b Auto transpose images from exif data. 2 years ago
comfyanonymous 8bbd9815a9 Support loading fp16 latent files. 2 years ago
comfyanonymous 62a371e12b Load workflow from latent file. 2 years ago
comfyanonymous faf899ad5a LoadLatent and SaveLatent should behave like the LoadImage and SaveImage. 2 years ago
comfyanonymous a7375103b9 Some small changes to Load/SaveLatent. 2 years ago
Dr.Lt.Data e7f2816c6f
feat:Latent Save/Load (#662)
* wip

* latent dir

* fix

* fix

* now working

* mark todo

* remove server.py changes to separate PRt

---------

Co-authored-by: Lt.Dr.Data <lt.dr.data@gmail.com>
2 years ago
comfyanonymous 2ec6d1c6e3 Don't import custom nodes when the folder ends with .disabled 2 years ago
comfyanonymous c02a554bcf Make DiffusersLoader work with subfolders. 2 years ago
comfyanonymous acff543d66 Remove useless code. 2 years ago
comfyanonymous b0505eb7ab Return right type when none specified in upload route.
Switch time.time to time.perf_counter for custom node import times.
2 years ago
comfyanonymous db4d3a8494 Print if custom nodes imported successfully or not. 2 years ago
comfyanonymous 2ac744f662 Print all custom node import times. 2 years ago
comfyanonymous 92bf1cb61e Change message. 2 years ago
comfyanonymous cf439709b6 Load nodes in comfy_extras before custom nodes.
Change the slow import message.
2 years ago
comfyanonymous cb4b822398 Print custom nodes that take too much time to import. 2 years ago
BlenderNeko 1201d2eae5
Make nodes map over input lists (#579)
* allow nodes to map over lists

* make work with IS_CHANGED and VALIDATE_INPUTS

* give list outputs distinct socket shape

* add rebatch node

* add batch index logic

* add repeat latent batch

* deal with noise mask edge cases in latentfrombatch
2 years ago
comfyanonymous c5c0ea666f noise_mask in latent should be in a single format. 2 years ago
comfyanonymous d43e45ce62 Remove print. 2 years ago
comfyanonymous 850daf0416 Masked editor changes.
Add a way to upload to subfolders.

Clean up code.

Fix some issues.
2 years ago
Dr.Lt.Data ae08fdb999
Clipspace Menu and MaskEditor application. (#548)
* Add clipspace feature.
* feat: copy content to clipspace
* feat: paste content from clipspace

Extend validation to allow for validating annotated_path in addition to other parameters.

Add support for annotated_filepath in folder_paths function.

Generalize the '/upload/image' API to allow for uploading images to the 'input', 'temp', or 'output' directories.

* rename contentClipboard -> clipspace

* Do deep copy for imgs on copy to clipspace.

* mask painting on clipspace

* add original_imgs into clipspace
* Preserve the original image when 'imgs' are modified

* robust patch & refactoring folder_paths about annotated_filepath

* wip

* Only show the Paste menu if the ComfyApp.clipspace is not empty

* clipspace feature added
maskeditor feature added

* instant refresh on paste

force triggering 'changed' on paste action

* enhance mask painting

smooth drawing
add brush_size +/- button

* robust patch

use mouseup event

* robust patch

again...

* subfolder fix on paste logic

attach subfolder if subfolder isn't empty

* event listener patch

add ], [ key event for brush size
remove listener on close

* Fix button positioning issue related to window height.
Change brush size from button to slider.

* clean commit

* clean code

* various bug fixes

* paste action
- prevent opening upload popup
- ensure rendering after widget_value update

* view api update
- support annotated_filepath

* maskeditor layout
- prevent covering button by hidden div

* remove dbg message

* Add cursor functionality to display brush size

* refactor: Replace brush preview feature with missionfloyd implementation

* missionfloyd implementation
* hiding brush preview off the canvas
* change brush size on wheel event

* keyup -> keydown event

* Update web/extensions/core/maskeditor.js

Co-authored-by: missionfloyd <missionfloyd@users.noreply.github.com>

* Add support for channel-specific image data retrieval in /view API to fix alpha mask loading issue

When loading an image with an alpha mask in JavaScript canvas, there is an issue where the alpha and RGB channels are premultiplied. To avoid reliance on JavaScript canvas, I added support for channel-specific image data retrieval in the "/view" API. This allows us to retrieve data for each channel separately and fix the alpha mask loading issue. The changes have been committed to the repository.

* Enable brush preview for key and slider events

* optimize

* preview fix

* robust patch

* fix copy (clipspace) action
imgs[0] copy -> whole imgs copy

* support batch images on clipspace, maskeditor

* copy/paste bug fixes for batch images
enhance selector preview on clipspace menu
add img_paste_mode option into clipspace menu

* crash fix

* print message if clipspace content cannot editable

* Update web/extensions/core/maskeditor.js

Co-authored-by: missionfloyd <missionfloyd@users.noreply.github.com>

* make default img_paste_mode to 'selected'

refactor space -> tab

* save clipspace files to input/clipspace instead of temp

* show "clipspace/filename.png" instead of 'filename.png [clipspace]' in LoadImage/LoadImageMask

* refresh fix related to FILE_COMBO

* Update web/extensions/core/maskeditor.js

Co-authored-by: missionfloyd <missionfloyd@users.noreply.github.com>

* Update web/extensions/core/maskeditor.js

Co-authored-by: missionfloyd <missionfloyd@users.noreply.github.com>

* adjust margin based on missionfloyd impelements

* mouse event -> pointer event

* pen, touch, mouse drawing patched and tested

* Update web/extensions/core/maskeditor.js

Co-authored-by: missionfloyd <missionfloyd@users.noreply.github.com>

* add comment about touch event.

---------

Co-authored-by: Lt.Dr.Data <lt.dr.data@gmail.com>
Co-authored-by: missionfloyd <missionfloyd@users.noreply.github.com>
2 years ago
comfyanonymous 678f933d38 maximum_batch_area for xformers.
Remove useless code.
2 years ago
comfyanonymous 908dc1d5a8 Add a total_steps value to sampler callback. 2 years ago
comfyanonymous 93c64afaa9 Use sampler callback instead of tqdm hook for progress bar. 2 years ago
comfyanonymous ba8a4c3667 Change latent resolution step to 8. 2 years ago