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:251

Returns

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