
python
文章平均质量分 51
TTMer
无
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
30系显卡配置tensorflow1.x环境
说明: nvidia 30系显卡仅支持cuda11.0及以上版本,对应cudnn最低版本为8.0,tf版本为2.4.0 在win系统中无法实现30系显卡运行tf1的代码 该教程使用的环境如下: Ubuntu20.04 3060 显卡 cuda 11.1 cudnn 8.0.5 python 3.6 tensorflow 1.15 其中 python 版本和 tensorflow 版本是固定的 简陋的目录 安装显卡驱动 安装cuda 安装cudnn 安装python(直接略过,我使用的cond.原创 2021-12-07 19:49:38 · 5752 阅读 · 4 评论 -
利用python Requsets 下载开源网站 带索引 数据
环境搭建 python 3.x requests 包 re 包 gooey包 (用于可视化) 代码 import requests import re import os from gooey import Gooey, GooeyParser import time s = requests.Session() def judgeTypeOfPath(name): ''' 判断该路径是文件还是文件夹 :param name: 路径名称 :return:Tru原创 2021-04-12 21:45:56 · 266 阅读 · 2 评论 -
python 利用 PIL 将数组值转成图片/python利用h5py、pyhdf读取.h5、.hdf文件信息
python 利用 PIL 将数组值转成图片 安装 PIL 包 pip install pillow 将二维数据转换成单通道图片 from PIL import Image arr=numpy.asarray([[1,2,3,4,5],[2,3,4,5,6],[7,8,9,0,12]]) image = Image.fromarray(m).convert("L")# L为模式 image.save("out.jpg")#输出图片格式可以自己选择 1 -> 1位像素,黑和白,存成8位的像素 L原创 2021-04-09 17:23:44 · 1538 阅读 · 11 评论