Function getModelArtifactsForJSON

  • Create ModelArtifacts from a JSON file.

    Parameters

    • modelJSON: ModelJSON

      Object containing the parsed JSON of model.json

    • loadWeights: (
          weightsManifest: WeightsManifestConfig,
      ) => Promise<[WeightsManifestEntry[], WeightData]>

      Function that takes the JSON file's weights manifest, reads weights from the listed path(s), and returns a Promise of the weight manifest entries along with the weights data.

    Returns Promise<ModelArtifacts>

    A Promise of the ModelArtifacts, as described by the JSON file.

MMNEPVFCICPMFPCPTTAAATR