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
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".
- 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