Skip to content

[pull] master from comfyanonymous:master #12

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 887 commits into from
Apr 23, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
887 commits
Select commit Hold shift + click to select a range
93c8607
remove light_intensity and fov from load3d (#6742)
jtydhr88 Feb 15, 2025
e2919d3
Disable bf16 on AMD GPUs that don't support it.
comfyanonymous Feb 16, 2025
d0399f4
Update frontend to v1.9.18 (#6828)
comfy-pr-bot Feb 16, 2025
61c8c70
support system prompt and cfg renorm in Lumina2 (#6795)
lzyhha Feb 16, 2025
530412c
Refactor torch version checks to be more future proof.
comfyanonymous Feb 17, 2025
8c0bae5
bf16 manual cast works on old AMD.
comfyanonymous Feb 17, 2025
31e54b7
Improve AMD arch detection.
comfyanonymous Feb 17, 2025
b07258c
Fix typo.
comfyanonymous Feb 18, 2025
acc152b
Support loading and using SkyReels-V1-Hunyuan-I2V (#6862)
kijai Feb 18, 2025
afc85cd
Add Load Image Output node (#6790)
christian-byrne Feb 18, 2025
0d4d922
Add early experimental SaveWEBM node to save .webm files.
comfyanonymous Feb 19, 2025
5715be2
Fix Hunyuan unet config detection for some models. (#6877)
maedtb Feb 19, 2025
b4d3652
fixed: crash caused by outdated incompatible aiohttp dependency (#6841)
ltdrdata Feb 19, 2025
c5be423
Fix link pointing to non-exisiting docs (#6891)
silveroxides Feb 20, 2025
29d4384
Normalize extra_model_config.yaml paths to prevent duplicates. (#6885)
robinjhuang Feb 20, 2025
12da6ef
Apparently directml supports fp16.
comfyanonymous Feb 20, 2025
d372725
Add discord channel to support section. (#6900)
robinjhuang Feb 20, 2025
f579a74
Update frontend release schedule in README. (#6908)
webfiltered Feb 21, 2025
41c30e9
Let all model memory be offloaded on nvidia.
comfyanonymous Feb 21, 2025
a6deca6
Latest mac still has the black image bug.
comfyanonymous Feb 22, 2025
072db3b
Assume the mac black image bug won't be fixed before v16.
comfyanonymous Feb 22, 2025
b50ab15
Bump ComfyUI version to v0.3.15
comfyanonymous Feb 22, 2025
aff1653
Remove some useless code.
comfyanonymous Feb 22, 2025
ace899e
Prioritize fp16 compute when using allow_fp16_accumulation
comfyanonymous Feb 23, 2025
4553891
Update installation documentation to include desktop + cli. (#6899)
robinjhuang Feb 24, 2025
96d891c
Speedup on some models by not upcasting bfloat16 to float32 on mac.
comfyanonymous Feb 24, 2025
f400760
Cleanup some lumina te code.
comfyanonymous Feb 25, 2025
6302301
WIP support for Wan t2v model.
comfyanonymous Feb 25, 2025
f37551c
Change wan rope implementation to the flux one.
comfyanonymous Feb 26, 2025
ea0f939
Fix issue with wan and other attention implementations.
comfyanonymous Feb 26, 2025
9a66bb9
Make wan work with all latent resolutions.
comfyanonymous Feb 26, 2025
189da37
Update README.md (#6960)
yoland68 Feb 26, 2025
0c32f82
Fix missing frames in SaveWEBM node.
comfyanonymous Feb 26, 2025
cb06e96
Wan seems to work with fp16.
comfyanonymous Feb 26, 2025
4ced06b
WIP support for Wan I2V model.
comfyanonymous Feb 26, 2025
0844998
Slightly better wan i2v mask implementation.
comfyanonymous Feb 26, 2025
fa62287
More code reuse in wan.
comfyanonymous Feb 26, 2025
b6fefe6
Better wan memory estimation.
comfyanonymous Feb 26, 2025
4bca736
Don't try to use clip_fea on t2v model.
comfyanonymous Feb 26, 2025
c37f15f
Add fast preview support for Wan models.
comfyanonymous Feb 26, 2025
26c7baf
Bump ComfyUI version to v0.3.16
comfyanonymous Feb 26, 2025
0270a0b
Reduce artifacts on Wan by doing the patch embedding in fp32.
comfyanonymous Feb 26, 2025
8e69e2d
Bump ComfyUI version to v0.3.17
comfyanonymous Feb 26, 2025
3ea3bc8
Fix wan issues when prompt length is long.
comfyanonymous Feb 27, 2025
89253e9
Support Cambricon MLU (#6964)
BiologicalExplosion Feb 27, 2025
92d8d15
Readme changes.
comfyanonymous Feb 27, 2025
714f728
Add to README that the Wan model is supported.
comfyanonymous Feb 27, 2025
b07f116
Bump ComfyUI version to v0.3.18
comfyanonymous Feb 27, 2025
f4dac8a
Wan code small cleanup.
comfyanonymous Feb 27, 2025
1804397
Use fp16 if checkpoint weights are fp16 and the model supports it.
comfyanonymous Feb 27, 2025
eb45434
Use fp16 for intermediate for fp8 weights with --fast if supported.
comfyanonymous Feb 28, 2025
cf0b549
--fast now takes a number as argument to indicate how fast you want it.
comfyanonymous Feb 28, 2025
4d55f16
Use enum list for --fast options (#7024)
huchenlei Mar 1, 2025
4dc6709
Rename argument in last commit and document the options.
comfyanonymous Mar 1, 2025
6f81cd8
Change defaults in WanImageToVideo node.
comfyanonymous Mar 2, 2025
9af6320
Make 2d area composition nodes work on video models.
comfyanonymous Mar 2, 2025
04cf0cc
Use comfyui_frontend_package pypi package to manage frontend dependen…
huchenlei Mar 2, 2025
6752a82
Make the missing frontend package error more obvious.
comfyanonymous Mar 2, 2025
d6e5d48
improved: better frontend package installation guide (#7047)
ltdrdata Mar 3, 2025
f86c724
Temporal area composition.
comfyanonymous Mar 3, 2025
8362199
Bump ComfyUI version to v0.3.19
comfyanonymous Mar 4, 2025
7c7c70c
Refactor skyreels i2v code.
comfyanonymous Mar 4, 2025
65042f7
Make it easier to set a custom template for hunyuan video.
comfyanonymous Mar 4, 2025
2b14065
suggest absolute full path to the `requirements.txt` instead of just …
ltdrdata Mar 5, 2025
745b136
Add update instructions for the portable.
comfyanonymous Mar 5, 2025
93fedd9
Support LTXV 0.9.5.
comfyanonymous Mar 5, 2025
9c9a7f0
Adjust ltxv memory factor.
comfyanonymous Mar 5, 2025
369b079
Fix lowvram issue with ltxv vae.
comfyanonymous Mar 5, 2025
dc134b2
Bump ComfyUI version to v0.3.20
comfyanonymous Mar 5, 2025
30e6cfb
Fix LTXVPreprocess on resolutions that are not multiples of 2.
comfyanonymous Mar 5, 2025
77633ba
Remove unused variable.
comfyanonymous Mar 5, 2025
6d45ffb
Bump ComfyUI version to v0.3.21
comfyanonymous Mar 5, 2025
872780d
fix: ltxv crop guides works with 0 keyframes (#7085)
kvochko Mar 5, 2025
a80bc82
Partially revert last commit.
comfyanonymous Mar 5, 2025
76739c2
Revert "Partially revert last commit."
comfyanonymous Mar 5, 2025
8895199
Bump ComfyUI version to v0.3.22
comfyanonymous Mar 5, 2025
52b3469
[NodeDef] Explicitly add control_after_generate to seed/noise_seed (#…
huchenlei Mar 5, 2025
c1909f3
Better argument handling of front-end-root (#7043)
silveroxides Mar 5, 2025
5d84607
Add type hint for FileLocator (#6968)
huchenlei Mar 5, 2025
85ef295
Make applying embeddings more efficient.
comfyanonymous Mar 5, 2025
0bef826
Support llava clip vision model.
comfyanonymous Mar 6, 2025
29a70ca
Support HunyuanVideo image to video model.
comfyanonymous Mar 6, 2025
0124be4
ComfyUI version v0.3.23
comfyanonymous Mar 6, 2025
dfa36e6
Fix some things breaking when embeddings fail to apply.
comfyanonymous Mar 6, 2025
a131258
ComfyUI version v0.3.24
comfyanonymous Mar 6, 2025
1650cda
Fixed: Incorrect guide message for missing frontend. (#7105)
ltdrdata Mar 6, 2025
e62d72e
Typo in node_typing.py (#7092)
JettHu Mar 6, 2025
e147415
Support fp8_scaled diffusion models that don't use fp8 matrix mult.
comfyanonymous Mar 7, 2025
70e15fd
No need for scale_input when fp8 matrix mult is disabled.
comfyanonymous Mar 7, 2025
11b1f27
Set WAN default compute dtype to fp16.
comfyanonymous Mar 7, 2025
4ab1875
Add .bat file to nightly package to run with fp16 accumulation.
comfyanonymous Mar 7, 2025
5dbd250
Update nightly instructions in readme.
comfyanonymous Mar 7, 2025
d60fe0a
Reduce size of nightly package.
comfyanonymous Mar 7, 2025
ebbb920
Add back taesd to nightly package.
comfyanonymous Mar 7, 2025
84cc9cb
Update frontend to 1.11.8 (#7119)
Mar 8, 2025
c3d9cc4
Print the frontend version in the log.
comfyanonymous Mar 8, 2025
be4e760
Add an image_interleave option to the Hunyuan image to video encode n…
comfyanonymous Mar 8, 2025
29832b3
Warn if frontend package is older than the one in requirements.txt
comfyanonymous Mar 8, 2025
0952569
Fix stable cascade VAE on some lowvram machines.
comfyanonymous Mar 9, 2025
7395b0c
Support new hunyuan video i2v model.
comfyanonymous Mar 9, 2025
2bc4b59
ComfyUI version v0.3.25
comfyanonymous Mar 9, 2025
528d1b3
When cached_hook_patches contain weights for hooks, only use hook_bac…
Kosinkadink Mar 9, 2025
9aac21f
Fix issues with new hunyuan img2vid model and bumb version to v0.3.26
comfyanonymous Mar 9, 2025
a73410a
remove overrides
christian-byrne Mar 9, 2025
e1da98a
remove unused params (#6931)
jtydhr88 Mar 9, 2025
6f8e766
Prevent custom nodes from accidentally overwriting global modules.
comfyanonymous Mar 10, 2025
67c7184
ltxv: relax frame_idx divisibility for single frames. (#7146)
kvochko Mar 10, 2025
35e2dcf
Hack to fix broken manager.
comfyanonymous Mar 10, 2025
b779349
Temporarily revert fix to give time for people to update their nodes.
comfyanonymous Mar 10, 2025
1f138dd
Only check frontend package if using default frontend
Mar 10, 2025
6f6349b
nit
Mar 10, 2025
7946049
nit
Mar 10, 2025
db9f2a3
Fix unit test
Mar 10, 2025
65ea778
nit
Mar 10, 2025
ca8efab
Support control loras on Wan.
comfyanonymous Mar 10, 2025
cfbe4b4
Access package version
huchenlei Mar 11, 2025
9468976
Merge pull request #7179 from comfyanonymous/ignore_fe_package
comfyanonymous Mar 11, 2025
bc219a6
Merge pull request #7143 from christian-byrne/fix-remote-widget-node
comfyanonymous Mar 11, 2025
2330754
Fix error saving some latents.
comfyanonymous Mar 11, 2025
01015bf
Add er_sde sampler (#7187)
chaObserv Mar 12, 2025
d2a0fb6
Add unwrap widget value support (#7197)
Mar 12, 2025
f441125
Repeat frontend version warning at the end.
comfyanonymous Mar 12, 2025
3fc688a
Ensure the extra_args in dpmpp sde series (#7204)
chaObserv Mar 12, 2025
9b6cd9b
[NodeDef] Add documentation on multi_select input option (#7212)
Mar 12, 2025
52e566d
Add codeowner for comfy/comfy_types (#7213)
Mar 12, 2025
299436c
Print mac version.
comfyanonymous Mar 13, 2025
35504e2
Fix.
comfyanonymous Mar 13, 2025
7aceb9f
Add --use-flash-attention flag. (#7223)
FeepingCreature Mar 14, 2025
9c98c63
Tolerate missing `@torch.library.custom_op` (#7234)
FeepingCreature Mar 14, 2025
6a0daa7
Make the SkipLayerGuidanceDIT node work on WAN.
comfyanonymous Mar 14, 2025
a2448fc
Remove useless code.
comfyanonymous Mar 14, 2025
c624c29
Update frontend to 1.12.9 (#7236)
Mar 14, 2025
7ebd808
hotfix fe (#7244)
christian-byrne Mar 15, 2025
3c3988d
Show a better error message if the VAE is invalid.
comfyanonymous Mar 15, 2025
55a1b09
Allow loading diffusion model files with the "Load Checkpoint" node.
comfyanonymous Mar 15, 2025
fd52971
Guard the edge cases of noise term in er_sde (#7265)
chaObserv Mar 16, 2025
2e24a15
Call unpatch_hooks at the start of ModelPatcher.partially_unload (#7253)
Kosinkadink Mar 16, 2025
e8e990d
Cleanup code.
comfyanonymous Mar 16, 2025
6dc7b0b
Add support for giant dinov2 image encoder.
comfyanonymous Mar 17, 2025
50614f1
Fix regression with clip vision.
comfyanonymous Mar 17, 2025
3b19fc7
Allow disabling pe in flux code for some other models.
comfyanonymous Mar 18, 2025
11f1b41
Initial Hunyuan3Dv2 implementation.
comfyanonymous Mar 19, 2025
32ca080
Fix orientation of hunyuan 3d model.
comfyanonymous Mar 19, 2025
3872b43
A few fixes for the hunyuan3d models.
comfyanonymous Mar 20, 2025
8b9ce4e
Update frontend to 1.13 (#7331)
Mar 21, 2025
a4a956d
Add backend primitive nodes (#7328)
Mar 21, 2025
0956107
Nodes to convert images to YUV and back.
comfyanonymous Mar 21, 2025
0cf2274
Update frontend to 1.14 (#7343)
Mar 21, 2025
83e839a
Native LotusD Implementation (#7125)
thot-experiment Mar 21, 2025
d9fa9d3
Automatically set the right sampling type for lotus.
comfyanonymous Mar 21, 2025
2206246
support output normal and lineart once (#7290)
jtydhr88 Mar 21, 2025
ce9b084
[nit] Format error strings (#7345)
Mar 21, 2025
75c1c75
ComfyUI version v0.3.27
comfyanonymous Mar 22, 2025
e471c72
Fallback to pytorch attention if sage attention fails.
comfyanonymous Mar 22, 2025
581a999
Add model merging node for WAN 2.1
comfyanonymous Mar 23, 2025
eade155
Add Hunyuan3D to readme.
comfyanonymous Mar 24, 2025
8edc1f4
Support more float8 types.
comfyanonymous Mar 25, 2025
84fdaf7
Add CFGZeroStar node.
comfyanonymous Mar 26, 2025
3661c83
Support the WAN 2.1 fun control models.
comfyanonymous Mar 26, 2025
0a1f886
Add WanFunInpaintToVideo node for the Wan fun inpaint models.
comfyanonymous Mar 27, 2025
a40fcfc
Update frontend to 1.14.6 (#7416)
Mar 28, 2025
2d17d89
Don't error if wan concat image has extra channels.
comfyanonymous Mar 28, 2025
832fc02
ltxv: fix preprocessing exception when compression is 0. (#7431)
michaellightricks Mar 30, 2025
a3100c8
Remove useless code.
comfyanonymous Mar 30, 2025
0b4584c
Fix latent composite node not working when source has alpha.
comfyanonymous Mar 31, 2025
548457b
Fix alpha channel mismatch on destination in ImageCompositeMasked
comfyanonymous Apr 1, 2025
301e26b
Add option to store TE in bf16 (#7461)
bvhari Apr 1, 2025
2b71aab
User missing (#7439)
lerignoux Apr 1, 2025
ab54133
Fix comment.
comfyanonymous Apr 1, 2025
2222cf6
MLU memory optimization (#7470)
BiologicalExplosion Apr 2, 2025
3d2e3a6
Fix alpha image issue in more nodes.
comfyanonymous Apr 2, 2025
721253c
Fix problem.
comfyanonymous Apr 4, 2025
3a100b9
Disable partial offloading of audio VAE.
comfyanonymous Apr 5, 2025
89e4ea0
Add activations_shape info in UNet models (#7482)
Slickytail Apr 5, 2025
3bfe4e5
Support 512 siglip model.
comfyanonymous Apr 5, 2025
49b732a
Show a proper error to the user when a vision model file is invalid.
comfyanonymous Apr 7, 2025
70d7242
Support the wan fun reward loras.
comfyanonymous Apr 7, 2025
2f7d815
Show the user an error when the controlnet file is invalid.
comfyanonymous Apr 8, 2025
cc7e023
handle palette mode in loadimage node (#7539)
christian-byrne Apr 9, 2025
8c6b9f4
Prevent custom nodes from accidentally overwriting global modules. (#…
comfyanonymous Apr 9, 2025
e8345a9
Align /prompt response schema (#7423)
Apr 9, 2025
fe29739
add VoxelToMesh node w/ surfacenet meshing (#7446)
thot-experiment Apr 9, 2025
ab31b64
Make "surface net" the default in the VoxelToMesh node.
comfyanonymous Apr 9, 2025
e346d85
Add prepare_sampling wrapper allowing custom nodes to more accurately…
Kosinkadink Apr 9, 2025
a26da20
Fix custom nodes not importing when path contains a dot.
comfyanonymous Apr 10, 2025
98bdca4
Deprecate InputTypeOptions.defaultInput (#7551)
Apr 10, 2025
8ad7477
dont cache templates index (#7569)
christian-byrne Apr 11, 2025
f9207c6
Update frontend to 1.15 (#7564)
Apr 11, 2025
ed945a1
Dependency Aware Node Caching for low RAM/VRAM machines (#7509)
Chargeuk Apr 11, 2025
22ad513
Refactor node cache code to more easily add other types of cache.
comfyanonymous Apr 11, 2025
73ecb75
filter image files in load image dropdown (#7573)
christian-byrne Apr 12, 2025
1714a4c
Add CublasOps support (#7574)
catboxanon Apr 12, 2025
c87a06f
Update `filter_files_content_types` to support filtering 3d models (#…
christian-byrne Apr 12, 2025
e51d9ba
Add SEEDS (stage 2 & 3 DP) sampler (#7580)
chaObserv Apr 12, 2025
bb495cc
Print python version in log.
comfyanonymous Apr 12, 2025
9ee6ca9
add_optimalsteps (#7584)
bebebe666 Apr 13, 2025
a14c2fc
ComfyUI version v0.3.28
comfyanonymous Apr 13, 2025
8a43811
add RMSNorm to comfy.ops
comfyanonymous Apr 14, 2025
3e8155f
More flexible long clip support.
comfyanonymous Apr 15, 2025
6fc5dbd
Cleanup.
comfyanonymous Apr 15, 2025
9ad792f
Basic support for hidream i1 model.
comfyanonymous Apr 15, 2025
b4dc03a
Fix issue on old torch.
comfyanonymous Apr 16, 2025
cce1d91
[Type] Mark input options NotRequired (#7614)
Apr 16, 2025
f00f340
Reuse code from flux model.
comfyanonymous Apr 16, 2025
9899d18
Limit T5 to 128 tokens for HiDream: #7620
comfyanonymous Apr 16, 2025
1fc00ba
Make hidream work with any latent resolution.
comfyanonymous Apr 16, 2025
0d720e4
Don't hardcode length of context_img in wan code.
comfyanonymous Apr 17, 2025
c144299
Support loading WAN FLF model.
comfyanonymous Apr 17, 2025
dbcfd09
Set default context_img_len to 257
comfyanonymous Apr 17, 2025
eba7a25
Add WanFirstLastFrameToVideo node to use the new model.
comfyanonymous Apr 17, 2025
05d5a75
Update frontend to 1.16 (Install templates as pip package) (#7623)
christian-byrne Apr 17, 2025
93292bc
ComfyUI version 0.3.29
comfyanonymous Apr 17, 2025
19373ae
Add FreSca node (#7631)
bvhari Apr 17, 2025
3dc240d
Make fresca work on multi dim.
comfyanonymous Apr 17, 2025
880c205
Add hidream to readme.
comfyanonymous Apr 17, 2025
55822fa
[Type] Annotate graph.get_input_info (#7386)
Apr 18, 2025
34e06bf
add support to output camera state (#7582)
jtydhr88 Apr 18, 2025
2383a39
Replace CLIPType if with getattr (#7589)
city96 Apr 18, 2025
7ecd5e9
Increase freq_cutoff in FreSca node.
comfyanonymous Apr 18, 2025
f3b09b9
[BugFix] Update frontend to 1.16.9 (#7655)
Apr 18, 2025
dc300a4
Add wanfun template workflows. (#7678)
robinjhuang Apr 19, 2025
636d4bf
Fix hard crash when the spiece tokenizer path is bad.
comfyanonymous Apr 19, 2025
4486b0d
Update CODEOWNERS and add christian-byrne (#7663)
yoland68 Apr 19, 2025
f43e1d7
Hidream: Allow loading hidream text encoders in CLIPLoader and DualCL…
power88 Apr 19, 2025
fd27494
Use empty t5 of size 128 for hidream, seems to give closer results.
comfyanonymous Apr 19, 2025
2c735c1
Slightly better fix for #7687
comfyanonymous Apr 20, 2025
11b72c9
CLIPTextEncodeHiDream. (#7703)
comfyanonymous Apr 21, 2025
b6fd3ff
Populate AUTH_TOKEN_COMFY_ORG hidden input (#7709)
Apr 21, 2025
ce22f68
Support for WAN VACE preview model. (#7711)
comfyanonymous Apr 21, 2025
5d51794
Add node type hint for socketless option (#7714)
webfiltered Apr 21, 2025
9d57b8a
Update nodes_primitive.py (#7716)
Amorano Apr 21, 2025
5d0d4ee
Add strength control for vace. (#7717)
comfyanonymous Apr 21, 2025
1f3fba2
Unified Weight Adapter system for better maintainability and future f…
KohakuBlueleaf Apr 22, 2025
3ab231f
Fix issue with WAN VACE implementation. (#7724)
comfyanonymous Apr 22, 2025
966c43c
Add OFT/BOFT algorithm in weight adapter (#7725)
KohakuBlueleaf Apr 22, 2025
454a635
upstream MaskPreview from ComfyUI_essentials (#7719)
jtydhr88 Apr 22, 2025
a8f63c0
Support dora_scale on both axis (#7727)
KohakuBlueleaf Apr 22, 2025
2d6805c
Add option for using fp8_e8m0fnu for model weights. (#7733)
comfyanonymous Apr 22, 2025
92cdc69
Replace aom-av1 with svt-av1 for saving webm videos, use preset 6 + y…
alexheretic Apr 22, 2025
0738e4e
[API nodes] Add backbone for supporting api nodes in ComfyUI (#7745)
robinjhuang Apr 23, 2025
5526152
Fix for dino lowvram. (#7748)
comfyanonymous Apr 23, 2025
21a11ef
Pytorch stable 2.7 is out and support cu128 (#7749)
comfyanonymous Apr 23, 2025
7eaff81
fp16 accumulation can now be enabled on the stable package. (#7750)
comfyanonymous Apr 23, 2025
3eaad05
Lower size of release package. (#7751)
comfyanonymous Apr 23, 2025
154f291
Lower size of release package more. (#7754)
comfyanonymous Apr 23, 2025
dea1c74
Add support for API Nodes in ComfyUI. (#7726)
robinjhuang Apr 23, 2025
e8ddc2b
[BugFix] Update frontend to 1.17.10 (#7762)
webfiltered Apr 23, 2025
2c1d686
implement multi image prompting for gpt-image-1 and fix transparency …
thot-experiment Apr 23, 2025
188b383
change timeout to 7 days (#7765)
thot-experiment Apr 23, 2025
11b68eb
[BugFix] Update frontend to 1.17.11 (#7766)
webfiltered Apr 23, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
55 changes: 42 additions & 13 deletions .ci/update_windows/update.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,17 +28,17 @@ def pull(repo, remote_name='origin', branch='master'):

if repo.index.conflicts is not None:
for conflict in repo.index.conflicts:
print('Conflicts found in:', conflict[0].path)
print('Conflicts found in:', conflict[0].path) # noqa: T201
raise AssertionError('Conflicts, ahhhhh!!')

user = repo.default_signature
tree = repo.index.write_tree()
commit = repo.create_commit('HEAD',
user,
user,
'Merge!',
tree,
[repo.head.target, remote_master_id])
repo.create_commit('HEAD',
user,
user,
'Merge!',
tree,
[repo.head.target, remote_master_id])
# We need to do this or git CLI will think we are still merging.
repo.state_cleanup()
else:
Expand All @@ -49,18 +49,18 @@ def pull(repo, remote_name='origin', branch='master'):
repo = pygit2.Repository(repo_path)
ident = pygit2.Signature('comfyui', 'comfy@ui')
try:
print("stashing current changes")
print("stashing current changes") # noqa: T201
repo.stash(ident)
except KeyError:
print("nothing to stash")
print("nothing to stash") # noqa: T201
backup_branch_name = 'backup_branch_{}'.format(datetime.today().strftime('%Y-%m-%d_%H_%M_%S'))
print("creating backup branch: {}".format(backup_branch_name))
print("creating backup branch: {}".format(backup_branch_name)) # noqa: T201
try:
repo.branches.local.create(backup_branch_name, repo.head.peel())
except:
pass

print("checking out master branch")
print("checking out master branch") # noqa: T201
branch = repo.lookup_branch('master')
if branch is None:
ref = repo.lookup_reference('refs/remotes/origin/master')
Expand All @@ -72,10 +72,29 @@ def pull(repo, remote_name='origin', branch='master'):
ref = repo.lookup_reference(branch.name)
repo.checkout(ref)

print("pulling latest changes")
print("pulling latest changes") # noqa: T201
pull(repo)

print("Done!")
if "--stable" in sys.argv:
def latest_tag(repo):
versions = []
for k in repo.references:
try:
prefix = "refs/tags/v"
if k.startswith(prefix):
version = list(map(int, k[len(prefix):].split(".")))
versions.append((version[0] * 10000000000 + version[1] * 100000 + version[2], k))
except:
pass
versions.sort()
if len(versions) > 0:
return versions[-1][1]
return None
latest_tag = latest_tag(repo)
if latest_tag is not None:
repo.checkout(latest_tag)

print("Done!") # noqa: T201

self_update = True
if len(sys.argv) > 2:
Expand Down Expand Up @@ -115,3 +134,13 @@ def file_size(f):
shutil.copy(repo_req_path, req_path)
except:
pass


stable_update_script = os.path.join(repo_path, ".ci/update_windows/update_comfyui_stable.bat")
stable_update_script_to = os.path.join(cur_path, "update_comfyui_stable.bat")

try:
if not file_size(stable_update_script_to) > 10:
shutil.copy(stable_update_script, stable_update_script_to)
except:
pass
8 changes: 8 additions & 0 deletions .ci/update_windows/update_comfyui_stable.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
@echo off
..\python_embeded\python.exe .\update.py ..\ComfyUI\ --stable
if exist update_new.py (
move /y update_new.py update.py
echo Running updater again since it got updated.
..\python_embeded\python.exe .\update.py ..\ComfyUI\ --skip_self_update --stable
)
if "%~1"=="" pause
2 changes: 1 addition & 1 deletion .ci/windows_base_files/README_VERY_IMPORTANT.txt
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ run_cpu.bat

IF YOU GET A RED ERROR IN THE UI MAKE SURE YOU HAVE A MODEL/CHECKPOINT IN: ComfyUI\models\checkpoints

You can download the stable diffusion 1.5 one from: https://huggingface.co/runwayml/stable-diffusion-v1-5/blob/main/v1-5-pruned-emaonly.ckpt
You can download the stable diffusion 1.5 one from: https://huggingface.co/Comfy-Org/stable-diffusion-v1-5-archive/blob/main/v1-5-pruned-emaonly-fp16.safetensors


RECOMMENDED WAY TO UPDATE:
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
.\python_embeded\python.exe -s ComfyUI\main.py --windows-standalone-build --fast fp16_accumulation
pause
2 changes: 2 additions & 0 deletions .ci/windows_nightly_base_files/run_nvidia_gpu_fast.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
.\python_embeded\python.exe -s ComfyUI\main.py --windows-standalone-build --fast
pause
2 changes: 2 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
/web/assets/** linguist-generated
/web/** linguist-vendored
3 changes: 3 additions & 0 deletions .github/ISSUE_TEMPLATE/config.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
blank_issues_enabled: true
contact_links:
- name: ComfyUI Frontend Issues
url: https://github.com/Comfy-Org/ComfyUI_frontend/issues
about: Issues related to the ComfyUI frontend (display issues, user interaction bugs), please go to the frontend repo to file the issue
- name: ComfyUI Matrix Space
url: https://app.element.io/#/room/%23comfyui_space%3Amatrix.org
about: The ComfyUI Matrix Space is available for support and general discussion related to ComfyUI (Matrix is like Discord but open source).
Expand Down
18 changes: 17 additions & 1 deletion .github/workflows/pullrequest-ci-run.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
runner_label: [self-hosted, Linux]
flags: ""
- os: windows
runner_label: [self-hosted, win]
runner_label: [self-hosted, Windows]
flags: ""
runs-on: ${{ matrix.runner_label }}
steps:
Expand All @@ -35,3 +35,19 @@ jobs:
torch_version: ${{ matrix.torch_version }}
google_credentials: ${{ secrets.GCS_SERVICE_ACCOUNT_JSON }}
comfyui_flags: ${{ matrix.flags }}
use_prior_commit: 'true'
comment:
if: ${{ github.event.label.name == 'Run-CI-Test' }}
runs-on: ubuntu-latest
permissions:
pull-requests: write
steps:
- uses: actions/github-script@v6
with:
script: |
github.rest.issues.createComment({
issue_number: context.issue.number,
owner: context.repo.owner,
repo: context.repo.repo,
body: '(Automated Bot Message) CI Tests are running, you can view the results at https://ci.comfy.org/?branch=${{ github.event.pull_request.number }}%2Fmerge'
})
12 changes: 6 additions & 6 deletions .github/workflows/pylint.yml → .github/workflows/ruff.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ name: Python Linting
on: [push, pull_request]

jobs:
pylint:
name: Run Pylint
ruff:
name: Run Ruff
runs-on: ubuntu-latest

steps:
Expand All @@ -16,8 +16,8 @@ jobs:
with:
python-version: 3.x

- name: Install Pylint
run: pip install pylint
- name: Install Ruff
run: pip install ruff

- name: Run Pylint
run: pylint --rcfile=.pylintrc $(find . -type f -name "*.py")
- name: Run Ruff
run: ruff check .
10 changes: 5 additions & 5 deletions .github/workflows/stable-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,12 @@ on:
description: 'CUDA version'
required: true
type: string
default: "121"
default: "126"
python_minor:
description: 'Python minor version'
required: true
type: string
default: "11"
default: "12"
python_patch:
description: 'Python patch version'
required: true
Expand All @@ -36,7 +36,7 @@ jobs:
- uses: actions/checkout@v4
with:
ref: ${{ inputs.git_tag }}
fetch-depth: 0
fetch-depth: 150
persist-credentials: false
- uses: actions/cache/restore@v4
id: cache
Expand Down Expand Up @@ -70,7 +70,7 @@ jobs:
cd ..

git clone --depth 1 https://github.com/comfyanonymous/taesd
cp taesd/*.pth ./ComfyUI_copy/models/vae_approx/
cp taesd/*.safetensors ./ComfyUI_copy/models/vae_approx/

mkdir ComfyUI_windows_portable
mv python_embeded ComfyUI_windows_portable
Expand All @@ -85,7 +85,7 @@ jobs:

cd ..

"C:\Program Files\7-Zip\7z.exe" a -t7z -m0=lzma2 -mx=8 -mfb=64 -md=32m -ms=on -mf=BCJ2 ComfyUI_windows_portable.7z ComfyUI_windows_portable
"C:\Program Files\7-Zip\7z.exe" a -t7z -m0=lzma2 -mx=9 -mfb=128 -md=512m -ms=on -mf=BCJ2 ComfyUI_windows_portable.7z ComfyUI_windows_portable
mv ComfyUI_windows_portable.7z ComfyUI/ComfyUI_windows_portable_nvidia.7z

cd ComfyUI_windows_portable
Expand Down
21 changes: 21 additions & 0 deletions .github/workflows/stale-issues.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: 'Close stale issues'
on:
schedule:
# Run daily at 430 am PT
- cron: '30 11 * * *'
permissions:
issues: write

jobs:
stale:
runs-on: ubuntu-latest
steps:
- uses: actions/stale@v9
with:
stale-issue-message: "This issue is being marked stale because it has not had any activity for 30 days. Reply below within 7 days if your issue still isn't solved, and it will be left open. Otherwise, the issue will be closed automatically."
days-before-stale: 30
days-before-close: 7
stale-issue-label: 'Stale'
only-labels: 'User Support'
exempt-all-assignees: true
exempt-all-milestones: true
76 changes: 0 additions & 76 deletions .github/workflows/test-browser.yml

This file was deleted.

4 changes: 2 additions & 2 deletions .github/workflows/test-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
strategy:
fail-fast: false
matrix:
python-version: ["3.8", "3.9", "3.10", "3.11"]
python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"]
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
Expand All @@ -28,4 +28,4 @@ jobs:
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
pip install -r requirements.txt
Loading
Loading