上一页 1 ··· 17 18 19 20 21 22 23 24 25 ··· 73 下一页
摘要: cv2.imread函数返回np.numpy类型 Image.open()函数返回Image对象 from PIL import Image import numpy as np im = Image.open("/home/lw/a.jpg") im.show() img = np.array(i 阅读全文
posted @ 2022-02-28 17:26 Tomorrow1126 阅读(230) 评论(0) 推荐(0) 编辑
摘要: padding是增加各个边的pixels的数量,目的是保持feature map 不要太小,但也没必要超过原图的大小,所以不可以任意数量;padding的上限是维持feature map 大小与原图大小一致,具体增加pixel的数量多少,由filter的尺寸和stride大小共同决定;有一个具体的算 阅读全文
posted @ 2022-02-28 16:55 Tomorrow1126 阅读(657) 评论(0) 推荐(0) 编辑
摘要: import cv2 import numpy as np def mergeImg(inputImg, maskImg, contourData, drawPosition): ''' :param inputImg: 输入的图像 :param maskImg: 输入的模板图像 :param co 阅读全文
posted @ 2022-02-27 15:53 Tomorrow1126 阅读(342) 评论(0) 推荐(0) 编辑
摘要: from PIL import Image import os import os.path import numpy as np import cv2 img = Image.open('img/1633733372.463482.jpg') print(img.format, img.size, 阅读全文
posted @ 2022-02-27 15:39 Tomorrow1126 阅读(1066) 评论(0) 推荐(0) 编辑
摘要: import tensorflow as tf # Build a graph. a = tf.constant([1.0, 2.0]) b = tf.constant([3.0, 4.0]) c = a * b with tf.Session() as sess: print sess.run(c 阅读全文
posted @ 2022-02-25 14:34 Tomorrow1126 阅读(762) 评论(0) 推荐(0) 编辑
摘要: import time start=time.time() end=time.time() print(end-start) 阅读全文
posted @ 2022-02-22 20:11 Tomorrow1126 阅读(98) 评论(0) 推荐(0) 编辑
摘要: https://typora.io/dev_release.html 阅读全文
posted @ 2022-02-17 16:14 Tomorrow1126 阅读(325) 评论(0) 推荐(0) 编辑
摘要: 在~/.cache/torch_extensions/something 找到对应的lock文件 阅读全文
posted @ 2022-02-17 10:05 Tomorrow1126 阅读(230) 评论(0) 推荐(0) 编辑
摘要: 最后重置代理 完美解决 git config --global --unset https.https://github.com.proxy git config --global --unset http.https://github.com.proxy 阅读全文
posted @ 2022-02-16 14:11 Tomorrow1126 阅读(635) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2022-02-15 15:21 Tomorrow1126 阅读(79) 评论(0) 推荐(0) 编辑
上一页 1 ··· 17 18 19 20 21 22 23 24 25 ··· 73 下一页