随笔
日常笔记
炼丹术师
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
python Qt platform
遇到报错 qt.qpa.plugin: Could not load the Qt platform plugin “xcb” in This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem. 先卸载pip安装的pyqt5 pip uninstall pyqt5 然后再用conda安装 conda原创 2021-07-29 14:43:03 · 734 阅读 · 1 评论 -
yolo格式转voc/coco
yolo数据集txt标注格式为: 0 0.159375 0.552083 0.121875 0.381944 0 0.776953 0.747222 0.099219 0.361111 下面的代码是网上找的,这里还有两个github项目参考 https://github.com/DLLXW/objectDetectionDatasets https://github.com/surserrr/yolo_to_coco yolo2voc https://blog.youkuaiyun.com/xiaobumi123/ar原创 2021-01-18 21:03:16 · 1721 阅读 · 0 评论 -
git无法添加文件夹下文件
git 无法添加文件夹下文件 发现无法提交某个子文件夹下的文件。 google后发现可能是该子文件夹下有.git文件夹导致无法上传。 删除子文件夹下.git后,依然无法提交子文件夹下的文件。 继续google, 尝试以下方法: git rm --cached directory git add directory 注:directory为子文件夹的路径。 但是执行git rm --cached directory时,提示 fatal: Unable to create ‘xx/.git/index.lock转载 2020-11-13 21:17:10 · 728 阅读 · 0 评论 -
python文件/文件夹操作
分离路径和文件名,返回列表 filepath,fullflname = os.path.split(file_path) 分离文件名和扩展名,返回列表 fname,ext = os.path.splitext(fullflname) 移动文件,将某个文件夹里面的文件移动到另一个文件夹里面 import shutil import os def remove_file(old_path, new_path): print(old_path) print(new_path) fil原创 2020-11-13 14:56:15 · 239 阅读 · 0 评论
分享