
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-cuda make clean make 然后按官网教程继续操...原创 2019-11-04 16:45:32 · 5155 阅读 · 0 评论 -
【faiss】使用gunicorn进行search和build index时出现错误 WORKERTIMEOUT
faiss中的search功能在CPU上支持多线程访问,GPU不支持,search/add和add/add都不支持 需要自己加锁 official documentation https://github.com/facebookresearch/faiss/wiki/FAQ原创 2019-08-20 15:27:51 · 515 阅读 · 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 *’ 错误 solution ndarrays必须是numpy.float32类型,不能是float64 检查了了要添加的数据类型,的确是float64,如下图 plu...原创 2019-08-28 11:54:35 · 7575 阅读 · 0 评论