YOLOv4-pytorch icon indicating copy to clipboard operation
YOLOv4-pytorch copied to clipboard

# 训练集正负样本

Open lilangyi opened this issue 4 years ago • 3 comments

  1. 如果我想要在VOC格式训练集中加入负样本,请问是直接把负样本图片加入在JPEGImages文件夹下吗,需要生成对应的空白xml文件吗?

lilangyi avatar Jan 10 '21 12:01 lilangyi

https://github.com/argusswift/YOLOv4-pytorch/blob/c508af33ab4a5abb588f67c1e04237abc17af4e2/utils/datasets.py#L79-L92

Yes. You need labels with no object inside. But watch carefully as here's an assert about empty label, you can't just gen a empty xml imo.

jingtianyilong avatar Jan 11 '21 02:01 jingtianyilong

  1. 如果我想要在VOC格式训练集中加入负样本,请问是直接把负样本图片加入在JPEGImages文件夹下吗,需要生成对应的空白xml文件吗?

@lilangyi 你好,你把负样本添加进去了吗,你的负样本的xml文件是怎么设计的呢

Ixixuw avatar Feb 03 '21 04:02 Ixixuw

@jingtianyilong do u have any idea how to add negative sample?

bartproo avatar Jul 26 '21 10:07 bartproo