Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[EN] Issues with ImageOps - VRAM and concurrency #37

Open
1 task done
JeS24 opened this issue Jan 30, 2024 · 2 comments
Open
1 task done

[EN] Issues with ImageOps - VRAM and concurrency #37

JeS24 opened this issue Jan 30, 2024 · 2 comments
Labels
backend backend related reports enhancement New feature or request imageops Issues related to the Image-related operations, like safety & quality checks

Comments

@JeS24
Copy link
Collaborator

JeS24 commented Jan 30, 2024

Feature request / Suggestion

Currently, we have set celery's concurrency to 1 process with several threads, in order to get around race conditions and OutOfMemory issues with the deep learning models used for ImageOps. The problem here is that ImageOps is too slow when run serially. Figure out a way to parallelize image checks, while balancing RAM / VRAM usage.

Possible implementation

Chunking might help here, the same way it works with MeshOps. Note that subprocess would not work with celery most likely, and threading on GPU has its own share of issues.

Self-check

@JeS24 JeS24 added enhancement New feature or request backend backend related reports imageops Issues related to the Image-related operations, like safety & quality checks labels Jan 30, 2024
Copy link

This issue is stale because it has been open for 60 days with no activity. Remove stale label or comment to re-open.

Copy link

This issue is stale because it has been open for 60 days with no activity. Remove stale label or comment to re-open.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backend backend related reports enhancement New feature or request imageops Issues related to the Image-related operations, like safety & quality checks
Projects
None yet
Development

No branches or pull requests

1 participant