![](https://img-blog.csdnimg.cn/20201014180756754.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
资料
白白白白白8
这个作者很懒,什么都没留下…
展开
-
matplotlib.pyplot 画多图
import matplotlib.pyplot as plt import cv2 as cv import os columns=5 rows=1 fig =plt.figure(figsize=(15, 10)) image_files=r'' all_files = os.listdir(image_files) file_list=[] for img in all_files: if img.endswith('.jpg'): file_list.append(im.原创 2022-04-29 15:43:28 · 238 阅读 · 0 评论 -
python 异步协程下载图片
Awesome Wallpapers - wallhaven.cc 今天用到的网站是一个壁纸网站,图片精美。 import requests import re import os import asyncio import aiohttp import aiofiles def gethtml(url, encode): # 获取网页源码 r = requests.get(url) r.encoding = encode return r.text def mkd原创 2021-11-05 15:41:41 · 263 阅读 · 0 评论 -
pytorch 基础笔记
创建矩阵的操作 创建一个没有初始化的矩阵: 已复制x = torch.empty(5, 3) print(x) 输出结果: tensor([[2.4835e+27, 2.5428e+30, 1.0877e-19], [1.5163e+23, 2.2012e+12, 3.7899e+22], [5.2480e+05, 1.0175e+31, 9.7056e+24], [1.6283e+32, 3.7913e+22, 3.9653e+2原创 2021-11-04 19:50:56 · 119 阅读 · 0 评论