Comfy-Org / Comfy-Org/ComfyUI

Using multiple processes for a single device can result in the same image names being saved.

Open
#10,914 2 comments 0 reactions 0 assignees View on GitHub
Feature
Dominant language
Python
Stars
133k
Forks
15.7k
Avg merge
1d 7h
Merged PRs (30d)
158

Description

### Feature Idea

A single device has multiple graphics cards and runs multiple comfyui applications. When they save images at the same time, it results in identical file names.
```
class SaveImage:
def __init__(self):
self.output_dir = folder_paths.get_output_directory()
self.type = "output"
self.prefix_append = ""
self.compress_level = 4
```
to
```
class SaveImage:
def __init__(self):
self.output_dir = folder_paths.get_output_directory()
self.type = "output"
self.prefix_append = str(args.cuda_device or "")
self.compress_level = 4
```

### Existing Solutions

_No response_

### Other

_No response_

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.