上一页 1 ··· 4 5 6 7 8 9 10 11 12 ··· 19 下一页
摘要: 此代码是我对maskrcnn的一些修改,基本还原所有内容,但更加简洁,使代码更易解读。里面有很多注释,非常详细,可自己慢慢品味。 若有一些问题,欢迎指正与交流。 此代码为训练文件.py """MASKRCNN algrithm for object detection and instance se 阅读全文
posted @ 2020-04-27 21:39 tangjunjun 阅读(6542) 评论(0) 推荐(0) 编辑
摘要: 此代码是我给我朋友写的,如果有人做平行机台订单接受方向或者论文,可以参考此代码,希望对读者有帮助和启示! 可复制直接运行,无需修改! /* PSO algrithm for accept order and schedule Written by tang jun on February 20, 2 阅读全文
posted @ 2020-04-27 21:19 tangjunjun 阅读(294) 评论(0) 推荐(0) 编辑
摘要: import cv2 as cvimport numpy as npimport osimport skimage.iopath_img=r'D:\data\compay_build\img' # 切割图像路径path_label=r'D:\data\compay_build\label' # 切割 阅读全文
posted @ 2020-04-16 18:08 tangjunjun 阅读(202) 评论(0) 推荐(0) 编辑
摘要: import ospath = 'C:/Users/tj/Desktop/dd' # path为labelme标注后的.json文件存放的路径json_file = os.listdir(path)for file in json_file: os.system("C:/soft/ev4/venv/ 阅读全文
posted @ 2020-04-16 09:44 tangjunjun 阅读(2845) 评论(0) 推荐(0) 编辑
摘要: 中文名称读取与保存方式如下主代码: img = cv2.imdecode(np.fromfile(data_root, dtype=np.uint8), -1)#中文名读取方式 cv2.imencode('.jpg', img_draw)[1].tofile(os.path.join(out_img 阅读全文
posted @ 2020-04-16 09:16 tangjunjun 阅读(322) 评论(0) 推荐(0) 编辑
摘要: import numpy as np# 如果使用labelme打标import skimagefrom PIL import Imageimport yamlimport osimport cv2 as cvdef extract_bboxes(mask): # [[num_instances, ( 阅读全文
posted @ 2020-03-03 22:23 tangjunjun 阅读(1211) 评论(0) 推荐(0) 编辑
摘要: 文字内容以后再补充: import numpy as np# 定义Box类,描述bounding box的坐标class Box(): def __init__(self, x, y, w, h): self.x = x self.y = y self.w = w self.h = hdef box 阅读全文
posted @ 2020-03-01 23:39 tangjunjun 阅读(1036) 评论(0) 推荐(0) 编辑
摘要: 最近发现在python语言中很多模型的继承类喜欢使用super()函数来调用父类,我也看了一些其它博客的解释,发现有些含混,令读者无法很快理解。因此,本博客进对super()函数进行易懂哦那个的解释如下: 一. super()函数的定义及解释。 super() 函数是用于调用父类(超类)的一个方法。 阅读全文
posted @ 2020-02-23 15:24 tangjunjun 阅读(824) 评论(0) 推荐(0) 编辑
摘要: 关于mask-rcnn 网络模型resnet101或resnet50的结构,相信很多读者都能理解,或许还会觉得这一部分源码解读较为容易。而之后原始数据的处理及rpn网络之后的数据处理较难,为此本文解决前者问题。主要处理问题如下: 1.给定原始图片大小,如何处理成模型训练的图片尺寸及处理对应的mask 阅读全文
posted @ 2020-02-20 17:27 tangjunjun 阅读(2165) 评论(0) 推荐(0) 编辑
摘要: 决策树算法的理解及实现 本文基本复制原文来源:http://www.cnblogs.com/lliuye/p/9008901.html,我个人认为已经非常详细了,所有理论基本来自周志华《机器学习》的决策树章节! 我主要是将该博客提供的源码进行了实践与大量注解,以便读者更容易理解。而为了读者方便理解, 阅读全文
posted @ 2020-02-19 16:44 tangjunjun 阅读(1471) 评论(0) 推荐(0) 编辑
上一页 1 ··· 4 5 6 7 8 9 10 11 12 ··· 19 下一页
https://rpc.cnblogs.com/metaweblog/tangjunjun