111 Commits
Author SHA1 Message Date
chflame163 51ee6a999b Merge pull request #150 from hben35096/main
Reorder execution providers in model initialization
2026-09-18 10:07:42 +08:00
hben35096 5f68ae0de7 Reorder execution providers in model initialization
When TensorRT libraries are missing, forcibly using the TensorRT Execution Provider can crash the entire ComfyUI Python process.
2026-09-18 09:07:50 +08:00
chflame163 7b678b401a Revert "update readme, remove debug info from florence2_ultra.py"
This reverts commit 4939ec791a.
2026-04-08 12:40:11 +08:00
chflame163 c4a755fd57 Revert "Merge pull request #146 from billwen/claude/magical-feynman"
This reverts commit 706015a385, reversing
changes made to 2b020b7430.
2026-04-08 12:40:01 +08:00
chflame163 4939ec791a update readme, remove debug info from florence2_ultra.py 2026-04-08 12:27:27 +08:00
chflame163 706015a385 Merge pull request #146 from billwen/claude/magical-feynman
Fix Florence2 config compatibility with transformers 5.x
2026-04-08 12:22:58 +08:00
Gang WenandClaude Opus 4.6 acbe51c5a2 Use BartTokenizerFast instead of AutoTokenizer to avoid config loading
AutoTokenizer tries to load the model config to detect tokenizer type,
which fails because transformers 5.x CONFIG_MAPPING doesn't know
florence2_language. Use BartTokenizerFast directly with tokenizer.json
fallback for models that use different tokenizer formats.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-04-07 20:03:24 +02:00
Gang WenandClaude Opus 4.6 1130a5f117 Fix tokenizer loading for models with incompatible added_tokens format
When AutoTokenizer fails (e.g. Florence-2-Flux-Large), fall back to
loading tokenizer.json directly via the tokenizers library and wrap
it with PreTrainedTokenizerFast, extracting special tokens from
tokenizer_config.json manually.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-04-07 20:01:28 +02:00
Gang WenandClaude Opus 4.6 aa016d91de Add slow tokenizer fallback for models with incompatible added_tokens
Some Florence2 variants (e.g. Florence-2-Flux-Large) have added_tokens
in a format that fast tokenizers in transformers 5.x cannot parse.
Fall back to slow tokenizer on TypeError.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-04-07 19:59:26 +02:00
Gang WenandClaude Opus 4.6 8d1bfd3874 Use AutoTokenizer instead of BartTokenizerFast for broader model support
Some Florence2 variants (e.g. Florence-2-Flux-Large) use a RoBERTa
tokenizer. AutoTokenizer auto-detects the correct tokenizer class.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-04-07 19:57:01 +02:00
Gang WenandClaude Opus 4.6 caafe797f7 Fix image processor not resizing: filter None kwargs in Florence2Processor
In transformers 5.x, passing do_resize=None to CLIPImageProcessor
disables resizing instead of using the configured default. Filter out
None values so the processor uses its init settings (768x768 resize).

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-04-07 19:33:50 +02:00
Gang WenandClaude Opus 4.6 6b60e25cdc Add debug logging for pixel_values shape in run_example
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-04-07 19:31:12 +02:00
Gang WenandClaude Opus 4.6 21549b7bfe Fix florence2_models imports: add __init__.py and use relative imports
The florence2_models directory needs an __init__.py to be a proper
Python package, and imports from py/florence2_ultra.py need to use
relative imports (..florence2_models) since it's a sibling subpackage.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-04-07 19:27:39 +02:00
Gang WenandClaude Opus 4.6 fd34c3d5d8 Add debug logging to Florence2 model loading path
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-04-07 08:20:03 +02:00
Gang WenandClaude Opus 4.6 810e34d859 Add transformers 5.x model loading path for Florence2
Uses local Florence2 modules with accelerate-based weight loading and
a custom Florence2Processor for transformers >= 5.0.0, while keeping
the existing loading path for older versions.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-04-07 08:15:29 +02:00
Gang Wen c8b2ec0b59 fix again 2026-04-06 22:06:50 +02:00
Gang Wen e1dbbca003 added fix 2026-04-06 22:01:39 +02:00
Gang Wen d55bd6acbb Revert "Fix Florence2 config compatibility with transformers 5.x"
This reverts commit 31ab0275de.
2026-04-06 21:34:45 +02:00
Gang WenandClaude Opus 4.6 31ab0275de Fix Florence2 config compatibility with transformers 5.x
In transformers 5.x, forced_bos_token_id was moved from PretrainedConfig
to GenerationConfig. Florence2's custom config accesses this attribute
during init, causing an AttributeError that prevents model loading and
leads to a NoneType crash when the processor is later called.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-04-06 21:26:57 +02:00
chflame163 2b020b7430 Merge pull request #145 from facok/patch-1
fix BBoxJoin merging bboxes at image-index level instead of per-image
2026-03-30 09:01:14 +08:00
facok d91c938fdd fix BBoxJoin merging bboxes at image-index level instead of per-image
The old code used list.extend() on the outer (image-index) dimension,causing bboxes from different inputs to be treated as separate images rather than merged into the same image's bbox list.
2026-03-30 07:42:43 +08:00
chflame163 6292ad867e Merge pull request #142 from artokun/fix/transformers5-bertwarper-compat
Fix GroundingDINO bertwarper for transformers 5.x + PyTorch 2.9+
2026-02-22 18:32:26 +08:00
Arthur R LongbottomandClaude Opus 4.6 2130085440 Fix GroundingDINO bertwarper for transformers 5.x + PyTorch 2.9+
transformers 5.x introduced two breaking changes that affect the
bundled GroundingDINO BertModelWarper:

1. `BertModel.get_head_mask()` was removed. Added a standalone
   `_get_head_mask()` fallback with a `hasattr` check so both
   transformers 4.x and 5.x work.

2. `BertModel.get_extended_attention_mask()` changed its 3rd
   positional argument from `device` to `dtype`. The old call-site
   passes a `torch.device`, which newer transformers interprets as
   `dtype=torch.device` → TypeError. Replaced with a standalone
   `_get_extended_attention_mask()` static method that also handles
   PyTorch 2.9's prohibition of `1.0 - bool_tensor` by explicitly
   casting to float32 first.

Fixes #140

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-21 10:55:47 -08:00
chflame163 f0fe35bd6d fix import issue on Transformers 5.x 2026-01-30 16:31:44 +08:00
chflame163 f16192bfa7 Ultra nodes support vitmatte-base-composition-1k 2026-01-30 14:31:25 +08:00
chflame163 c31de7030c MediapipeFacialSegment node support face_landmarker to compatible Python 3.12 and 3.13 2026-01-22 10:11:17 +08:00
chflame163 42f9dbae84 update imagefunc.py 2026-01-08 17:55:19 +08:00
chflame163 86cc56bbcf fix bug of converting BF16 tensor to pillow image 2025-12-29 15:52:17 +08:00
chflame163 dc3ffd8953 Merge pull request #134 from comfyui-wiki/Update-project-name
Update project name
2025-12-26 21:53:40 +08:00
chflame163 c79949d69d Merge pull request #133 from ihmily/main
Fix mask broadcasting error for MediaPipe ≥0.10.30
2025-12-26 21:51:28 +08:00
ComfyUI Wiki 3c3bb10847 Update project name 2025-12-26 21:42:09 +08:00
ihmily 67adbfdcae Fix mask broadcasting error for MediaPipe ≥0.10.30 2025-12-24 17:03:20 +08:00
chflame163 09a7701ef1 Merge pull request #131 from comfyui-wiki/revert-workflow-changes
Revert workflow changes and bump version to 2.0.32
2025-12-24 15:03:58 +08:00
ComfyUI Wiki 6a4306b7fd Bump version to 2.0.32 2025-12-24 06:57:20 +00:00
ComfyUI Wiki 1528516a21 Revert workflow changes 2025-12-24 06:56:55 +00:00
chflame163 c64b66632d Bump version to 2.0.31 2025-12-24 14:46:19 +08:00
chflame163 8d4c4285d4 Merge pull request #129 from comfyui-wiki/update-workflow
更新自动发布工作流,只在版本变更时执行发布
2025-12-23 22:37:21 +08:00
ComfyUI Wiki a0adff4148 Only run the workflow when the version is bumped. 2025-12-23 22:31:53 +08:00
chflame163 dc561e53c3 Merge pull request #128 from comfyui-wiki/Add-icon
Add icon
2025-12-23 21:41:23 +08:00
ComfyUI Wiki 07c235962e Add icon 2025-12-23 21:39:32 +08:00
chflame163 6e21d31260 Merge pull request #127 from comfyui-wiki/Bump-version-to-2.0.30
Bump version to 2.0.30
2025-12-23 21:32:34 +08:00
ComfyUI Wiki 6e9dbf37f2 Bump version to 2.0.30 2025-12-23 21:31:31 +08:00
chflame163 2e75c4c8cd Merge pull request #126 from comfyui-wiki/Bump-version-to-2.0.29
Bump version to 2.0.29
2025-12-23 21:19:52 +08:00
ComfyUI Wiki 2fb46f06b8 Bump version to 2.0.29 2025-12-23 21:19:07 +08:00
chflame163 deceda8f8a Merge pull request #125 from comfyui-wiki/feat/add-node-publish-workflow
Add auto-publish workflow
2025-12-23 21:17:55 +08:00
ComfyUI Wiki 7aa2777c73 Add auto-publish workflow 2025-12-23 21:14:42 +08:00
chflame163 18435772d1 fix bug of Lama node 2025-12-11 21:28:45 +08:00
chflame163 1a1928f5ae fix florence can not run with high version of TRANSFROMERS 2025-12-11 20:09:10 +08:00
chflame163 d79adcd6d2 Merge pull request #121 from jmjoy/feat
Enhance YoloV8Detect node with additional parameters for detection
2025-11-07 17:44:04 +08:00
jmjoy 49895abbc7 Enhance YoloV8Detect node with additional parameters for detection configuration 2025-11-07 14:44:05 +08:00