Skip to content

GaussianBlurBackgroundProcessor takes upwards of 8 seconds to load blur model #72

Open
@kNoAPP

Description

@kNoAPP
  • I have verified that the issue occurs with the latest twilio-video-processors.js release and is not marked as a known issue in the CHANGELOG.md.
  • I reviewed the Common Issues and open GitHub issues and verified that this report represents a potentially new issue.
  • I am not sharing any Personally Identifiable Information (PII)
    or sensitive account information (API keys, credentials, etc.) when reporting this issue.

Code to reproduce the issue:

    const background = new GaussianBlurBackgroundProcessor({
        assetsPath: "/twilio",
        maskBlurRadius: 15,
        blurFilterRadius: 35,
        pipeline: Pipeline.Canvas2D,
        debounce: true,
    });
    await background.loadModel();

Expected behavior:

await background.loadModel() should take at most 1-2 seconds.

Actual behavior:

await background.loadModel() takes upwards of 8 seconds to complete.

Software versions:

  • Browser(s): Chrome 119
  • Operating System: Windows 10
  • twilio-video-processors.js: 2.0.0
  • Third-party libraries (e.g., Angular, React, etc.): React

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions