LFW数据集的VOC标注

2022-07-19 · 1 分钟阅读时长

LFW 数据集标注后的 VOC 格式。一张图片只标注了一张人脸,人脸的范围中包含额头、耳朵等裸露的头部皮肤。

img_list.py

按照/lfw/peopleDevTrain.txt/lfw/peopleDevTest.txt的顺序,将图片路径导出到/lfw/img_list.txt

img_dir_2_txt(is_train = True/False)

jpg_2_dir.py

按照/lfw/peopleDevTrain.txt/lfw/peopleDevTest.txt的分类,将图片分别放到/lfw/train根目录或/lfw/test根目录,不再放置到人名子目录。

# __main__
if __name__ == '__main__':
    img_dir_2_txt(is_train=True)
    copy_img_2_dir(is_train=True)
    img_dir_2_txt(is_train=False)
    copy_img_2_dir(is_train=False)

相关

使用chaiwenda/ImgLabel手动标注。

License

MIT license

顿玄
Authors
青山掌门
欢迎来到顿玄的博客哦ヾ(≧▽≦*)o