ComfyUI icon indicating copy to clipboard operation
ComfyUI copied to clipboard

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

Open ashish-aesthisia opened this issue 9 months ago • 8 comments

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

  • Mac M1 Pro & Air
  • Linux machine with Nvidia enabled GPU.

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?

ashish-aesthisia avatar May 07 '24 05:05 ashish-aesthisia

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.

a67793581 avatar May 07 '24 06:05 a67793581

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.

ashish-aesthisia avatar May 07 '24 07:05 ashish-aesthisia

Any update on this?

Tobe2d avatar Aug 05 '24 23:08 Tobe2d

I'm also really looking forward to this feature :)

DmitryKripakov avatar Aug 28 '24 14:08 DmitryKripakov

Is there any way to set the Output dir per user profile? I know that I can redirect the output with --output-directory but it would be nice if I could set that to the User profile

Rouzax avatar Oct 18 '24 10:10 Rouzax

Same here, I'm looking for a solution to nest input/output folders in a user folder since I have multiple users working with the same Comfy server.

+1 for that feature request 🙏

julien-moment avatar Oct 18 '24 23:10 julien-moment