ComfyUI icon indicating copy to clipboard operation
ComfyUI copied to clipboard

Workflows Directory

Open brucew4yn3rp opened this issue 1 year ago • 6 comments

Your question

After updating ComfyUI to the latest version, it now seems that workflows are saved to the user/default/workflows folder. How can this be changed to a custom path?

Additionally, after updating to the new version, I can't seem to find my generation history in the UI.

Logs

No response

Other

No response

brucew4yn3rp avatar Nov 17 '24 17:11 brucew4yn3rp

How can this be changed to a custom path?

Currently you can't change it, I think for a security reason. There is already a feature request in the frontend repo about it:

  • https://github.com/Comfy-Org/ComfyUI_frontend/issues/688

I can't seem to find my generation history in the UI.

History has been replaced by Queue in sidebar.

image

LukeG89 avatar Nov 17 '24 18:11 LukeG89

I'd assume that the code reference to the "user/default/workflows" directory can be changed in the js or py code that the workflows menu uses?

Also, the issue with loading historical gens is that it will not allow a loading of something that was "cancelled", which was very useful in the past. I use the preview chooser node and sometimes I cancel a run 75% of the way through but I still want to load the same workflow inputs.

image

brucew4yn3rp avatar Nov 17 '24 20:11 brucew4yn3rp

I'd assume that the code reference to the user/default/workflows directory can be changed in the js or py code that the workflows menu looks at?

I don't know, I'm just a normal user, you need to ask @huchenlei

Also, the issue with loading historical gens is that it will not allow a loading of something that was "cancelled", which was very useful in the past. I use the preview chooser node and sometimes I cancel a run 75% of the way through but I still want to load the same workflow inputs.

You mean like this option when you right-click?

option

LukeG89 avatar Nov 17 '24 20:11 LukeG89

Lol, that was easy. I wish instead of showing a blank slate for cancelled workflows, it showed the last generated pic in that workflow.

For example, I have Ksampler -> preview -> Ksampler -> preview -> facedetailer -> preview. If I cancel before the facedetailer, I'd want to see that image instead of a blank box in the queue. It would be the most recent image in temp.

brucew4yn3rp avatar Nov 17 '24 20:11 brucew4yn3rp

I wish instead of showing a blank slate for cancelled workflows, it showed the last generated pic in that workflow.

For example, I have Ksampler -> preview -> Ksampler -> preview -> facedetailer -> preview. If I cancel before the facedetailer, I'd want to see that image instead of a blank box in the queue. It would be the most recent image in temp.

You can open a feature request in the frontend repo: ComfyUI_frontend

LukeG89 avatar Nov 17 '24 21:11 LukeG89

Just for avoidance of doubt - this issue is still open with the below question

I'd assume that the code reference to the user/default/workflows directory can be changed in the js or py code that the workflows menu looks at?

brucew4yn3rp avatar Nov 18 '24 16:11 brucew4yn3rp

I would hope it can be set easily - a cmd switch would be great. It just seems like such a "basic" user config need.

Moorer624 avatar Dec 01 '24 20:12 Moorer624

Use --user-directory cli option.

ltdrdata avatar Dec 02 '24 13:12 ltdrdata

Thanks. One follow up question - I'm assuming the argument I should enter is --user-directory C:..., If I expect to route the directory somewhere on my C drive. How do I deal with spaces? My file path is c:\users\moore\My Programs\Stability Matrix\ComfyUI Workflows\Baseline. I just keep getting errors whether I use "" on the string, or around the space. Any thoughts?

Moorer624 avatar Dec 02 '24 15:12 Moorer624

Thanks. One follow up question - I'm assuming the argument I should enter is --user-directory C:..., If I expect to route the directory somewhere on my C drive. How do I deal with spaces? My file path is c:\users\moore\My Programs\Stability Matrix\ComfyUI Workflows\Baseline. I just keep getting errors whether I use "" on the string, or around the space. Any thoughts?

Generally, it is advisable to avoid including blanks (spaces) in paths as they can cause various potential issues. However, you can enclose the path in double quotes (") to handle this.

--user-directory "c:\users\moore\My Programs\Stability Matrix\ComfyUI Workflows\Baseline"

However, --user-directory does not directly specify the workflow path. Instead, it designates the directory where all user information, including settings, is stored. If specified as above, it will save to:

c:\users\moore\My Programs\Stability Matrix\ComfyUI Workflows\Baseline\default\workflows

ltdrdata avatar Dec 02 '24 15:12 ltdrdata

How about creating a cli option just for a user-defined location to store workflows?

Moorer624 avatar Dec 14 '24 17:12 Moorer624

Use --user-directory cli option.

Will this cause any issues if you have multiple versions of ComfyUI pointing to the same user folder? In my installations I'm seeing the cache folder populated, along with channels.list and config.ini

I'm just looking for a centralized workflow library that's shared between different installations while trying to avoid symbolic links, because it's caused issues with updating in the past.

brbbbq avatar Feb 11 '25 21:02 brbbbq

Use --user-directory cli option.

Will this cause any issues if you have multiple versions of ComfyUI pointing to the same user folder? In my installations I'm seeing the cache folder populated, along with channels.list and config.ini

I'm just looking for a centralized workflow library that's shared between different installations while trying to avoid symbolic links, because it's caused issues with updating in the past.

There shouldn’t be any major issues aside from various settings being shared across the different ComfyUI installations.

ltdrdata avatar Feb 13 '25 12:02 ltdrdata