Commit Graph
17 Commits
Author SHA1 Message Date
John B eef6d5abae Add natural language formatting for T5-XXL
This commit builds on PR #1 (independence + debug fixes) and adds natural
language formatting to improve T5-XXL prompt quality.

Changes:
- Added strip_weights_for_natural_language() method to remove weights from T5-XXL
- Added _build_natural_language_sentence() helper for consistent templates
- Integrated photo_type into opening sentences (e.g., 'A birds eye view photography of...')
- Converted roles and hairstyles to natural language sentences
- Converted clothing to sentence format ('Dressed in...')
- Converted composition and pose to complete sentences
- Grouped physical features into three coherent sentences:
  - Face, eyes, and expression ('They have...')
  - Skin, age, and ethnicity ('The subject has...')
  - Hair, accessories, and markings ('Notable features include...')
- Added device description at end ('The image was captured using a...')
- Fixed photo_type CLIP_L re-fetch bug by reusing same value from T5-XXL
- Enhanced clean_prompt_string() with better period and spacing handling
- Updated RETURN_TYPES to return 6 outputs: prompt, t5xxl, clip_l, clip_g, seed, debug_info

Benefits:
- T5-XXL receives natural language matching its training
- CLIP_L and CLIP_G retain keyword format with weights
- More consistent results (no RNG re-fetch issues)
- Better readability and debugging
2025-11-19 13:21:07 -08:00
John B f7c4e137c4 Fix category independence and add debug output (fixes #13)
This commit addresses issue #13 where several categories were not loading
or were dependent on other field values.

Changes:
- Made facial_hair and makeup_styles work independently (no longer require
  gender-specific subjects)
- Made artist, photographer, and digital_artform always available (removed
  conditional artform dependency)
- Added debug_info output (6th return value) showing which categories are
  used vs not used with specific reasons
- Updated RETURN_TYPES to include new debug_info STRING output

These changes ensure all categories can be used independently as intended,
resolving the issue where "only a few of the categories actually load anything".
2025-11-19 12:41:30 -08:00
fairy-root 1244eb9323 Fixed an error where you're unable to load prompt accross various drop-downs... 2025-04-22 03:20:41 +01:00
FairyRoot d31942a508 Merge pull request #11 from ComfyNodePRs/update-publish-yaml
Update Github Action for Publishing to Comfy Registry
2025-03-27 21:47:56 +01:00
fairy-root 8b8c0da740 Updated and sorted all data files... 2025-02-28 01:39:43 +01:00
fairy-root f16e91d7d0 Fixed IS_CHANGED() function error 2025-02-24 22:27:25 +01:00
fairy-root d7e37979c7 Updated the alphabetical order. 2025-02-23 23:31:17 +01:00
snomiao 149f091ac3 chore(publish): update GitHub Actions workflow for node publishing
- Add permissions for writing issues
- Update condition to check repository owner instead of fork status
- Change action version from `main` to `v1` for stability and consistency
2025-01-25 07:19:52 +00:00
fairy-root d0f7a02378 Updated an issue with duplicate data types 2024-08-26 00:16:05 +01:00
FairyRoot d47f5d67a9 Update pyproject.toml 2024-08-16 23:22:27 +01:00
FairyRoot 92a71136fc Merge pull request #1 from ComfyNodePRs/publish
Add Github Action for Publishing to Comfy Registry
2024-08-16 23:21:11 +01:00
FairyRoot 174d1cf08d Merge pull request #2 from ComfyNodePRs/pyproject
Add pyproject.toml for Custom Node Registry
2024-08-16 23:20:58 +01:00
snomiao ea6d705777 chore(publish): Add Github Action for Publishing to Comfy Registry 2024-08-16 10:59:18 +00:00
snomiao 452c1ab225 chore(pyproject): Add pyproject.toml for Custom Node Registry 2024-08-16 09:59:23 +00:00
fairy-root 37245d6eac updated the source 2024-08-16 00:59:42 +01:00
fairy-root aa06ab0e6e Initial release 2024-08-16 00:54:30 +01:00
FairyRoot b6eabaf6fa Initial commit 2024-08-16 00:40:25 +01:00