自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(12)
  • 收藏
  • 关注

原创 tableau安装教程

1.找到下载网址:https://www.tableau.com/zh-cn/support/releases,下载最新版本。2.

2022-02-06 15:19:33 2096

原创 对文件夹中的图片进行翻转

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 547

原创 整个文件夹中的图片进行旋转

#!/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 867

原创 如何加载把深度学习保存的模型.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 761 2

原创 批量将tif传换成png

1.新建一个txt文档,输入“ren *.tif *.png”2.需要注意的是,两个星号的前面都有一个空格,然后将记事本进行保存,然后再将记事本后缀名修改为“bat”:

2021-09-02 09:47:18 298

原创 安装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 1689

原创 搭建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 326

原创 conda创建虚拟环境失败

https://blog.csdn.net/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 897

原创 PyCharm:Error runnin xxx: Cannot run program “....\python.exe“

https://blog.csdn.net/kongsuhongbaby/article/details/100520747报错找到该项目的.workspace.xml文件,搜索找到直接把这个文件夹删掉,重新打开pycharm,会根据项目的配置信息重新生成这个文件夹,问题也就解决了...

2021-04-16 09:14:55 324

原创 安装双系统之后,代码报错

1.安装linux系统后,win10里面本可以运行的代码报错.显示ImportError: DLL load failed: 此卷不包含可识别的文件系统。请确定所有请求的文件系统驱动程序已加载,且此卷未损坏.2.运行pycharm,不要调用包,例如print(2+3)如果运行成功说明是pycharm是没有问题的,修改其他的环境看是否可以运行成功.我就是这样解决的....

2021-04-13 16:07:08 203

原创 括号匹配

#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 53

原创 module ‘cv2.cv2‘ has no attribute ‘face‘报错

换到使用的环境下,注:一定是使用的环境下pip install opencv-pythonpip install opencv-contrib-python

2021-04-10 20:52:00 97

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除