File size: 1,012 Bytes
ed9f15f |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 |
/**
* Configuration - Application constants and model paths
*/
export const MODEL_PATHS = {
classifier: './models/classifier_model_compressed/model.onnx',
poorGood: './models/poor_good_compressed/model.onnx',
grader: './models/grader_model_compressed/model.onnx',
yolo: './models/yolo-cropper/best.onnx'
};
export const DETECTION_CONFIG = {
yolo: {
inputSize: 640,
confThreshold: 0.6,
iouThreshold: 0.45,
padding: 0.25
},
siglip: {
inputSize: 224,
mean: [0.5, 0.5, 0.5],
std: [0.5, 0.5, 0.5]
}
};
export const LABEL_MAPPINGS = {
classifier: { 0: 'no', 1: 'yes' },
poorGood: { 0: 'good', 1: 'poor' },
grader: {} // Will be loaded from config.json
};
export const ONNX_CONFIG = {
wasmPaths: 'https://cdn.jsdelivr.net/npm/onnxruntime-web@1.17.0/dist/',
numThreads: 4
};
export const ZOOM_CONFIG = {
min: 0.5,
max: 3,
step: 0.1,
default: 1
};
|