Commit Graph
28 Commits
Author SHA1 Message Date
Vince Liem b2e7c7ffeb Migrate tag injector and random number nodes to ComfyExtension API
Migrated TagInjectorSingle, TagInjectorDuo, TagInjector, TagInjectorLarge, RandomFloat, RandomInt, and NextSeed from legacy node implementation to new ComfyExtension API with io.ComfyNode base class. Replaced INPUT_TYPES, RETURN_TYPES, RETURN_NAMES, FUNCTION, and CATEGORY class attributes with define_schema() method using io.Schema. Converted legacy methods to execute() with type-annotated parameters and io.NodeOutput return type
2025-11-28 04:25:43 +01:00
Vince Liem b010ea7c81 Migrate SeedBasedOutputSelector to ComfyExtension API
Migrated SeedBasedOutputSelector from legacy node implementation to new ComfyExtension API with io.ComfyNode base class. Replaced INPUT_TYPES, RETURN_TYPES, RETURN_NAMES, FUNCTION, and CATEGORY class attributes with define_schema() method using io.Schema. Converted select_output() method to execute() with type-annotated parameters and io.NodeOutput return type. Updated input handling to treat both None and empty strings as "no value" for optional inputs.
2025-11-28 03:36:39 +01:00
Vince Liem 3d1b906496 Reorganize node directory structure into functional categories
Restructured node organization by moving files from generic directories into more specific functional categories. Moved resolution-related nodes from nodes/latent/ to nodes/resolution/, split prompt nodes into nodes/prompt_selection/, nodes/prompt_wildcards/, and nodes/prompt_tags/, moved utility nodes from nodes/utils/ to nodes/random_numbers/ and nodes/random_seed/. Updated all import paths in __init__.py to reflect the new directory
2025-11-28 03:31:13 +01:00
Vince Liem 587242c9c7 Migrate SimpleWildcardPicker to ComfyExtension API and reorganize node categories
Migrated SimpleWildcardPicker from legacy node implementation to new ComfyExtension API with io.ComfyNode base class. Removed SimpleWildcardPicker from NODE_CLASS_MAPPINGS and NODE_DISPLAY_NAME_MAPPINGS, now registered through GR85Extension.get_node_list(). Refactored wildcard processing logic into standalone _process_wildcards function. Reorganized node categories: moved latent nodes to "GR85/Resolution", prompt nodes to "GR85/
2025-11-28 03:27:36 +01:00
Vince Liem 1ffe5f0a22 Remove multiple node implementations and clean up dependencies
Removed numerous node classes including Florence2 integration nodes (Sam2Segmentation, Florence2RunCTPG, CTGPhrases, MaskBatchToSEGS, Florence2toCoordinatesGR85), mask processing nodes (PasteByMaskGr85, FilterAndCombineMasks, MaskConnectMST, RandomizedMaskTransform, IslandMaskGenerator, MaskSplitter), prompt handling nodes (ContainsWord, IntToString, FluxAttentionSeeker2/3, FluxAttentionSeekerGenerator, VerticalWildcardPicker, Integer
2025-11-28 03:12:01 +01:00
Vince ec29a13696 Add new mask processing nodes
Introduce nodes for mask handling, including MaskConnectMST, IslandMaskGenerator, RandomizedMaskTransform, and MaskSplitter. Update requirements with necessary image processing and graph libraries.
2024-11-26 18:26:37 +01:00
Vince 9b71d18997 Add new custom nodes and modify existing ones
Created several new custom nodes including VerticalWildcardPicker, Florence2RunCTPG, and MaskBatchToSEGS. Updated seed handling to use larger integer values, and introduced new classes in tag_injector.py for single and duo tag injection. Enhanced image_sizer_all.py and updated the initialization to register new nodes.
2024-11-20 13:10:18 +01:00
Vince 46659d6b6b Add distribution scale and generation count to generator
Implemented `distribution_scale` and `random_generation_count` parameters in `FluxAttentionSeekerGenerator` to improve value generation control. Validations were added to ensure these parameters are within the defined ranges. Additionally, refactored the code for clearer initialization and parsing of `combined_values`.
2024-10-29 12:59:51 +01:00
Vince f71ff31487 Add a SaveImageFile node to save images to disk
Implemented a new node class, SaveImageFile, for saving images to files with user-defined parameters. Updated the node mappings and names in __init__.py to include the new SaveImageFile node. This node supports various image types, handles directory creation, and auto-increments filenames to avoid overwriting existing files.
2024-10-29 11:33:57 +01:00
Vince 760be8489d Remove 'openai' from requirements.txt
The 'openai' package was removed from the requirements file. This change reflects the elimination of dependencies on the 'openai' library in the project.
2024-10-29 09:54:12 +01:00
Vince 9104600e39 deleted unused nodes 2024-10-28 22:47:54 +01:00
Vince ff725dae6e Create new generators and enhance merge parameters
Added `FluxAttentionSeekerGenerator` and `FluxAttentionSeeker3` classes to handle prompt generation. Enhanced `FluxModelMergeParameters` class with logging, additional input options, and refined parameter generation logic for improved flexibility and debugging.
2024-10-28 22:47:32 +01:00
Vince 5e58dc76a7 Remove seed parameter and add new utility nodes
Removed the seed parameter from tag injection methods for cleaner function signatures. Added new utility nodes: RandomFloat, RandomInt, SaveTextFile. Adjusted category and return types in existing node classes accordingly.
2024-10-26 23:06:37 +02:00
Vince 32b659389b Add new nodes and update existing ones
Introduce TagInjectorLarge and IntegerSequenceModifier nodes for enhanced flexibility. Updated TagInjector by simplifying input options. Added FluxModelMergeParameters for advanced parameter handling in model merging operations. Adjusted init file to include new nodes and properly map categories.
2024-10-26 15:29:20 +02:00
Vince 1293d31107 Refactor ImageSizerAll to improve resizing functionality
Renamed and adjusted parameters for better clarity and flexibility. Added tolerance handling and modified aspect ratio calculations to ensure more accurate resizing. Enhanced orientation options to include "original" for preserving existing dimensions.
2024-09-28 21:53:18 +02:00
Vince a504d23c36 Refactor return type in simple_wildcard_picker.py
Changed the return type from string to tuple for the prompt variable in the simple_wildcard_picker.py module. This modification will improve consistency and error handling in the caller functions.
2024-09-28 15:25:38 +02:00
Vince 8c8c76cf94 Update TagInjector and add new prompt and mask nodes
Modified TagInjector to support multiple optional tags and dynamic template defaults. Introduced new nodes: SeedBasedOutputSelector, SimpleWildcardPicker, and PasteByMaskGr85, broadening functionality for prompt and mask management. Adjusted image resizing logic in image_sizer and corrected category naming in batch_rect_mask_generator.
2024-09-28 14:39:14 +02:00
Vince eeb3035f77 Add new prompt classes and enhance string sanitization
Introduced `GenerateDefaultCLIPValues`, `UpdateT5Blocks`, and `FluxAttentionSeeker2` for prompt handling. Enhanced `StrSafe` to trim spaces, convert text to lowercase, and replace multiple underscores. Added `BatchRectMaskGenerator` for mask creation and `StringListSelector` for sublist selection. Updated `requirements.txt` to include flash-attn.
2024-09-25 09:45:16 +02:00
Vince 7ec6698459 Add new prompt classes and enhance string sanitization
Introduced `GenerateDefaultCLIPValues`, `UpdateT5Blocks`, and `FluxAttentionSeeker2` for prompt handling. Enhanced `StrSafe` to trim spaces, convert text to lowercase, and replace multiple underscores. Added `BatchRectMaskGenerator` for mask creation and `StringListSelector` for sublist selection. Updated `requirements.txt` to include flash-attn.
2024-09-25 09:42:35 +02:00
Vince af0ec5c91b Remove obsolete files and add new node implementations
This commit removes some obsolete Python files related to latent, logging, and prompt functionalities. It also adds new implementations for node classes, including ShowText, ImageSizer, ImageDimensionResizer, RandomTitleCharacter, and others. The new implementations restructure and optimize the existing functionalities.
2024-09-07 11:53:40 +02:00
Vince 585a9ff673 Remove obsolete files and add new node implementations
This commit removes some obsolete Python files related to latent, logging, and prompt functionalities. It also adds new implementations for node classes, including ShowText, ImageSizer, ImageDimensionResizer, RandomTitleCharacter, and others. The new implementations restructure and optimize the existing functionalities.
2024-04-22 17:49:12 +02:00
Vince db75b96fd3 Add wildcard exceptions to .gitignore
The .gitignore has been updated to include exceptions for certain wildcard files. This allows wildcards stored in the 'put_wildcards_here' folder to be tracked by Git, preventing unintentional exclusion of important files.
2024-04-22 17:48:47 +02:00
Vince 5fef27b86d Add __init__.py with node mappings
__init__.py is newly added with mapping dictionaries for custom node classes and display names in the GR85 module. It includes a variety of import classes such as ImageSizer, ShowString, RandomTitleCharacter, etc., which are subsequently mapped to their respective identifiers. This will help in directly accessing these custom nodes through module imports.
2024-04-22 11:19:58 +02:00
Vince cd344caace Add ShowString class to logging.py
A new class called ShowString has been added to the logging.py file. This class includes the INPUT_TYPES method, RETURN_TYPES variable, FUNCTION variable, CATEGORY variable, OUTPUT_NODE variable, and the show method. The purpose of this class is to handle specific string-related logging functionality.
2024-04-22 11:19:48 +02:00
Vince 68e3a8de10 Add new classes to generate random title characters and elements
This commit adds several new classes to the prompt.py file. The RandomTitleCharacter class reads from a character yaml file and generates random title characters along with their elements and features. Other classes like InsertCharacter and RandomElements support the creation of character strings based on different templates, and selecting random elements from an elements yaml file, respectively. There are also classes for concatenating elements and enhancing strings using an OpenAI API.
2024-04-22 11:19:22 +02:00
Vince c402c2429f Add image resizing functionality
Added `ImageSizer` and `ImageDimensionResizer` classes in `latent.py`, which provide image resizing functionality. `ImageSizer` class resizes images while maintaining the same pixel count and a specified aspect ratio. `ImageDimensionResizer` class resizes images while maintaining pixel count and the ratio of the original dimensions.
2024-04-22 11:19:07 +02:00
Vince 4ad86a38f6 Add OpenAI to requirements.txt
The changes include adding OpenAI to the requirements.txt file. This is necessary for the integration of OpenAI functionalities into the project.
2024-04-22 11:18:54 +02:00
Vince e001845076 Add .idea to .gitignore
To ensure development environment specifics do not make it to the repository, .idea folder which is specific to IntelliJ IDEA is added to .gitignore.
2024-04-22 11:18:39 +02:00