Skip to content

Crash because of resource leak #14

Description

@lhns

Hello!
I noticed when calling predict multiple times, after some time further prediction processes just crash.
It seems to be caused by a resource leak because the InferenceSession is never released (session.release();) in https://github.com/diffusionstudio/vits-web/blob/main/src/inference.ts#L72
I've noticed though, that it makes prediction even slower.
I did a quick hack, where I cache the session and that improved the performance quite a bit.
Sadly I don't have time to implement a proper fix at the moment.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions