Wanli commited on
Commit
e26f7c8
·
1 Parent(s): cf14767

Update FER quantized model and fix document (#129)

Browse files

* update document and fix bugs

* re-quantized model to per_tensor mode

* update KV3-NPU benchmark result

Files changed (2) hide show
  1. README.md +1 -1
  2. demo.py +1 -1
README.md CHANGED
@@ -6,7 +6,7 @@ Progressive Teacher: [Boosting Facial Expression Recognition by A Semi-Supervise
6
  Note:
7
  - Progressive Teacher is contributed by [Jing Jiang](https://scholar.google.com/citations?user=OCwcfAwAAAAJ&hl=zh-CN).
8
  - [MobileFaceNet](https://link.springer.com/chapter/10.1007/978-3-319-97909-0_46) is used as the backbone and the model is able to classify seven basic facial expressions (angry, disgust, fearful, happy, neutral, sad, surprised).
9
- - [facial_expression_recognition_mobilefacenet_2022july.onnx](https://github.com/opencv/opencv_zoo/raw/master/models/facial_expression_recognition/facial_expression_recognition_mobilefacenet_2022july.onnx) is implemented thanks to [Chengrui Wang](https://github.com/opencv).
10
 
11
  Results of accuracy evaluation on [RAF-DB](http://whdeng.cn/RAF/model1.html).
12
 
 
6
  Note:
7
  - Progressive Teacher is contributed by [Jing Jiang](https://scholar.google.com/citations?user=OCwcfAwAAAAJ&hl=zh-CN).
8
  - [MobileFaceNet](https://link.springer.com/chapter/10.1007/978-3-319-97909-0_46) is used as the backbone and the model is able to classify seven basic facial expressions (angry, disgust, fearful, happy, neutral, sad, surprised).
9
+ - [facial_expression_recognition_mobilefacenet_2022july.onnx](https://github.com/opencv/opencv_zoo/raw/master/models/facial_expression_recognition/facial_expression_recognition_mobilefacenet_2022july.onnx) is implemented thanks to [Chengrui Wang](https://github.com/crywang).
10
 
11
  Results of accuracy evaluation on [RAF-DB](http://whdeng.cn/RAF/model1.html).
12
 
demo.py CHANGED
@@ -35,7 +35,7 @@ except:
35
 
36
  parser = argparse.ArgumentParser(description='Facial Expression Recognition')
37
  parser.add_argument('--input', '-i', type=str, help='Path to the input image. Omit for using default camera.')
38
- parser.add_argument('--model', '-fm', type=str, default='./facial_expression_recognition_mobilefacenet_2022july.onnx', help='Path to the facial expression recognition model.')
39
  parser.add_argument('--backend', '-b', type=int, default=backends[0], help=help_msg_backends.format(*backends))
40
  parser.add_argument('--target', '-t', type=int, default=targets[0], help=help_msg_targets.format(*targets))
41
  parser.add_argument('--save', '-s', type=str, default=False, help='Set true to save results. This flag is invalid when using camera.')
 
35
 
36
  parser = argparse.ArgumentParser(description='Facial Expression Recognition')
37
  parser.add_argument('--input', '-i', type=str, help='Path to the input image. Omit for using default camera.')
38
+ parser.add_argument('--model', '-m', type=str, default='./facial_expression_recognition_mobilefacenet_2022july.onnx', help='Path to the facial expression recognition model.')
39
  parser.add_argument('--backend', '-b', type=int, default=backends[0], help=help_msg_backends.format(*backends))
40
  parser.add_argument('--target', '-t', type=int, default=targets[0], help=help_msg_targets.format(*targets))
41
  parser.add_argument('--save', '-s', type=str, default=False, help='Set true to save results. This flag is invalid when using camera.')