gx
chenyc
2025-02-12 ea42ff3ebee1eeb3fb29423aa848a249441db81c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
export * from './iou';
export * from './minBbox';
export * from './nonMaxSuppression';
export * from './normalize';
export * from './padToSquare';
export * from './shuffleArray';
 
export function sigmoid(x: number) {
  return 1 / (1 + Math.exp(-x));
}
 
export function inverseSigmoid(x: number) {
  return Math.log(x / (1 - x));
}