- 博客(12)
- 收藏
- 关注
原创 tableau安装教程
1.找到下载网址:https://www.tableau.com/zh-cn/support/releases,下载最新版本。2.
2022-02-06 15:19:33
2746
原创 对文件夹中的图片进行翻转
from PIL import Imageimport osE:/pycharm_code/deeplabv3-plus-pytorch-main/rotate-dataset/picture/image此路径为要旋转图片的路径os.chdir('E:/pycharm_code/deeplabv3-plus-pytorch-main/rotate-dataset/picture/image')for filename in os.listdir('E:/pycharm_code/deeplabv.
2022-01-11 08:49:48
583
原创 整个文件夹中的图片进行旋转
#!/usr/bin/env python#-*- coding: utf-8 -*-#!/usr/bin/env pythonimport sysimport cv2import osfrom PIL import Imagefrom PIL import ImageDrawos.getcwd()path = os.path.join(os.getcwd(),'picture')im_file = os.listdir(path)for im_file_index_i in i.
2021-12-27 15:37:23
911
原创 如何加载把深度学习保存的模型.pth或者.module打印出来,保存在txt文件中
import torchpthfile = r'E:/pycharm_code/unet-pytorch-main/unet-pytorch-main/logs/Epoch1-Total_Loss0.4523-Val_Loss0.0966.pth'net = torch.load(pthfile, map_location='cpu')net = dict(net)with open('test.txt', 'a') as file0: print(net, file=file0).
2021-09-08 09:47:07
824
2
原创 批量将tif传换成png
1.新建一个txt文档,输入“ren *.tif *.png”2.需要注意的是,两个星号的前面都有一个空格,然后将记事本进行保存,然后再将记事本后缀名修改为“bat”:
2021-09-02 09:47:18
352
原创 安装tensorflow报warning
_np_qint8 = np.dtype([("qint8", np.int8, 1)])_np_quint8 = np.dtype([("quint8", np.uint8, 1)])_np_qint16 = np.dtype([("qint16", np.int16, 1)])_np_quint16 = np.dtype([("quint16", np.uint16, 1)])_np_qint32 = np.dtype([("qint32", np.int32, 1)])将以上代码段改为..
2021-04-28 08:30:42
1744
原创 搭建pytorch和pydensecrf环境
查看源配置conda config --show添加源conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main/conda config --add channels https://mirrors.tuna.tsin
2021-04-27 19:36:02
385
原创 conda创建虚拟环境失败
https://blog.youkuaiyun.com/qq_43445362/article/details/107645906?utm_term=anaconda%E6%97%A0%E6%B3%95%E5%88%9B%E5%BB%BA%E6%96%B0%E7%9A%84%E8%99%9A%E6%8B%9F%E7%8E%AF%E5%A2%83&utm_medium=distribute.pc_aggpage_search_result.none-task-blog-2~all~sobaiduweb~defau
2021-04-21 22:07:59
952
原创 PyCharm:Error runnin xxx: Cannot run program “....\python.exe“
https://blog.youkuaiyun.com/kongsuhongbaby/article/details/100520747报错找到该项目的.workspace.xml文件,搜索找到直接把这个文件夹删掉,重新打开pycharm,会根据项目的配置信息重新生成这个文件夹,问题也就解决了...
2021-04-16 09:14:55
400
原创 安装双系统之后,代码报错
1.安装linux系统后,win10里面本可以运行的代码报错.显示ImportError: DLL load failed: 此卷不包含可识别的文件系统。请确定所有请求的文件系统驱动程序已加载,且此卷未损坏.2.运行pycharm,不要调用包,例如print(2+3)如果运行成功说明是pycharm是没有问题的,修改其他的环境看是否可以运行成功.我就是这样解决的....
2021-04-13 16:07:08
386
原创 括号匹配
#include#include#definemax100typedefstruct{chara[max];inttop;}L,stack;voidI(L*S){S->top=-1;}intP(L*S,charx){if(S->top==max-1)return0;S->top++;S->a[S->top]=
2021-04-13 16:00:13
71
原创 module ‘cv2.cv2‘ has no attribute ‘face‘报错
换到使用的环境下,注:一定是使用的环境下pip install opencv-pythonpip install opencv-contrib-python
2021-04-10 20:52:00
122
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人