Giter Site home page Giter Site logo

save-image-extended-comfyui's Introduction

Save Image Extended for ComfyUI

Customize the information saved in file- and folder names. Use the values of sampler parameters as part of file or folder names.
Save data about the generated job (sampler, prompts, models) as entries in a json (text) file, in each folder.

Installation

  1. Open a terminal inside the 'custom_nodes' folder located in your ComfyUI installation dir
  2. Use the git clone command to clone the save-image-extended-comfyui repo.
git clone https://github.com/thedyze/save-image-extended-comfyui

Parameters / Usage

  • filename_prefix - String prefix added to files.
  • filename_keys - Comma separated string with sampler parameters to add to filename. E.g: sampler_name, scheduler, cfg, denoise Added to filename in written order. resolution also works. vae_name model_name (upscale model), ckpt_name (checkpoint) are others that should work. Here you can try any parameter name of any node. As long as the parameter has the same variable name defined in the prompt object they should work. The same applies to foldername_keys.
  • foldername_prefix - String prefix added to folders.
  • foldername_keys - Comma separated string with sampler parameters to add to foldername.
  • delimiter - Delimiter character, either underscore, dot, or comma.
  • save_job_data - If enabled, saves information about each job as entries in a jobs.json text file, inside the generated folder. Mulitple options for saving prompt, basic data, sampler settings, loaded models.
  • job_data_per_image - When enabled, saves individual job data files for each image.
  • job_custom_text - Custom string to save along with the job data. Right click the node and convert to input to connect with another node.
  • save_metadata - Saves metadata into the image.
  • counter_digits - Number of digits used for the image counter. 3 = image_001.png. Will adjust the counter if files are deleted. Looks for the highest number in the folder, does not fill gaps.
  • counter_position - Image counter first or last in the filename.
  • one_counter_per_folder - Toggles the counter. Either one counter per folder, or resets when a parameter/prompt changes.
  • image_preview - Turns the image preview on and off.

Node inputs

  • images - The generated images.
  • positive_text_opt - Optional string input for when using custom nodes for positive prompt text.
  • negative_text_opt - Optional string input for when using custom nodes for negative prompt text.

Automatic folder names and date/time in names

Convert the 'prefix' parameters to inputs (right click in the node and select e.g 'convert foldername_prefix to input'. Then attach the 'Get Date Time String' custom node from JPS to these inputs. This way a new folder name can be automatically generated each time generate is pressed.

Disclaimer: Does not check for illegal characters entered in file or folder names. May not be compatible with every other custom node, depending on changes in the prompt object. Tested and working with default samplers, Efficiency nodes and UltimateSDUpscale.




Happy saving!

save-image-extended-comfyui's People

Contributors

thedyze avatar alulkesh avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.