- 博客(10)
- 资源 (34)
- 收藏
- 关注
翻译 pytorch-Tersor
查看Tensor中的元素总个数,可使用Tensor.numel()或者Tensor.nelement()函数,两者等价。
2020-07-29 09:27:26 288
翻译 python基础-类
在Python中,属性和方法的访问权限只有两种,也就是公开的和私有的,如果希望属性是私有的,在给属性命名时可以用两个下划线作为开头。大多数Python程序员会遵循一种命名惯例就是让属性名以单下划线开头来表示属性是受保护的,本类之外的代码在访问这样的属性时应该要保持慎重。那么如果想访问属性可以通过属性的getter(访问器)和setter(修改器)方法进行对应的操作。# 访问器 - getter方法 @property def age(self): return se
2020-07-16 16:36:18 434
翻译 python基础-字符串
字符串类型是一种结构化的、非标量类型。字符串中的\表示转义,通过在字符串的最前面加上字母r来加以说明“\”不是转义。+运算符来实现字符串的拼接*运算符来重复一个字符串的内容in和not in来判断一个字符串是否包含另外一个字符串(成员运算)[]和[:]运算符从字符串取出某个字符或某些字符(切片运算)a, b = 5, 10print('{0} * {1} = {2}'.format(a, b, a * b))print(f'{a} * {b} = {a * b}')...
2020-07-16 14:08:11 114
翻译 python基础-for和while
for i in range(1, 101, 2):#range(start, stop, stride)前闭后开 print('i:', i)while:break关键字来提前终止循环,需要注意的是break只能终止它所在的那个循环;continue,它可以用来放弃本次循环后续的代码直接让循环进入下一轮import randomanswer = random.randint(1, 100)counter = 0while True: counter += 1 ..
2020-07-15 12:51:31 132 1
翻译 python基础-输出
a = 9b = 2print('%d + %d = %d' % (a, b, a + b))print('%d - %d = %d' % (a, b, a - b))print('%d * %d = %d' % (a, b, a * b))print('%d / %d = %f' % (a, b, a / b))print('%d // %d = %d' % (a, b, a // b))print('%d %% %d = %d' % (a, b, a % b))print('%d **.
2020-07-15 11:41:31 363
原创 pytorch—yolov3训练自己的数据集
注意:本篇博客直接使用VOC2007数据集1.数据集Labelimg软件构建数据集,Labelimg项目地址:https://github.com/tzutalin/labelImg,Labelimg快捷键:Ctrl + u Load all of the images from a directoryCtrl + r Change the default annotation target dirCtrl + s SaveCtrl + d Copy the cur...
2020-07-05 17:26:22 1336
原创 darknet-yolov3训练自己的数据
注意:本篇博客直接使用VOC2007数据集1.数据集Labelimg软件构建数据集,Labelimg项目地址:https://github.com/tzutalin/labelImg,Labelimg快捷键:Ctrl + u Load all of the images from a directory Ctrl + r Change the default annotation target dir Ctrl + s Save Ctrl + d Copy t
2020-07-05 16:43:04 266
翻译 安装
在Windows, 运行:pip install git+https://github.com/philferriere/cocoapi.git#egg=pycocotools^&subdirectory=PythonAPI作者:避雷殝链接:https://www.jianshu.com/p/9a9cc045518b来源:简书著作权归作者所有。商业转载请联系作者获得授权,非商业转载请注明出处。...
2020-07-04 21:54:00 153
翻译 python基础-list
序列是Python中最基本的数据结构。序列中的每个元素都分配一个数字 - 它的位置,或索引,第一个索引是0。序列都可以进行的操作包括索引,切片,加,乘,检查成员。创建列表:list= [1, 2, 3, 4, 5 ]list[1] #2 使用下标索引来访问列表中的值list.append('6') 使用append()方法来添加del list[-1] ...
2020-07-02 10:53:02 187
JFinal logoJAVA 极速WEB+ORM框架 JFinal
2016-07-28
iBase4J-springmvc-mybatis
2016-07-24
eclipse_springmvc_maven_mybstis3_junit4
2016-07-11
spring_maven_mybatis3_junit4
2016-07-08
springmvc_mybatis3_maven_junit4
2016-07-08
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人