摘要: 先上图! 十天+两台电脑才摸索出来的~~! 环境: Ubuntu18.04+RTX3090+CUDA11.0+Cudnn v8+Pytorch-nightly 没错,是3090!(手动滑稽) 第一个坑:Windows(尤其是Win7)属实不行,Pytorch装不上,另外3090只能搭配Pytorch 阅读全文
posted @ 2020-11-03 20:12 爬到牢底坐穿 阅读(731) 评论(0) 推荐(0) 编辑
摘要: # 导入工具包 import numpy as np import argparse import cv2 # 设置参数 def order_points(pts): # 一共4个坐标点 rect = np.zeros((4, 2), dtype = "float32") # 按顺序找到对应坐标01 阅读全文
posted @ 2020-09-19 17:23 爬到牢底坐穿 阅读(612) 评论(0) 推荐(0) 编辑
摘要: import cv2 def sort_contours(cnts, method="left-to-right"): reverse = False i = 0 if method == "right-to-left" or method == "bottom-to-top": reverse = 阅读全文
posted @ 2020-09-19 11:38 爬到牢底坐穿 阅读(659) 评论(0) 推荐(0) 编辑
摘要: import numpy as np import tensorflow as tf from tensorflow.keras.layers import Dropout, Dense, GRU import matplotlib.pyplot as plt import os import pa 阅读全文
posted @ 2020-09-07 19:51 爬到牢底坐穿 阅读(1599) 评论(0) 推荐(0) 编辑
摘要: import numpy as np import tensorflow as tf from tensorflow.keras.layers import Dropout, Dense, LSTM import matplotlib.pyplot as plt import os import p 阅读全文
posted @ 2020-09-07 19:48 爬到牢底坐穿 阅读(3517) 评论(0) 推荐(0) 编辑
摘要: import numpy as npimport tensorflow as tffrom tensorflow.keras.layers import Dropout, Dense, SimpleRNNimport matplotlib.pyplot as pltimport osimport p 阅读全文
posted @ 2020-09-07 19:34 爬到牢底坐穿 阅读(902) 评论(0) 推荐(0) 编辑
摘要: #字母预测:输入a预测出b,输入b预测出c,输入c预测出d,输入d预测出e,输入e预测出a #10000 a #01000 b #00100 c #00010 d #00001 e import numpy as np import tensorflow as tf from tensorflow. 阅读全文
posted @ 2020-09-03 20:28 爬到牢底坐穿 阅读(281) 评论(0) 推荐(0) 编辑
摘要: import tensorflow as tf import os import numpy as np from matplotlib import pyplot as plt from tensorflow.keras.layers import Conv2D, BatchNormalizati 阅读全文
posted @ 2020-09-01 22:34 爬到牢底坐穿 阅读(2056) 评论(0) 推荐(1) 编辑
摘要: import tensorflow as tf import os import numpy as np from matplotlib import pyplot as plt from tensorflow.keras.layers import Conv2D, BatchNormalizati 阅读全文
posted @ 2020-09-01 22:14 爬到牢底坐穿 阅读(486) 评论(0) 推荐(0) 编辑
摘要: import tensorflow as tf import os from matplotlib import pyplot as plt import tensorflow.keras.datasets from tensorflow.keras import Model import nump 阅读全文
posted @ 2020-08-31 22:17 爬到牢底坐穿 阅读(1240) 评论(0) 推荐(0) 编辑