2020-08-20 02:10:42 +02:00
|
|
|
export * from './iou';
|
|
|
|
export * from './minBbox';
|
|
|
|
export * from './nonMaxSuppression';
|
|
|
|
export * from './normalize';
|
|
|
|
export * from './padToSquare';
|
|
|
|
export * from './shuffleArray';
|
|
|
|
export function sigmoid(x) {
|
2020-08-18 14:04:33 +02:00
|
|
|
return 1 / (1 + Math.exp(-x));
|
|
|
|
}
|
2020-08-20 02:10:42 +02:00
|
|
|
export function inverseSigmoid(x) {
|
2020-08-18 14:04:33 +02:00
|
|
|
return Math.log(x / (1 - x));
|
|
|
|
}
|
|
|
|
//# sourceMappingURL=index.js.map
|