Giter Club home page Giter Club logo

Comments (18)

comfyanonymous avatar comfyanonymous commented on May 24, 2024 6

You can now use --output-directory directory/path to set the output path.

from comfyui.

andreszs avatar andreszs commented on May 24, 2024 5

I'm astonished to see that such an advanced and revolutionary piece of software just dumps all output files in the same folder with a meaningless ComfyUI_00123.png format.

A1111 is miles ahead here, naming files as output/YYYY-MM-DD/batchnumber_seed.png in a folder with the current date.

Is there some solution, extension or any possible way to emulate the same output format from automatic1111?

from comfyui.

andreszs avatar andreszs commented on May 24, 2024 2

@Schokostoffdioxid My model paths yaml doesn't include an output-directory value. However, I now set the output path and filename using a primitive node as explained here: Change output file names in ComfyUI

Basically, to output files in a folder with current date you add this to your Primitive node:
%date:yyyy-MM-dd%/%date:hhmmss%_%KSampler.seed%

So the file would be saved as output/2023-08-15/083821_109992800202691_00001_.png, which means output/date/time_seed_00001_.png.

image

from comfyui.

arijoon avatar arijoon commented on May 24, 2024 1

is it also possible to set the output path?

from comfyui.

andreszs avatar andreszs commented on May 24, 2024 1

@ltdrdata It seems the README says nothing about output paths, and that plugin seems to add other features which are irrelevant in this case.

from comfyui.

Schokostoffdioxid avatar Schokostoffdioxid commented on May 24, 2024 1

Hi, maybe im just dumb but is there no documentation / ability on how to set the output path inside the yaml?
im currently trying the following but this doesn't seem to work...

a111:
    base_path: E:\stable-diffusion-ai
    
    output-directory: stable-diff-output\comfyui

Also an ability (like a boolean here) to make automatic folders for different dates would be sick (but probably another PR i imagine)

from comfyui.

Skettalee avatar Skettalee commented on May 24, 2024 1

In my advanced menu i dont have any of the same stuff there.
ALL i have are "Loaders, conditioning & model_merging" in advanced. Anyone else?

from comfyui.

thedyze avatar thedyze commented on May 24, 2024 1

I'm astonished to see that such an advanced and revolutionary piece of software just dumps all output files in the same folder with a meaningless ComfyUI_00123.png format.

A1111 is miles ahead here, naming files as output/YYYY-MM-DD/batchnumber_seed.png in a folder with the current date.

Is there some solution, extension or any possible way to emulate the same output format from automatic1111?

I've created a node for the purpose of customizing the file and folder names: https://github.com/thedyze/save-image-extended-comfyui

from comfyui.

jordanbtucker avatar jordanbtucker commented on May 24, 2024

See also #66, #35, and #18 for alternate suggestions regarding this issue.

from comfyui.

comfyanonymous avatar comfyanonymous commented on May 24, 2024

https://github.com/comfyanonymous/ComfyUI/blob/master/extra_model_paths.yaml.example

Update the ui, copy the new ComfyUI/extra_model_paths.yaml.example to ComfyUI/extra_model_paths.yaml and edit it to set the path to your a1111 ui.

from comfyui.

 avatar commented on May 24, 2024

Awesome, will test later. Thank you for adding this

from comfyui.

tusharbhutt avatar tusharbhutt commented on May 24, 2024

You can now use --output-directory directory/path to set the output path.

That unfortunately does not work for UNC paths on Windows:

  File "C:\Applications\StableDiffusion\ComfyUI\ComfyUI\folder_paths.py", line 214, in get_save_image_path
    if os.path.commonpath((output_dir, os.path.abspath(full_output_folder))) != output_dir:
  File "ntpath.py", line 804, in commonpath
ValueError: Paths don't have the same drive

from comfyui.

Jandolek1 avatar Jandolek1 commented on May 24, 2024

Where did you try to change please? In the .bat file or in the .yaml file.

from comfyui.

tusharbhutt avatar tusharbhutt commented on May 24, 2024

Where did you try to change please? In the .bat file or in the .yaml file.

Batch file...

from comfyui.

Jandolek1 avatar Jandolek1 commented on May 24, 2024

Yes, I tried and does not work :/

from comfyui.

ltdrdata avatar ltdrdata commented on May 24, 2024

I'm astonished to see that such an advanced and revolutionary piece of software just dumps all output files in the same folder with a meaningless ComfyUI_00123.png format.

A1111 is miles ahead here, naming files as output/YYYY-MM-DD/batchnumber_seed.png in a folder with the current date.

Is there some solution, extension or any possible way to emulate the same output format from automatic1111?

Maybe you can find it in the WAS node suite.

from comfyui.

jlitz avatar jlitz commented on May 24, 2024

delete

from comfyui.

githubarooski avatar githubarooski commented on May 24, 2024

You can now use --output-directory directory/path to set the output path.

That unfortunately does not work for UNC paths on Windows:

  File "C:\Applications\StableDiffusion\ComfyUI\ComfyUI\folder_paths.py", line 214, in get_save_image_path
    if os.path.commonpath((output_dir, os.path.abspath(full_output_folder))) != output_dir:
  File "ntpath.py", line 804, in commonpath
ValueError: Paths don't have the same drive

just fyi this works fine in Windows

in run_nvidia_gpu.bat just put it here

.\python_embeded\python.exe -s ComfyUI\main.py --windows-standalone-build --output-directory "G:\projects\project-name\comfy-output"
pause

Works great with network shares mounted as drive letters

from comfyui.

Related Issues (20)

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.