staticcreateDashLine(color:number,width:number,height:number=1):egret.Shape{let$dashLineSp:egret.Shape=newegret.Shape();$dashLineSp.width=width;$dashLineSp.height=height;$dashLineSp.graphics.lineStyle
分类:
其他好文 时间:
2020-01-12 21:40:59
阅读次数:
184
this.bgShape=newegret.Shape();this.bgShape.width=w;this.bgShape.height=h;let$max:egret.Matrix=this.bgShape.matrix;$max.a=$max.d=0;$max.c=$max.b=1;this.bgShape.graphics.beginGradientFill(egret.Gradient
分类:
其他好文 时间:
2020-01-11 22:32:32
阅读次数:
372
ubuntu this computer has only 1.1G space remaining ubuntu this computer has only 1.1G space remaining A: https://ubuntuforums.org/printthread.php?t=23 ...
分类:
系统相关 时间:
2020-01-09 22:22:31
阅读次数:
143
运行torch函数 torch.nn.functional.cross_entropy(pre, label, ignore_index=0)时报错,pre的shape为[ batch_size , n] label 的shape为[ batch_size]. 其中batch_size是batch的 ...
分类:
其他好文 时间:
2020-01-08 23:16:38
阅读次数:
248
1、 a b c d dim/len(shape):2 shape/size:torch.Size([2, 2]) numel == 2 * 2(number of element) 2、三种常用数据类型 torch.FloatTensor() torch.ByteTensor() torch.In ...
分类:
其他好文 时间:
2020-01-08 23:00:09
阅读次数:
117
水平翻转(标注翻转): def random_horizontal_flip(image, bboxes): _, w, _ = image.shape [:: 1] 顺序相反操作 a = [1, 2, 3, 4, 5] a[:: 1] Out[3]: [5, 4, 3, 2, 1] image = ...
分类:
其他好文 时间:
2020-01-08 16:11:02
阅读次数:
140
水平翻转(标注翻转): def random_horizontal_flip(image, bboxes): _, w, _ = image.shape # [::-1] 顺序相反操作 # a = [1, 2, 3, 4, 5] # a[::-1] # Out[3]: [5, 4, 3, 2, 1] ...
分类:
其他好文 时间:
2020-01-08 16:07:33
阅读次数:
97
"Java Programming Language" Lambda Expressions, a new language feature, has been introduced in this release. They enable you to treat functionality as ...
分类:
编程语言 时间:
2020-01-08 14:28:34
阅读次数:
73
还在更新中import numpy as npimport random# build auxiliary functionclass optstruct: def __init__(self, datax, datay, C, toler): self.x = datax self.label = ...
分类:
其他好文 时间:
2020-01-08 01:03:18
阅读次数:
183
1. 打开Allegro软件,新建Format symbol 2. 导入DXF LOGO,或者在Allegro中制作一个简易的LOGO 3. 将图形转换为Shape 4. 在BRD文件中增加刚做好的LOGO ...
分类:
其他好文 时间:
2020-01-05 19:09:17
阅读次数:
165