使用py-feat 进行面部表情分析
代码基本是官网上粘贴下来的,就改了一下文件名称
不知道这样报错的原因是什么
请各位帮忙看看
打算使用这个来对录像数据进行分析
py-feat官网
https://py-feat.org/basic_tutorials/03_detector_vids.html
报错图片
from feat import Detector
detector = Detector()
feat.detector.Detector(face_model=retinaface, landmark_model=mobilefacenet, au_model=xgb, emotion_model=resmasknet, facepose_model=img2pose)
from feat.utils.io import get_test_data_path
import os
test_data_dir = get_test_data_path()
test_video_path = os.path.join(test_data_dir, "32-1.mp4")
# Show video
from IPython.core.display import Video
Video(test_video_path, embed=False)
video_prediction = detector.detect_video(test_video_path, skip_frames=24)
video_prediction.head()
video_prediction.shape
video_prediction.loc[[24, 48]].plot_detections(faceboxes=False, add_titles=False)
axes = video_prediction.emotions.plot()
这个跟修改文件名称没关系,你看看download_url(url,...)中url的值是多少,是不是无法访问下载。
望采纳!!点击该回答右侧的“采纳”按钮即可采纳!这个错误信息显示的是在加载模型时出错了。可能是模型文件加载失败了,或者模型参数设置不正确。请确保模型文件路径和参数设置正确。