comfyanonymous / ComfyUI

The most powerful and modular stable diffusion GUI, api and backend with a graph/nodes interface.
https://www.comfy.org/
GNU General Public License v3.0
43.11k stars 4.55k forks source link

--multi-user cmd arg doesn't work properly, different output dirs for different sessions #3417

Open ashish-aesthisia opened 2 months ago

ashish-aesthisia commented 2 months ago

Issue

I want to keep different directories for users accessing the single endpoint session for comfyUI.

How to Reproduce

After launching Comfy for the first time I saw this message in the console: ****** For multi-user setups add the --multi-user CLI argument to enable multiple user profiles. ****** So I restarted it with this extra argument and It seems that Comfy already has a basic user system.

It seems to be a pretty basic, file-based user system used only for settings and templates (third screenshot), but It may help us to add some authenticated user sessions.

image (28)

Commands

python3 main.py --multi-user

Then when i launch session, I get to created a user

image (29)

But when i generate an image, output supposed to go within the user folder as shown in screenshot. I switched to another user but the outputs are all saved in the same folder. This users stuff seems to affect only settings.

Tested on

Expectation

User folders should save output to each correspondence user.

Correct me if i misunderstood the use of --multi-user arg.

Ask

As a team we are using single GPU enabled machine to run all of our sessions. We want to separate the output based on different browser sessions. Is there anyway to make it possible?

a67793581 commented 2 months ago

This is an unimplemented feature, it is not clear if the author has any plans to add it, if there is a lack of developers, I can help implement this feature.

ashish-aesthisia commented 2 months ago

This is an unimplemented feature, it is not clear if the author has any plans to add it, if there is a lack of developers, I can help implement this feature.

Yes that can be important feature as I am unable to find any similar solution. Any help would be appreciated.