![](https://img-blog.csdnimg.cn/20201014180756925.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
python
「已注销」
这个作者很懒,什么都没留下…
展开
-
make coco tex
import osimport numpy as npfrom PIL import Imagedef get_img_name(): imglist = os.listdir('D:\\Downlode\\imagenet\\train') imgnamefile = 'D:\\Downlode\\imagenet\\meta\\train.txt' if os.path.exists(imgnamefile): imgnamefile = open(im.原创 2020-12-23 15:23:14 · 117 阅读 · 0 评论 -
xml to json
import xmltodictimport jsonimport os# xml to jsondef xmlToJson(xml_str): try: json_dict = xmltodict.parse(xml_str, encoding='utf-8') json_str = json.dumps(json_dict, indent=2) return json_str except: pass#.原创 2020-12-23 15:21:44 · 230 阅读 · 0 评论 -
voc to coco
import osimport jsonimport xml.etree.ElementTree as ETimport numpy as npimport cv2def _isArrayLike(obj): return hasattr(obj, '__iter__') and hasattr(obj, '__len__')class voc2coco: def __init__(self, devkit_path=None, year=None): .原创 2020-12-23 15:19:54 · 123 阅读 · 0 评论 -
Faster-rcnn Pytorch1.0版本 Linux调试笔记
代码链接:https://github.com/jwyang/faster-rcnn.pytorch/tree/pytorch-1.0pytorch 1.0 cuda 8.0 python 3.61.python setup.py build develop参考答案将setup.py 中的from distutils.core import setup#替换为from setup...原创 2020-04-23 16:43:22 · 997 阅读 · 0 评论 -
yolo v3 pytorch版 训练自己的数据集
Yolo v3入坑指南Yolo v3比Frcnn好调试多了……就是数据集准备比较麻烦……但是好Debug,linux和win10差别不大……代码链接(cpu版本):Yolo v3这个代码……作者说的太草率了……data怎么准备都没说清……好歹issue里面有大神解答,给了傻瓜版教程,运行他的几个脚本就好了,data文件夹就准备好啦!data文件准备,按照这个数据集准备虽然这个作者是用它...原创 2020-03-08 20:36:16 · 886 阅读 · 0 评论 -
LableImg使用(健忘
激活环境后,cd 到labelimg的文件夹中,然后python labelImg.py没了……好像没必要专门写个博客……原创 2020-02-21 19:10:09 · 271 阅读 · 0 评论 -
Win10 faster-rcnn pytorch1.0入坑记录及数据集准备
环境:win10 py36 cuda10 pytorch1.0源代码:https://github.com/jwyang/faster-rcnn.pytorch/tree/pytorch-1.0(如果是pytorch0.4可以看https://github.com/jwyang/faster-rcnn.pytorch/)两个代码都是linux下的,win10坑很多……首先特别感谢男票的鼎力...原创 2020-02-16 21:15:40 · 2443 阅读 · 13 评论 -
自制VOC数据集笔记
自制VOC数据集参考博客:https://blog.csdn.net/weixin_43380510/article/details/83004127data文件夹格式:---VOC2007 ------Annotations ------ImagesSet ---------Main ------JPEGImagesAnnotations放x...原创 2020-02-15 18:48:07 · 428 阅读 · 0 评论 -
python实现xml转化为Json并进行写入
嗷嗷,网上找了个脚本参考,自己改成傻瓜模式的xml转化为json并进行写入。import xmltodictimport json# xml to jsondef xmlToJson(xml_str): try: json_dict = xmltodict.parse(xml_str, encoding='utf-8') json_str =...原创 2020-02-13 22:17:43 · 755 阅读 · 0 评论