Files
daxcay-ComfyUI-DataSet/README.md
T
2024-07-05 13:38:13 +05:30

5.2 KiB

COMFY-UI

ComfyUI-DataSet

Data Research, Preparation, and Manipulation Nodes for Model Trainers, Artists, Designers, and Animators.

workflow (4)

Installation

Using comfy-cli (https://github.com/yoland68/comfy-cli)
Manual Method
  • Go to your Comfyui > Custom Nodes folder
  • Run CMD from folder path box or right click on empty area and click open in terminal.
  • Copy and Paste this command git clone https://github.com/daxcay/ComfyUI-DataSet.git
  • Then go inside ComfyUI-DataSet with cmd or open new.
  • and type pip install -r requirements.txt to install the requirements.
Automatic Method with Comfy Manager
  • Inside ComfyUI > Click Manager Button on Side.
  • Click Custom Nodes Manager and Search for DataSet and Install this node:
  • image
  • Restart ComfyUI and it should be good to go
You can find DataSet under this category:

image

DataSet_Visualizer

Screenshot 2024-07-05 123511

The DataSet_Visualizer node is designed to visualize datasets by generating a word cloud, a network graph, and a frequency table from tag contents provided in text files.

Input Parameters

  • TextFileContents: (STRING, required) - The contents of the text file to be processed.
  • Seperator: (['comma', 'colon', 'space', 'pipe'], required) - The delimiter used to separate tags in the text file. Acceptable values are: 'comma' for , 'colon' for ; 'space' for a 'pipe' for |
  • WordCloudTop: (INT, default: 1, min: 1, max: 9999, required) - The number of top tags to include in the word cloud visualization.
  • NetworkGraphTop: (INT, default: 1, min: 1, max: 9999, required) - The number of top tag co-occurrences to include in the network graph visualization.
  • FrequencyGraphTop: (INT, default: 1, min: 1, max: 9999, required) - The number of top tags to include in the frequency table.

Outputs

  • GraphsPaths: (STRING, list) - The file paths of the generated visualizations. It includes paths for: Word cloud image, Network graph image, Frequency table image
  • GraphsImages: (IMAGE, list) - The generated images for the visualizations.

DataSet_CopyFiles

Screenshot 2024-07-05 123444

The DataSet_CopyFiles node provides a methods to copy files from a source folder to a destination folder based on different copying modes: blind copy and copy by matching destination files.

Input Parameters

  • source_folder: (STRING, default: "directory path", required) - The path of the source folder containing files to be copied.
  • destination_folder: (STRING, default: "directory path", required) - The path of the destination folder where files will be copied.
  • copy_mode: (['BlindCopy', 'CopyByDestinationFiles'], required) - The mode of copying files:
    • 'BlindCopy': Copies all files from the source to the destination folder.
    • 'CopyByDestinationFiles': Copies files from the source folder to the destination only if there is a matching file (based on the base name) already present in the destination.

DataSet_FindAndReplace

Screenshot 2024-07-05 123439

The DataSet_FindAndReplace node facilitates finding and replacing specific text patterns within text file contents.

Input Parameters

  • TextFileContents: (STRING, required) - The contents of the text file(s) where the search and replace operation will be performed.
  • SearchFor: (STRING, default: "concept", required) - The text pattern to search for within the TextFileContents. Supports multiline input.
  • ReplaceWith: (STRING, default: "concept", required) - The replacement text for the SearchFor pattern. Supports multiline input.

Outputs

  • TextFileContents: (STRING, list) - The modified contents of the text file(s) after performing the find and replace operation.

Credits

🔶 Daxton Caylor - ComfyUI Node Developer

🔶 https://github.com/rafstahelin

  • Node Request & Testing

Support for DataSet ❤️