Skip to content

Commit fa6906e

Browse files
committed
quantized model and added dockerignore.
1 parent c69b312 commit fa6906e

File tree

5 files changed

+27
-2
lines changed

5 files changed

+27
-2
lines changed

.dockerignore

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
# Git
2+
.git
3+
.gitignore
4+
5+
# Python
6+
venv/
7+
venv_quantize/
8+
*.venv
9+
__pycache__/
10+
*.pyc
11+
12+
# Node.js
13+
node_modules/
14+
npm-debug.log
15+
16+
# Frontend (assuming your frontend code is in a folder named 'frontend' or 'src')
17+
# !!! Change 'frontend' to whatever your frontend folder is named
18+
frontend/
19+
public/
20+
src/
21+
22+
# OS files
23+
.DS_Store
24+
Thumbs.db

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ __pycache__/
1010
# Virtual environment
1111
venv/
1212
.venv/
13+
venv*/
1314

1415
# Jupyter and IPython
1516
.ipynb_checkpoints/

app.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
face_cascade = cv2.CascadeClassifier(cv2.data.haarcascades + 'haarcascade_frontalface_default.xml')
1111

1212
# Load ONNX model
13-
session = ort.InferenceSession("emotion-ferplus-8.onnx", providers=["CPUExecutionProvider"])
13+
session = ort.InferenceSession("emotion-ferplus-8-quant.onnx", providers=["CPUExecutionProvider"])
1414

1515
emotion_table = {
1616
0: 'neutral', 1: 'happiness', 2: 'surprise', 3: 'sadness',

static/script.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,4 +83,4 @@ setInterval(() => {
8383
overlay.textContent = 'Error';
8484
console.error('Detection error:', err);
8585
});
86-
}, 1000);
86+
}, 100);

0 commit comments

Comments
 (0)