摘要: s = 'aaabbacccc'def max_length_substring(s): item_list = [] item_max = 0 for i in s: if i not in item_list: item_list.append(i) else: if item_max < le 阅读全文
posted @ 2019-12-03 21:24 CoyLee 阅读(144) 评论(0) 推荐(0) 编辑
摘要: s1 = '3 1 5 21 10's2 = '0 3 3 1 5's3 = '3'def numberTree(s1, s2, s3): s1 = s1.split(' ') s2 = s2.split(' ') c = s3.split(' ') count = 1 while True: b 阅读全文
posted @ 2019-12-03 21:23 CoyLee 阅读(180) 评论(0) 推荐(0) 编辑
摘要: 在CVPR2019中,Generalized Intersection over Union: A Metric and A Loss for Bounding Box Regression介绍了一种新的评价指标GIoU 1. 为什么要提出GIoU? 对于1-IoU作为距离度量,有四个优点:满足非负 阅读全文
posted @ 2019-05-25 16:46 CoyLee 阅读(4843) 评论(0) 推荐(0) 编辑
摘要: 锚框:以每一个像素点为中心生成多个大小和宽高比不同的边界框 图像 高h , 宽w 大小为s∈(0,1] 且 宽高比为r>0 锚框的高 h1 = hs/√r 锚框的宽 w1 = ws√r s1,...,sn 与 r1,... ,rm 这样一张图的锚框有 whnm 个 但对于一点来说,我们感兴趣的框有: 阅读全文
posted @ 2019-05-18 21:46 CoyLee 阅读(1374) 评论(0) 推荐(0) 编辑
摘要: 2019年5月8日问题:在不同的路由中的IP摄像头无法调取 解决方案:建立反向TCP隧道,实现内网之间相连 以下总结,如有错误,请留言,谢谢! 一. 计算机网络基础总结: 1. TCP/IP: “协议”:就是通信计算机双方必须共同遵从的一组约定,例如怎样建立连接、怎样互相识别等,网络协议的三要素是: 阅读全文
posted @ 2019-05-11 16:53 CoyLee 阅读(593) 评论(0) 推荐(0) 编辑
摘要: 1. 学习目标 (1)目录结构规范 (2)urls路由方式 (3)settings配置 (4)ORM操作 2. Django初识 Django是MVT模式,其实还是mvc模式: M和以前一样是model V是View与mvc中的C的功能一样 T是Templates,是模板的意思,与mvc中的V的功能 阅读全文
posted @ 2019-04-28 13:51 CoyLee 阅读(319) 评论(0) 推荐(1) 编辑
摘要: 1. 学习Django的运行机制: 2. 学习python 序列构成的数组 https://www.cnblogs.com/coylee/p/10744226.html 阅读全文
posted @ 2019-04-21 12:02 CoyLee 阅读(143) 评论(0) 推荐(1) 编辑
摘要: 1. 列表 使用 list.sort方法 和内置函数 sorted 排序 不管是list.sort还是sorted函数,list.sort会就地排序列表,不会把列表复制一份,sorted会产生新的对象,有两个可选关键参数:reverse 和 key。 reverse:ture为降序。默认为false 阅读全文
posted @ 2019-04-21 11:53 CoyLee 阅读(2698) 评论(0) 推荐(1) 编辑
摘要: 1. 解决android在线返回错误,并及时更新版本 工具:bugly 网站:https://bugly.qq.com/v2/index 解决办法:(1) 配置Android SDK 和 应用升级 (2) 将申请的App ID写入程序 效果:如下图 查看异常统计: 查看异常错误: 运营统计查看: 更 阅读全文
posted @ 2019-04-13 14:13 CoyLee 阅读(169) 评论(0) 推荐(0) 编辑
摘要: 常用Python的模块(math)、魔术方法(__repr__ 与 __abs__与__bool__与__add__与__mul__)构建二维向量 1.模块math中的常用方法: math.e 自然常数e >>> math.e 2.718281828459045 math.pi 圆周率pi >>> 阅读全文
posted @ 2019-04-11 22:14 CoyLee 阅读(302) 评论(0) 推荐(1) 编辑