Comfyui save to folder


Comfyui save to folder. Mar 23, 2024 · 🗂️Organize workflows with folders, tags. People will try to get fancy with it but blocks of time are really the easiest to track to your brain. On previous versions of ComfyUI you needed a PrimitiveNode linked to SaveImage for this to work. But the variables were not populated. Below, you can see a few pictures with the Clutter-Home with different strengths (from 0 to 1. 12) and put into the stable-diffusion-webui (A1111 or SD. Save Workflow How to save the workflow I have set up in ComfyUI? You can save the workflow file you have created in the following ways: Save the image generation as a PNG file (ComfyUI will write the prompt information and workflow settings during the generation process into the Exif information of the PNG). csv in the same folder the images are saved in. Prefix for naming the audio file. Edit: Oh yeah, also put a preview node from the decoder too, as that save node does not have it's own picture viewer. Some workflows alternatively require you to git clone the repository to your save_job_data - If enabled, saves information about each job as entries in a jobs. Authored by palant. Authored by Shadetail Jul 22, 2023 · Right now the Search and replace strings feature only seems to work in the default ComfyUI Save Image node. bat and save the file with the prefix ComfyUI. 天然支持利用nginx直接实现负载均衡 Welcome to the unofficial ComfyUI subreddit. My folders for Stable Diffusion have gotten extremely huge. (relative to . This way you can always match a generated image with a specific prompt. 21K subscribers in The tool lets you: Pause queue execution by saving/loading them as files. Aug 22, 2023 · I use %date:yyyy-MM-dd%/ComfyUI which creates a folder with the date in the directory I specified in my comfy_start. You can simply open that image in comfyui or simply drag and drop it onto your workflow canvas. bat file. Text Add Token by Input: Add custom token by inputs representing single single line name and value of the Welcome to the unofficial ComfyUI subreddit. " I've done it this way too. unfortunately your examples didn't work. python main. csv file called log. size ()" this give "torch. Click "Edit Pod" and then enter 8188 in the "Expose TCP Port" field. Using my save node, you can Save File Formatting. The model contains a Unet model, a CLIP model and a VAE model. Plug the image output of the Load node into the Tagger, and the other two outputs in the inputs of the Save node. That's not possible in Automatic1111. model but . \ComfyUI-Mana-Nodes directory. Not ideal. The ComfyUI Colab just dumps all outputs into the ‘Output’ folder without any structure. You could try renaming the XY input but the attribute name there isn't . " If you click this, it will expand a selection menu that contains every generation parameter I would like ComfyUI to automatically save files with file names in the format [gen#] - [type (hi-res, upscales. For this it is recommended to use ImpactWildcardEncode from the fantastic ComfyUI-Impact-Pack. You can use this command line argument: --output-directory. it's also possible to mess with the built in list and make it show up in the built in samplers (so you don't need to use SamplerCustom ). Jun 15, 2023 · With the latest update, it looks like that the prefix is broken. This same way could add any details you want from any node by replacing the "KSampler" part with the text in "Node name for S&R" in their property window and "seed" with the name of the field in the node. Could you please fix it, or if the format has been changed then point me to the doc? Many thanks! hortom changed the title The Image Save filename_prefix tokens Copy the files inside folder __New_ComfyUI_Bats to your ComfyUI root directory, and double click run_nvidia_gpu_miniconda. And this is completely non-standard, there is no reason to double the images on the hard disk nor to necessarily have them only in the input as source. Simply download, extract with 7-Zip and run. To do this, locate the file called `extra_model_paths. will now need to become. Is there a similar process to "clean" your comfyui setup? Welcome to the unofficial ComfyUI subreddit. txt . io/ComfyUI-docs/Interface/SaveFileFormatting/ This node is adapted and enhanced from the Save Text File node found in the YMC GitHub ymc-node-suite-comfyui pack. You will need to launch comfyUI with this option each time, so modify your bat file or launch script. The Save Image node can be used to save images. 😉. Nov 21, 2023 · Since I have been using animatediff with comfyui my drives have been filling up. Like the builtin Save Image node, you can add timestamps. py --output-directory D:\YOUR\PATH\HERE. Reply reply Top 4% Rank by size Copy the files inside folder __New_ComfyUI_Bats to your ComfyUI root directory, and double click run_nvidia_gpu_miniconda. yaml`, then edit the relevant lines and restart Comfy. If you drag and drop the png into Comfy, you'll see everything you need to create the exact same picture. You can use any node on the workflow and its widgets values to format your output folder. I have found the workflows by Searge to be extremely useful. 400 GB's at this point and i would like to break things up by atleast taking all the models and placing them on another drive. Is animatediff hiding a temp folder or cache somewhere I need to delete? Thanks May 29, 2023 · Save Text File: Save a text string to a file. You switched accounts on another tab or window. Let me know if this is possible. 12 (if in the previous step you see 3. example`, rename it to `extra_model_paths. I really want to like and use this custom node, because managing workflows with json files is quite painful, but the auto save feature needs to go away and be replaced by a simple "new/load/save" system. Also put together a quick CLI tool to use local. io) Optional assets: custom nodes Aug 31, 2023 · I had the same problem. This adds a custom node to save a picture as png, webp or jpeg file and also adds a script to Comfy to drag and drop generated images into the UI to load the workflow. 2. Dec 8, 2023 · Exporting your ComfyUI project to an API-compatible JSON file is a bit trickier than just saving the project. The MP4 files are relatively small at only a few MBs but somehow I am losing 100MBs every few queues. Here's a list of example workflows in the official ComfyUI repo. If one could point "Load Image" at a folder instead of at an image, and cycle through the images as a sequence during a batch output, then you could use frames of an image as controlnet inputs for (batch) img2img restyling, which I think would help with coherence for restyled video frames. Extension: ComfyUI-NegiTools Nodes:OpenAI DALLe3, OpenAI Translate to English, String Function, Seed Generator. bat file, it will load the arguments. 11 (if in the previous step you see 3. yaml. Previously, %date:yyyy-MM-dd-hh-mm-ss% worked but now, it tries to save the files as %date and it is just an empty file. offroadguy56 on May 4, 2023. Truncated decimals for 'cfg' and 'denoise' values. Turn off metadata with this launch option : --disable-metadata. It will have all your nodes including the prompts that were entered. Feature Tip: History and Temp Folder. Right-click your Save Image node and select convert filename_prefix to widget. Like I mentioned, the big annoyance isn't the saving so much as the file naming. To use video formats, you'll need ffmpeg installed and Apr 2, 2023 · The problems with the ComfyUI original load image node is that : it copies into the input the images that are loaded with the dialog file or by drag and drop. 核心功能2:方便将任意comfyui工作转换为在线API,向外提供AI能力. Open the . The little grey dot on the upper left of the various nodes will minimize a node if clicked. Is there a process to do that in comfyui without starting from scratch (and having to reinstall all custom nodes/set up path/ models etc?). If you separate them, you can load that individual Unet model similarly how you can load a Add a Comment. )] - [prompt] - [seed]. I tried putting %node_name. Compatible with Civitai & Prompthero geninfo auto-detection. Using Node's Values. Save Image. Every time you run the . On This Page. You signed in with another tab or window. You can easily revert You can save output to a subfolder: subfolder/video. Added ability to save job data file for each image. Etc. ) On the right hand panel, there is a button that says "History. /ComfyUI/main. ) Dec 22, 2023 · dchatel commented on Dec 22, 2023. Belittling their efforts will get you banned. mp4. When you have it installed just dubbel click and search for save. tensorImg=tensorImg. If you haven't found Save Pose Keypoints node, update this extension To customize file names you need to add a Primitive node with the desired filename format connected to the Save Image node as explained here. A lot of people are just discovering this technology, and want to show off what they created. Authored by natto-maki Save Text File: Save a text string to a file; Samples Passthrough (Stat System): Logs RAM, VRAM, and Disk usage to the console. Apr 3, 2023 · 3 replies. Thanks. In Auto (and in Comfy with auto saving) I've got a work flow that saves with a format like timestamp-model-seed or timestamp-seed. You signed out in another tab or window. yaml there is now a Comfyui section to put im guessing models from another comfyui models folder. This workflow will save images to ComfyUI's output folder (the same location as output images). Direct link to download. And above all, BE NICE. Using the 'Save Image Extended' node with the 'Get Date Time String' node, outputs are organized into date-named subfolders under ‘Output’ as I would like them, but the folder names are a day ahead. andreszsogon. So I select a face I want to do img2img on in Photoshop, paste into ComfyUI, ctrl-Enter, and I get the redrawn face. With this suit, you can see the resources monitor, progress bar & time elapsed, metadata and compare between two images, compare between two JSONs, show any value to console/display, pipes, and more! This provides better nodes to load/save images Here is how it works: Gather the images for your LoRA database, in a single folder. png for generations, hi-res, and upscaled images. bat or type CMD on the address bar on the newly created custom_nodes\ComfyUI-IF_AI_tools folder type H: \C omfyUI_windows_portable \p ython_embeded \p ython. To simply preview an image inside the node graph use the Preview Image node. • 7 mo. I don't think the generation info in ComfyUI gets saved with the video files. A node like that really needs the ability to open the operating system's file browser. Combine GIF frames and produce the GIF image. github. Its been two years since I last used Windows but you mount network discs like "Save images to a subdirectory and Save grids to a subdirectory options checked with [date] as the Directory name pattern to automatically sort images into daily subfolders (2022-10-30). In A1111 you could just delete the venv folder and launch again. Make sure the images are all in png. I just worry some people may not like the extension adding extra data field to their workflow json files. Export your API JSON using the "Save (API format)" button. To get your API JSON: Turn on the "Enable Dev mode Options" from the ComfyUI settings (via the settings icon) Load your workflow into ComfyUI. Mar 14, 2023 · Also in the extra_model_paths. I delete the images in output but still can't regain the disk space. Share and Run ComfyUI workflows in the cloud. ComfyUI can also inset date information with %date: Aug 1, 2023 · You signed in with another tab or window. However I didn't manage to find any option to set output format in ComfyUI. Nah, not just saving a single click. Cancel specific generations quickly and easily. edit the executable bat file and added --preview-method auto to the end. The basic syntax is: %NodeName. If you did not know, there are actually 2 features in ComfyUI that "Store" your generation parameters, even if you did not manually save the image: 1. Convert to input to save any node text in the job data. bat" file) or into ComfyUI root folder if you use ComfyUI Portable Via the command line / CMD or a batch file you can do the following: python main. Advanced information on configuring or adding additional video formats can be found in the Video Formats section. Comfy saves all workflow data in the png file created. and no workflow metadata will be saved in any image. json file. Neat. 11) or for Python 3. The workflow info is embedded in the images, themselves. frame_rate: number of frame per second. Must have been exported with API calls positional arguments: workflow The workflow. job_data_per_image - When enabled, saves individual job data files for each image. Jun 12, 2023 · Custom nodes for SDXL and SD1. Feb 18, 2024 · This can be done directly in the Save Image node, on the filename_prefix widget. Feb 7, 2024 · To use SDXL, you’ll need to download the two SDXL models and place them in your ComfyUI models folder. Where ever you launch ComfyUI from, python main. Mulitple options for saving prompt, basic data, sampler settings, loaded models. Jan 31, 2024 · Step 2: Configure ComfyUI. %date:yyyy-MM-ddThh:mm:ss% might become 2023-10-31T6:45:25. Extension: Extended Save Image for ComfyUI. Works with png, jpeg and webp. For example, this is mine: Dec 15, 2023 · But now in comfyUi this will generate 512 images of 768 width and 4 of height which is not what should happen. You can also add LoRAs to the prompt in <lora:name:weight> format, which would be translated into hashes and stored together with the metadata. Is there any documentation listing the rest of the command line arguments? I'm blind and can't seem to find it on the main GitHub page. But if you saved one of the still/frames using Save Image node OR EVEN if you saved a generated CN image using Save Image it would transport it over. widget_name% into the filename_prefix widget in the WAS Image Save Node and also the Text Add Tokens node. permute (1,0,3,2) Now if I do "tensorImg. If you have trouble extracting it, right click the file -> properties -> unblock. - Suzie1/ComfyUI_Comfyroll_CustomNodes Dec 19, 2023 · One of the best parts about ComfyUI is how easy it is to download and swap between workflows. Save Image node Date time strings. you can also look at comfy In ComfyUI protable version just dounle click embedded_install. Keep the characters already filled in as the folder name and add to it if you want to. Seed: Return a seed; Tensor Batch to Image: Select a single image out of a latent batch for post processing with filters; Text Add Tokens: Add custom tokens to parse in filenames or other text. While ComfyUI lets you save a project as a JSON file, that file will not work for our purposes. Instead, you need to export the project in a specific API format. Download the SDXL base and refiner models from the links given below: Once you’ve downloaded these models, place them in the following directory: ComfyUI_windows_portable\ComfyUI\models\checkpoints. Copy that folder’s path and write it down in the widget of the Load node. seed" if you use the KSampler node in your workflow. Reload to refresh your session. Image Load EXR (Individual file, or batch from folder, with cap/skip/nth controls in the same pattern as VHS load nodes) Save EXR (RGB or RGBA 32bpc EXR, with full support for batches and either relative paths in the output folder, or absolute paths with version and frame number formatting, and overwrite protection) All the tools you need to save images with their generation metadata on ComfyUI. Hello, Its easy for you to download via comyfui manager -> install models, now because you have already downloaded, these should be in comfyui -> models. The first thing you'll want to do is click on the menu button for "More Actions" to configure your instance. PNG images saved by default from the node shipped with ComfyUI are lossless, thus occupy more space compared to lossy formats. ckpt_name_1, ckpt_name_2, etc. widget% save_folder Extension: SeargeSDXL Custom nodes for easier use of SDXL in ComfyUI including an img2img workflow that utilizes both the base and refiner checkpoints. Fixed counter issue when position was 'first'. Cancelling multiple image generations is a bit tedious in ComfyUI, so you can use Yara to easily and quickly cancel them by the prompt ID numbers. The output pin now includes the input text along with a delimiter and a padded number, offering a versatile solution for file naming and automatic text file generation for save_job_data - If enabled, saves information about each job as entries in a jobs. loop_count: use 0 for infinite loop. It was modified to output a file for easier usability. Text Add Tokens: Add custom tokens to parse in filenames or other text. job_custom_text - Custom string to save along with the Save prompt as entries in a JSON (text) file, in each folder: With this option is enabled each time you press generate a new entry will be added to the 'prompt. First, we need to enable dev mode options to get access to the API format. ago. Automatic folder names and date/time in names: Would be nice that for each image that gets generated you get the parameter txt file with prompt, size, seed, cfg, samplet, steps, etc. Tensor Batch to Image: Select a single image out of a latent batch for post processing with filters. Added 'model_name' to file or folder keys (upscale model). It will allow you to convert the LoRAs Wherever you have Save To folder set at - but they should be placed into custom_nodes folder inside Comfy_UI directory. 10 or for Python 3. May 8, 2023 · Hi, All: I set batch count = 2, how to save the generated 2 images? There is only one image that I can find in node of "Save Image". py) --queue-size QUEUE_SIZE, -q QUEUE_SIZE The queue size per run --yes, --overwrite, -y Overwrite the output file if it Sep 26, 2023 · You signed in with another tab or window. , which isn't useful for a one name fits all save name. note assuming you are trying to load a workflow: if you have already placed files in folders but still get the errors, its cause you have to click and select the models. to join this conversation on GitHub . This custom node is largely identical to the usual Save Image but allows saving images also in JPEG and WEBP formats, the latter with both lossless and lossy compression. To duplicate parts of a workflow from one area to another, select the nodes as usual, CTRL + C to copy, but use CTRL + SHIFT + V to paste. 5, all are comprised of 3 actual models. Size ( [4, 1, 768, 512])" ComfyUI-Crystools. com/change-output-file-names-in-comfyui/ and https://blenderneko. json. As of right now, it seems there is only support for doing that with images. 核心功能1:ComfyUI的绘画API服务和websocket转发,客户端必须使用socketIO链接,WS无法连接,注意版本. They will create a subfolder with todays date. 5 including Multi-ControlNet, LoRA, Aspect Ratio, Process Switches, and many more nodes. exe -m pip install -r requirements. Every time you save, it will create a new record in Version History. It showed like this: got prompt WAS Node Suite Text Output: cyberpunk railway station cliff morning cinematic lighting dim lighting warm lighting hyperrealistic dig You can find the example workflow file named example-workflow. Aug 13, 2023 · you'd basically need to adapt the sampler into a ComfyUI extension. To help with organizing your images you can pass specially formatted strings to an output node with a file_prefix widget. On the issue in github I was told to start from a clean python env. Extended Save Image for ComfyUI. If you save an image with the Save button, it will also be saved in a . To load a workflow, simply click the Load button on the right sidebar, and select the workflow . py --disable-metadata. comfyanonymous on May 4, 2023. model there wouldn't a name to retrieve because that information would be in the XY Input or a checkpoint loader. I just meant that the extra field “workspace_tracking_id” in workflow json file won’t appear in the download file when you click “Save” in ComfyUI. for more options see : https://www. If you use: --help. Mar 22, 2023. bat file with notepad, make your changes, then save it. bat to start ComfyUI! Alternatively you can just activate the Conda env: python_miniconda_env\ComfyUI, and go to your ComfyUI root directory then run command python . Make sure you put your Stable Diffusion checkpoints/models (the huge ckpt/safetensors files) in: ComfyUI\models\checkpoints. I don't have ComfyUI in front of me but if the KSampler does say . But I doubt a saved latent would decode precisely the same as the preview decode, since the preview is a reduced resolution/ accuracy decode of the current state of the latent. If you open the png with a text editor, you'll see a mess of text in the Welcome to the unofficial ComfyUI subreddit. You can find the example workflow file named example-workflow. 📂Save and sync all your workflows in a local folder (by default under /ComfyUI/my_workflows customize in Settings) Save workflow by pressing the 💾 button, or ⌨Shift+S shortcut (customize in Settings). Use that in a batch file or customize the shortcut to the executable to be the above and you won't have to type it every time you start ComfyUI. Because I want to minimize manipulating user’s json workflow. -. The best thing about ComfyUI, for someone who is not a savant, is that you can literally drag a png produced by someone else onto your own ComfyUI screen and it will instantly replicate the entire workflow used to produce that image, which you can then customize and save as a json. Added 'job_custom_text' string input. Seed: Return a seed. Extension: Eagleshadow Custom Nodes Custom nodes for ComfyUI by Eagleshadow. py Jul 21, 2023 · After downloading the embedding file, you use by simply mentioning it in the prompt with embedding:filename:strength. one way to do it is to add a node that returns a SAMPLER which can be used with the built in SamplerCustom node. Jul 10, 2023 · A model checkpoint that usually ends in ckpt or safetensors that we all usually use, like those you can download from civitai or the oficial SD 1. Download prebuilt Insightface package for Python 3. py If latent, the nodes are just called save latent and load latent. In this primitive node you can now set the output filename in the format specified If you already have files (model checkpoints, embeddings etc), there's no need to re-download those. save_image: should GIF be saved to disk. To disable/mute a node (or group of nodes) select them and press CTRL + m. . format: The file format to use. I'm guessing that's why the LoadLatent node is still in testing. ComfyUI server之间可以共享AI绘画能力. \ComfyUI\output) This node uses a text-to-speech pipeline to convert input text into spoken words, saving the result as a WAV file. Right now, if I have a workflow loaded, and make a small change to it, but I don't want to persist that Typical SD workflow involves spamming gens and see what sticks. The idea of uploading images isn't anything more than the idea of opening files (with added AnimateDiffCombine. 🪛 A powerful set of tools for your belt when you work with ComfyUI 🪛. To make it generate 1 image of the right dimension I have to do. Mar 31, 2023 · Open the file browser and upload your images and json files, then simply copy their links (right click -> copy path) and paste them into the corresponding fields and run the cell. Next) root folder (where you have "webui-user. comfyui-save-workflow. Another cool thing would be able to import that txt file, with drag n drop, and it populates ksampler node and the prompt node. Please keep posted images SFW. Metadata is embedded in the images as usual, and the resulting images can be used to load a workflow. You can add seed to the filename by adding "KSampler. Save prompt as entries in a JSON (text) file, in each folder: With this option is enabled each time you press generate a new entry will be added to the 'prompt. Coming from A1111, I like its ability to save the output as lossy webm ,so I could save the gens 'that didn't make it' as 50kb webm, and only the ones worth sharing as 500kb png. Please share your tips, tricks, and workflows for using this software to create your AI art. Add a Primitive node ( Add Node > advanced > Primitive) Connect the Save Image node filename_prefix value to your Primitive node endopint. The generated audio file is named using the provided filename prefix and is stored relative to the . job_custom_text - Custom string to save along with the Welcome to the unofficial ComfyUI subreddit. Mar 31, 2023 · I used "Text to Console" node to check in the CMD, every thing seems OK. format: supports image/gif, image/webp (better compression), video/webm, video/h264-mp4, video/h265-mp4. You can keep them in the same location and just tell ComfyUI where to find them. 2): Source: Textual Inversion Embeddings Examples | ComfyUI_examples (comfyanonymous. This should import the complete workflow you have used, even including not-used nodes. gasmonso. json text file, inside the generated folder. Upscale model now saved in job data. Automatic folder names and date/time in names: Aug 5, 2023 · Setting custom filenames in ComfyUI workflow. After deploying your GPU, you should see a dashboard similar to the one below. Maintainer. The complete workflow you have used to create a image is also saved in the files metadatas. It can be hard to keep track of all the images that you generate. json file to convert options: -h, --help show this help message and exit--output OUTPUT, -o OUTPUT The output file (defaults to [input file]. py. Find your ComfyUI main directory (usually something like C:\ComfyUI_windows_portable) and just put your arguments in the run_nvidia_gpu. json' in the current folder, together with a timestamp. Ryan Less than 1 minute. (Much faster than making a new file, pasting the image into that, flattening it, saving as PNG, and then browsing for it within Comfy. Welcome to the unofficial ComfyUI subreddit. dx lk lk kc bm lj kb di ih py