发布时间:2021-04-09 16:43:11
import numpy as npimport operator"""函数说明:创建数据集Returns: group -数据集 labels -分类标签"""def dataCreat(): #四组二维空间 group = np.array([[1,101],[5,89],[10.........【阅读全文】
发布时间:2021-04-08 17:19:01
# print("hello world")# a=1## print(id(a))# a=3# print(id(a))## # 十进制21转化为二进制# # 21/2=10........1# # 10/2=5........0# # 5/2=2.........1# # 2/2=1.........0# # 1/2=0.........1## #从下往上10101## #.........【阅读全文】
发布时间:2021-04-07 17:21:14
import numpy as npimport matplotlib.pyplot as pltdef py_cpu_nms(nms_show, dets, thresh):# nms操作 "Pure Python NMS baseline" # x1、y1、x2、y2以及score赋值 x1 = dets[:,0] y1 = dets[:,.........【阅读全文】
发布时间:2021-04-06 17:18:49
import numpy as npimport pandas as pdfrom sklearn.model_selection import train_test_splitfrom sklearn.utils import shuffledef getdata(fpath): ''' 定义getdata 获取训练集数据 ''' &nb.........【阅读全文】
发布时间:2021-04-02 17:04:07
xml数据:<annotation><filename>8a0004.jpg</filename><size><width>960</width><height>1280</height><depth>3</depth></size><object><name>object</name><bndbox><xmin>314</xmin><ymin>366</ymin><xmax>427</xmax><ymax>430</ymax></bndbox></obje.........【阅读全文】