- 博客(3)
- 资源 (2)
- 收藏
- 关注
转载 数据集重新命名
import osclass ImageRename(): def __init__(self): self.path = 'E:\\object_detection_learning\\data\\data1\\JPEGImages' def rename(self): filelist = os.listdir(self.path)...
2019-04-20 21:03:41 1207
原创 一些常用模型读取
常用模型(keras训练):fileName = 'weights/' + str(score[1])[0:5] +', ' + str(datetime.now()) + '.h5'model.save_weights(fileName)最后存为:xxx.h5因为该函数只保存的模型参数不含模型结构,因此使用时候需要重新定义模型结构再载入参数。定义模型结构from keras...
2019-04-18 16:57:43 530
原创 关于OpenCV版本问题带来的两个小错误
写写代码,跑跑程序,出现两个小错误,解决之。(1)cv2.morphologyExmask=cv2.morphologyEx(mask,cv2.MORPH_CLOSE,kernalC1)TypeError: Expected cv::UMat for argument 'kernel'(2)cv2.findContours_,countours0,hierarchy=cv2....
2019-04-06 17:52:33 14046 1
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人