当前位置:网站首页>yolov5检测数据集标签数量
yolov5检测数据集标签数量
2022-08-09 07:30:00 【qq_52217283】
为了检测转换是否有漏的,或者识别有漏的,加了每个标注小于数量的检测
# -*- coding:utf8 -*-
import os
def get_txt_list(path_, max_):
result = []
for files in os.listdir(path_):
# print(files)
with open(path_ + "\\" + files, "r") as f:
length = f.read().split("\n")
if len(length) <= max_:
result.append(files)
return result
if __name__ == '__main__':
path = r"D:\Downloads\yolov5-6.1\runs\detect\exp2\labels"
print(get_txt_list(path, 7))
边栏推荐
猜你喜欢
随机推荐
毕业我选择了保家卫国,退伍我选择了华为外包
unity第一课
Inception V3 Eye Closure Detection
jmeter concurrency and some limitations of the press
Colors that Tkinter can choose from
CoCube传感器MPU6050笔记
TCP段重组PDU
stm32定时器之简单封装
975. 奇偶跳 有序集合
es6 基础知识详解 变量 字符串 解构赋值 函数 对象 从入门到精通
pip安装更换镜像
list与string转换
MUV LUV EXTRA 2019CCPC Qinhuangdao Station J Question KMP
学习小笔记---机器学习
Mysql实操
Kotlin协程 - 异常处理
子路由及路由出口配置
js数组相关知识复习
Pytorch 训练技巧
Pytorch中 nn.BatchNorm2d() 归一化操作