原创 Variable conv1/weights already exists, disallowed. Did you mean to set reuse=True in VarScope? 解決方法

轉載自: https://www.jianshu.com/p/fc11f32800f9   保存checkpoint後,嘗試調用保存的模型:   with tf.Session() as sess:

原创 Python圖像裁剪兩種方法 Pillow和OpenCV

使用OpenCV import cv2 img = cv2.imread("###.jpg") cropped = img[0:64, 0:128] # 裁剪座標爲[y0:y1, x0:x1] 使用Pillow from PIL

原创 Python 分離文件路徑、文件名、後綴

完整路徑 分離文件路徑、文件名、後綴 os.path.split()   分離文件路徑與文件名 import os fullpath = 'E:/folder/t2333.py' (filepath, filename) = os.p

原创 將數字0、1、2…10、11…變成三位數000、001、002…010、011…的字符型 Python

num = 335 for i in range(num):     if i < 10:         i = "00%d" % i     elif i < 100:         i = "0%d" % i     else:

原创 免費電子書下載 網站(11個)

個人收藏的電子書下載網站: Google圖書: https://books.google.com/?hl=zh-CN O'Reilly: https://www.oreilly.com/programming/free/ IT eBo

原创 C語言高精度運算-階乘累加:1!+2!+3!+...+n!

/* C語言高精度運算-階乘累加 1!+2!+3!+...+n! */ # include <stdio.h> # define N 10000 // 數組長度 int main(){ int i, j, k, n, s[N] =