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

Multi Model running log call back support #639

Open
wandbrandon opened this issue Mar 29, 2025 · 0 comments
Open

Multi Model running log call back support #639

wandbrandon opened this issue Mar 29, 2025 · 0 comments

Comments

@wandbrandon
Copy link

wandbrandon commented Mar 29, 2025

I am writing safe rust bindings for this package, and I want to allow the user of the library to have the ability to run two models concurrently. While spawning a thread for each model build and then running txt2img on each one is possible and works fine, the log callback function and the progress callback function are global and do not accept a model context. Therefore there is no way to know which logs and which steps are associated with each model context.

Logging should not be global, but should depend on the model context. Is this possible?

Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant