Skip to main content

getModel

Gets a model package.

Example

const upscaler = new Upscaler();
upscaler.getModel().then(modelPackage => {
console.log(modelPackage);
})
Defined in upscaler.ts:211

Returns

Promise<ModelPackage> - a modelPackage object of shape { model: tf.LayersModel, modelDefinition: ModelDefinition }