Skip to content

Commit

Permalink
Update hyperFace.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
N3oRay committed May 21, 2024
1 parent c2253ba commit ca15984
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/adapters/hyperFace.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@ function imgProcess(img: Mat) {
}

channels.delete() // 清理内存 - Nettoyer la mémoire
// const chwArray32 = new Float32Array(chwArray) // conversion
return chwArray // 返回转换后的数据 - Renvoie les données converties
}
async function tileProc(
Expand Down Expand Up @@ -76,7 +75,7 @@ async function tileProc(
const outBOffset = outImageW * outImageH * 2

const tileSize = 256
const tilePadding = 16 // 256 * 0.5 // 512 * 0.25
const tilePadding = 128 // 256 * 0.5 // 512 * 0.25
const tileSizePre = tileSize - tilePadding * 2

const tilesx = Math.ceil(inputDims[3] / tileSizePre)
Expand Down

0 comments on commit ca15984

Please sign in to comment.