06 2023 档案
摘要:# Faiss 简介 ## 1.Faiss是什么 Faiss是Facebook Ai Research开发的一款稠密向量检索工具。引用Faiss Wiki上面的一段简介 > Faiss is a library for efficient similarity search and clusteri
阅读全文
摘要:# Python pygments库 简单介绍 pygments是一个将代码格式化的Python库,可以将代码格式化为html代码、图片、rtf文件等多种格式。 [官网:pygments.org](https://pygments.org/) [PyPI:pygments](https://pypi
阅读全文
摘要:# python 字符串前加f、r、b、u ### 一、字符串前加"f" 1. **%** 可以使用 % 格式化字符串。 ``` c = (250, 250) # 使用 % 格式化 s1 = "坐标为:%s" % c # TypeError: not all arguments converted
阅读全文
摘要:# python 中 fnmatch模块, textwrap 模块 **fnmatch模块** 查找文件 使用fnmatch来查找特定的文件,大部分情况下,使用字符串匹配查找特定的文件就能满足需求,如果需要更加灵活的字符串匹配,可以使用标准库中的fnmatch库,这个库专门用来进行文件名匹配,支持使
阅读全文
摘要:# Python Tox介绍和使用 tox.ini 是一个配置文件,用于配置和运行项目的测试环境。在 tox.ini 中,你可以指定项目所依赖的 Python 版本,以及需要安装的 Python 包。你还可以配置各种测试场景,例如运行单元测试、集成测试等等。在项目根目录下运行 tox 命令,tox
阅读全文
摘要:# 安装faiss-gpu失败的问题 安装faiss-gpu出现问题: 尝试使用: ``` conda install -c conda-forge faiss-gpu ``` 或者用对应的whl 包 https://github.com/kyamagu/faiss-wheels/releases/
阅读全文
摘要:# Docker 登录英伟达 Nvidia NGC 下载容器镜像教程 https://blog.itdevwu.com/post/1821/
阅读全文
摘要:# cpu ,进程,线程 https://www.cnblogs.com/shijiaqi1066/p/3836017.html https://zhuanlan.zhihu.com/p/79772089 https://blog.csdn.net/qq_40317897/article/detai
阅读全文
摘要:# docker 容器中 os.cpu_count() , multiprocessing.cpu_count() 都为物理机cpu 数 不论起容器的时候 是否加 --cpus 1 --cpuset-cpus 0 docker 容器中 os.cpu_count() , multiprocessing
阅读全文