Skip to main content
Version: 0.1

Module: Models

Type aliases

ModelInfo

Ƭ ModelInfo: Object

Type declaration

NameType
modelModelPath
namestring

Defined in

Models.ts:22


ModelPath

Ƭ ModelPath: string | ImageRequireSource

An ML model can be loaded from three different sources, and must be one of the following options:

  • url to a model file (e.g., https://example.com/my_model.ptl)
  • path to a local model file (e.g., /data/0/some/path/my_model.ptl)
  • a path in the JavaScript bundle (e.g., require('./my_model.ptl'))

Defined in

Models.ts:20