Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
public async estimatePoseOutputs(sample: PosenetInput) {
const inputResolution = this.posenetModel.inputResolution;
const { resized, padding } = padAndResizeTo(sample, inputResolution);
const {heatmapScores, offsets, displacementFwd, displacementBwd}
= await this.posenetModel.baseModel.predict(resized);
resized.dispose();
return {heatmapScores, offsets, displacementFwd, displacementBwd, padding};
}