![](https://img-blog.csdnimg.cn/20201014180756928.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
face detection
ninnyyan
自强
展开
-
【faiss】ModuleNotFoundError: No module named '_swigfaiss'
使用conda install faiss-cpu -c pytorch安装faiss的cpu版本后,import faiss,提示这个错误解决方法:下载facebook上面的faiss repository在faiss目录下,运行./configure && make./configure --without-cudamake cleanmake然后按官网教程继续操...原创 2019-11-04 16:45:32 · 5009 阅读 · 0 评论 -
【faiss】使用gunicorn进行search和build index时出现错误 WORKERTIMEOUT
faiss中的search功能在CPU上支持多线程访问,GPU不支持,search/add和add/add都不支持需要自己加锁official documentationhttps://github.com/facebookresearch/faiss/wiki/FAQ原创 2019-08-20 15:27:51 · 433 阅读 · 0 评论 -
【faiss】TypeError: in method 'IndexFlat_add', argument 3 of type 'float const *'
code建立好index后,调用index.add方法,添加数据进index出现TypeError: in method ‘IndexFlat_add’, argument 3 of type ‘float const*’错误solutionndarrays必须是numpy.float32类型,不能是float64检查了了要添加的数据类型,的确是float64,如下图plu...原创 2019-08-28 11:54:35 · 6897 阅读 · 0 评论