12 2024 档案

摘要:点击查看代码 import cv2 import numpy as np import json import os def list_jsons(folder_path): for filename in os.listdir(folder_path): if filename.endswith( 阅读全文
posted @ 2024-12-19 10:46 阳光天气 阅读(2) 评论(0) 推荐(0) 编辑
摘要:单点和双点的错误标签转化不成多边形,导致不能转化成实例分割的训练集所以在训练前需要去除掉 点击查看代码 import cv2 import numpy as np import json import os # 去除一两个点的小polygon def remove_specific_labels(j 阅读全文
posted @ 2024-12-19 10:02 阳光天气 阅读(23) 评论(0) 推荐(0) 编辑
摘要:去除labelme空的标注文件和对应的图片 点击查看代码 import os import json def is_empty_labelme_file(file_path): with open(file_path, 'r') as f: data = json.load(f) # 检查图像数据是 阅读全文
posted @ 2024-12-06 11:10 阳光天气 阅读(26) 评论(0) 推荐(0) 编辑