Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Multi Model running log call back support #639

Open
@wandbrandon

Description

@wandbrandon

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions