Militant Hitchhiker's Switchblade Pack is a collection of custom nodes for ComfyUI that provide various multi-function capabilities.
Militant Hitchhiker's Switchblade Pack is a collection of custom nodes for ComfyUI that provide various multi-function capabilities. It currently includes the following nodes:
custom_nodes
directory of your ComfyUI installation.git clone https://github.com/MilitantHitchhiker/MilitantHitchhiker-SwitchbladePack.git
The Text Appender node allows you to concatenate up to five text inputs with a specified delimiter and optionally append the result to a file.
text1
(optional): The first text input. Default is an empty string.text2
(optional): The second text input. Default is None
.text3
(optional): The third text input. Default is None
.text4
(optional): The fourth text input. Default is None
.text5
(optional): The fifth text input. Default is None
.delimiter
(optional): The delimiter to use for joining the text inputs. Default is \n
(newline). Use \n
in the input field to represent a newline character.output_file
(optional): The name of the file to append the result to. The file will be created in the dictionaries
folder. Default is an empty string (no file output).result
: The concatenated text, with the specified delimiter joining the non-empty text inputs.The Integrated Random Prompt Generator node generates random prompts by selecting items from up to four dictionary files and joining them with a specified delimiter.
dict1_file
, dict2_file
, dict3_file
, dict4_file
(required): The names of the dictionary files to use. The files should be placed in the input/Dictionaries
folder of your ComfyUI installation. Use none
to disable a dictionary.enable_dict1
, enable_dict2
, enable_dict3
, enable_dict4
(required): Boolean values indicating whether to enable each dictionary. Default is True
for all dictionaries.dict1_delimiter
, dict2_delimiter
, dict3_delimiter
, dict4_delimiter
(required): The delimiters used to split the items in each dictionary file. Default is \n
(newline) for all dictionaries.output_delimiter
(required): The delimiter used to join the selected items from each dictionary. Default is a space.seed
(required): The random seed for reproducibility. Default is 0
.result
: The generated prompt, with items randomly selected from the enabled dictionaries and joined by the output_delimiter
.The Model Analyser node provides detailed analysis of a given model's structure, size, and parameters.
model
(required): The model to be analyzed.analysis
: A JSON string containing detailed information about the model's structure, size, block information, and data types.The Militant Merge Node allows for advanced merging of two models with various options and analysis.
model1
, model2
(required): The two models to be merged.use_smaller_model
(required): Boolean indicating whether to use the smaller model as the base.merge_mode
(required): The merge mode to use ("simple" or "dare").input_blocks_merge_amount
, middle_block_merge_amount
, output_blocks_merge_amount
(required): Float values (0.0 to 1.0) indicating the merge amount for different parts of the model.force_keep_dim
(required): Boolean indicating whether to force keeping dimensions when merging.random_drop_probability
(required): Float value (0.0 to 1.0) for random drop probability in DARE merge mode.mask_model
(optional): An optional mask model for the merge process.merged_model
: The resulting merged model.analysis_summary
: A JSON string containing a summary of the merge process and results.The Save Flux Model node allows saving a model in various formats with additional information.
model
(required): The model to be saved.filename_prefix
(required): The prefix for the output filename.output_format
(required): The desired output format ("bfloat16", "float16", "float32", or "int8").This node has no outputs but saves the model to a file and generates an additional JSON file with tensor information.
delimiter
to \n
to join the text inputs with newline characters.output_file
to append the result to a file.input/Dictionaries
folder of your ComfyUI installation.enable_dict
inputs to True
.dict_delimiter
inputs.output_delimiter
to control how the selected items are joined.seed
value for reproducibility, or leave it as 0
for random results.Contributions to the Militant Hitchhiker's Switchblade Pack are welcome! If you have any ideas, bug reports, or feature requests, please open an issue on the GitHub repository. Pull requests are also encouraged.
The Militant Hitchhiker's Switchblade Pack is released under the MIT License.