您好,我在参考 SpacemiT 官方 model-zoo-vision 仓库中的 emotion 示例时遇到一个模型下载问题,想咨询一下。
仓库地址:
相关目录:
examples/emotion
applications/emotion_detection
根据配置文件,emotion 示例需要的模型路径为:
~/.cache/models/vision/emotion/emotion_resnet50_final.q.onnx
另外 applications/emotion_detection 中还涉及:
~/.cache/models/vision/emotion/emotion_resnet50_features.dynq.onnx
~/.cache/models/vision/emotion/emotion_lstm_affwild2_final.q.onnx
但是我执行官方脚本下载后,得到的不是 ONNX 模型,而是 400 多字节的 XML 错误文件。检查结果如下:
emotion_resnet50_final.q.onnx:443 字节,XML 1.0 document
emotion_resnet50_features.dynq.onnx:449 字节,XML 1.0 document
emotion_lstm_affwild2_final.q.onnx:448 字节,XML 1.0 document
文件内容显示:
NoSuchKey
The specified key does not exist.
对应的下载地址是:
https://archive.spacemit.com/spacemit-ai/model_zoo/vision/emotion/emotion_resnet50_final.q.onnx
https://archive.spacemit.com/spacemit-ai/model_zoo/vision/emotion/emotion_lstm_affwild2_final.q.onnx
请问这几个模型文件是否已经迁移到新的下载路径?能否提供有效的模型下载地址,或者提供当前版本推荐使用的 emotion 模型文件?
另外还想确认几个配置问题:
- assets/labels/emotion.txt 中的类别顺序是否仍为:
neutral、happiness、sadness、surprise、fear、disgust、anger - examples/emotion/config/emotion.yaml 中的配置是否仍然适用于当前模型?
- K1 上启用 SpaceMITExecutionProvider 是否还需要额外环境变量或动态库路径配置?
- 如果运行时出现 libonnxruntime.so 找不到,推荐的 LD_LIBRARY_PATH 应该如何设置?
谢谢。
:~/model-zoo-vision$ cd ~/model-zoo-vision
rm -rf ~/.cache/models/vision/emotion_test
mkdir -p ~/.cache/models/vision/emotion_test
cd ~/.cache/models/vision/emotion_test
echo “下载 static emotion model…”
curl -L -o emotion_resnet50_final.q.onnx
https://archive.spacemit.com/spacemit-ai/model_zoo/vision/emotion/emotion_resnet50_final.q.onnx
echo “下载 feature model…”
doneho -c 120 “$f”====“节:”/spacemit-ai/model_zoo/vision/emotion/emotion_ls
下载 static emotion model…
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:–:-- --:–:-- --:–:-- 0 0 0 0 0 0 0 0 --:–:-- --:–:-- --:–:-- 100 443 100 443 0 0 778 0 --:–:-- --:–:-- --:–:-- 778
下载 feature model…
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:–:-- --:–:-- --:–:-- 100 449 100 449 0 0 886 0 --:–:-- --:–:-- --:–:-- 8100 449 100 449 0 0 885 0 --:–:-- --:–:-- --:–:-- 885
下载 lstm model…
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:–:-- --:–:-- --:–:-- 100 448 100 448 0 0 813 0 --:–:-- --:–:-- --:–:-- 816
检查结果:
总计 12K
-rw-rw-r-- 1 bianbu1 bianbu1 448 6月11日 17:03 emotion_lstm_affwild2_final.q.onnx
-rw-rw-r-- 1 bianbu1 bianbu1 449 6月11日 17:03 emotion_resnet50_features.dynq.onnx
-rw-rw-r-- 1 bianbu1 bianbu1 443 6月11日 17:03 emotion_resnet50_final.q.onnx
emotion_lstm_affwild2_final.q.onnx: XML 1.0 document, ASCII text
emotion_resnet50_features.dynq.onnx: XML 1.0 document, ASCII text
emotion_resnet50_final.q.onnx: XML 1.0 document, ASCII text
每个文件前 120 字节:
===== emotion_lstm_affwild2_final.q.onnx =====
NoSuchKey
The specified key does not exist.
NoSuchKey
The specified key does not exist.
NoSuchKey
The specified key does not exist.</Me
bianbu1@k1:~/.cache/models/vision/emotion_test$ rm -rf ~/.cache/models/vision/emotion_test
rm -f ~/.cache/models/vision/emotion/*.onnx
bianbu1@k1:~/.cache/models/vision/emotion_test$ cd /home/bianbu1
pkill -f optimized_camera
pkill -f decision_engine.py
pkill -f web_preview.py
pkill -f screen_interaction.py
pkill -f emotion_ai_worker.py
pkill -f aplay
/home/bianbu1/start_warm_station_all.sh
sleep 10
cat /home/bianbu1/camera_status.json
ps -o pid,pcpu,pmem,cmd -C python3us | head -c 500
正在关闭旧程序…
正在启动摄像头识别程序…
正在启动决策总控程序…
增强状态分析程序已暂时停用
正在启动交互小屏程序…
正在启动网页预览程序…
暖芯驿站多模态识别系统已启动
电脑浏览器打开:
http://10.34.218.232:8080
查看摄像头日志:tail -f /home/bianbu1/camera.log
查看增强分析日志:tail -f /home/bianbu1/enhanced.log
查看网页日志:tail -f /home/bianbu1/web.log
{
“user_present”: true,
“emotion”: “NEUTRAL”,
“confidence”: 0.93,
“probabilities”: {
“HAPPY”: 0.07,
“NEUTRAL”: 0.93,
“STANDBY”: 0.0
},
“face_box”: {
“x”: 140,
“y”: 14,
“w”: 150,
“h”: 150
},
“time”: “2026-06-11 17:05:10”
}{“user_present”: true, “emotion”: “NEUTRAL”, “confidence”: 0.93, “probabilities”: {“HAPPY”: 0.07, “NEUTRAL”: 0.93, “STANDBY”: 0.0}, “face_box”: {“x”: 140, “y”: 14, “w”: 150, “h”: 150}, “time”: “2026-06-11 17:05:11”, “last_action”: “”, “chat_reply”: “当前状态较平稳,可以询问用户是否需要帮助。”, “chat_state”: “已接入规则式情绪问答”, “raw_emotion”: “NEUTRAL”, “display_probabilities”: {“HAPPY”: 0.07, “NEUTRAL”: 0.93, “STANDBY”: 0.0}, “current_frame_probabilities”: {"HA
PID %CPU %MEM CMD
32068 40.3 1.7 python3 optimized_camera_working.py
32070 1.6 0.1 python3 -u decision_engine.py
32072 69.5 3.6 python3 -u screen_interaction.py
32073 4.7 0.2 python3 web_preview.py
我想把modei-zoo模型接进我的板子里面