Options
All
  • Public
  • Public/Protected
  • All
Menu

Class ModelSpecBuilder

A builder class to instantiate a model spec.

Hierarchy

  • ModelSpecBuilder

Index

Constructors

constructor

Methods

build

withDefaultModel

  • Set up the builder to use the default model implementation.

    Members of this interface can change without a major version bump to accommodate new browser bugs and capabilities. If you extend this type, you might need to rework your code for new minor versions of this library.

    Returns ModelSpecBuilder

    a reference to the current builder.

withInput

withOutput

withPath

  • A method to override the path to the segmentation model.

    Parameters

    • path: string

      A function that returns the path to the segmentation model.

    Returns ModelSpecBuilder

    the builder to allow for fluent API (e.g., ModelSpecBuilder.builder().withPath("some path").build()).

withSelfieSegmentationDefaults

Static builder

Generated using TypeDoc