
python
开心的宇大帅
C++算法软件工程师
展开
-
NameError: name ‘fprint‘ is not defined
我遇到的这个问题是在 ‘thop’ 库中,首先找到这行的源码,没有fprint,说明他没有定义过,我们就把他改掉,可以用print的format格式。thop.profile(model, inputs=(input,))报错Solution: if m_type in custom_ops: # if defined both op maps, use custom_ops to overwrite. fn = custom_ops[m_type]原创 2021-10-26 15:57:11 · 876 阅读 · 0 评论 -
python安装face_recognition之三步搞定
上干货因为亲身经历face-recognition 的安装痛苦,所以总结最简易最快的方法,供大家食用。建议大家直接上清华源(-i ihttps://pypi.tuna.tsinghua.edu.cn/simple),更快哦!嘻嘻1、需要cmake环境,没有环境创造环境。直接pip install cmake2、需要dlib环境,那还等什么,直接pip install dlib。3、那就主角登场,pip install face_recognition,完工!...原创 2020-07-18 17:27:18 · 1132 阅读 · 0 评论