自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(23)
  • 资源 (5)
  • 收藏
  • 关注

原创 No such file or directory: site-packages\\numpy-1.21.2.dist-info\\METADATA‘

numpy-1.21.2.dist-info\\METADATA'

2023-02-13 10:14:11 387 1

翻译 pytorch 使用torchsummary出现torchsummary tuple index out of range error

注销代码:# summary[m_key]["input_shape"] = list(input[0].size())# summary[m_key]["input_shape"][0] = batch_size加入代码if len(input) != 0: summary[m_key]["input_shape"] = list(input[0].size()) summary[m_key]["input_shape"][0] = batch_sizeelse:

2021-04-26 12:07:32 2389 6

转载 pytorch中,如何实现同样的随机变换应用于图像(Image)和标签(label,mask)上

how to use the same random transform on the pair of image and mask.重写pytorch的dataset类的__getitem__def __getitem__(self,index): img = Image.open(self.data[index]).convert('RGB') ...

2020-02-19 15:30:59 3887 5

原创 conda 安装pytorch的时候避免更新python版本

在安装pytorch1.1的时候使用如下命令conda install pytorch==1.1.0 torchvision==0.3.0 cudatoolkit=9.0会同时更新python3.6到python3.7在清华源https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/pytorch/linux-64/里可以看到:...

2020-02-12 14:03:03 3805 2

原创 conda 安装pytorch 慢

conda安装pytorch慢conda install pytorch==1.1.0 torchvision==0.3.0 cudatoolkit=9.0 -c pytorch去掉命令行 -c pytorch,-c是用于指定镜像conda install pytorch==1.1.0 torchvision==0.3.0 cudatoolkit=9.0可以把国内的源加上...

2020-02-12 11:23:33 629

原创 Floating point error (core dumped) in pytorch

When doing torchvision.transforms.Normalize(mean=[0.5], std=[0.5]),get the error: 浮点数例外 (核心已转储) or Floating point error (core dumped)please check if the import image is integer type...

2020-02-11 13:30:28 797

原创 ERROR: Could not find a version that satisfies the requirement python>=3.6

git上clone的一个项目,在pip install -r requirements.txt的时候出现了如下错误 :ERROR: Could not find a version that satisfies the requirement python>=3.6 (from -r requirements.txt (line 1)) (from versions: non...

2020-01-21 13:08:17 9244 3

原创 ubuntu sudo apt-get update error

错误:1 http://security.ubuntu.com/ubuntu xenial-security InRelease 无法连接上 127.0.0.1:8080 (127.0.0.1)。 - connect (111: 拒绝连接)错误:2 http://cn.archive.ubuntu.com/ubuntu xenial InRelease 无法连接上 127.0.0.1:8

2016-09-13 13:19:22 3274

转载 du命令

http://www.cnblogs.com/peida/archive/2012/12/10/2810755.htmlLinux du命令也是查看使用空间的,但是与df命令不同的是Linux du命令是对文件和目录磁盘使用的空间的查看,还是和df命令有一些区别的.1.命令格式:du [选项][文件]2.命令功能:显示每个文件和目录的磁盘使用空间。3

2016-08-18 13:00:43 411

转载 25个ssh

http://www.cnblogs.com/weafer/archive/2011/06/10/2077852.htmlOpenSSH是SSH连接工具的免费版本。telnet,rlogin和ftp用户可能还没意识到他们在互联网上传输的密码是未加密的,但SSH是加密的,OpenSSH加密所有通信(包括密码),有效消除了窃听,连接劫持和其它攻击。此外,OpenSSH提供了安全隧道功能和多种身

2016-08-18 12:56:29 289

转载 CocoaPods安装和使用及问题:Setting up CocoaPods master repo

http://my.oschina.net/w11h22j33/blog/206129CocoaPods安装和使用及问题:Setting up CocoaPods master repo whj发布时间: 2014/03/07 17:31 阅读: 52881 收藏: 35 点赞: 17 评论: 1摘要ios依赖管理三种方式:手动、git subm

2016-08-18 12:39:52 326

转载 mac os ssh -X

Apple OS X: Install X Window System (XQuartz) For SSH X11 Forwarding时间 2013-11-12 02:48:22  NixCraft原文  http://www.cyberciti.biz/faq/apple-osx-mountain-lion-mavericks-install-xquartz-server/主题

2016-08-17 22:00:04 3425

原创 HTTP Status 500 - java.lang.IllegalStateException: No output folder

HTTP Status 500 - java.lang.IllegalStateException: No output foldertypeException reportmessagejava.lang.IllegalStateException: No output folderdescriptionThe server encountered an internal error th

2014-09-18 22:56:03 3538

原创 tomcat startup 成功后localhost:8080打不开

很久不玩了。今天启动tomcat7, local

2014-09-18 22:15:35 4798

转载 struts1.3.8以后的版本里没有tld文件

http://hi.baidu.com/louhu/item/998776a971c705716dd4558bstruts1.3.8以后的版本里没有tld文件struts1.3.8以后的版本中将不再包含tld文件,取而代之的是struts-taglib.jar。因此又一下几点需要注意:1.根本不用在web.xml当中配置taglib,只要struts

2014-02-13 12:43:39 889 1

原创 servelet 2.4 +eclipse3.6+struts2.3.16:Can not find the tag library descriptor for "/struts- tags"

错误提示:Can not find the tag library descriptor for "/struts- tags"首先,很多例子总都会说,在jsp中要包括以上三个都是struts1的tag,在structs2中,用一个单独的tld,“struts-tag.tld”, 存放在struts2-core-2.x.x.jar中

2014-02-12 12:49:53 2794

转载 java到structs

http://www.alixixi.com/Dev/Web/JSP/jsp2/2007/2007020813001.html1.1 什么是Java Java有两方面的含义:Java语言、Java平台 作为一种语言,Java是一种跨平台开发语言,能开发出跨平台的应用对象和应用程序。例如:Oracle 8i的安装程序就是用Java开发的。Java语言具有以下特点:简单、面向对象、分布

2014-02-11 15:56:57 694

转载 Tomcat中server.xml配置及Context的配置直接引用工程

转载http://panfuy.iteye.com/blog/1224665server.xml配置简介         下面是这个文件中的基本配置信息,更具体的配置信息见tomcat的文档         server:         port     指定一个端口,这个端口负责监听关闭tomcat的请求         shutdown     指定向端口发送的命令字

2014-02-10 11:38:56 3388

转载 tomcat server.xml配置详解

tomcat server.xml配置详解元素名属性解释serverport指定一个端口,这个端口负责监听关闭tomcat的请求shutdown指定向端口发送的命令字符串servicename指定service的名字Connector(表示客户端和se

2014-02-10 11:36:49 500

转载 Tomcat server.xml 详解

出处:http://www.blogjava.net/baoyaer/articles/107278.htmlTomcat Server的结构图                   该文件描述了如何启动Tomcat Server                                             

2014-02-10 11:21:23 561

原创 Eclipse 4.4 luna 很多老的插件都不能用

一元的学习笔记今天想用一下sysdeo tomcat 外挂插件,结果copy到eclips_home/plugins目录下,硬是没有找到tomcat三只小猫。果断使用3.6版本的eclipse,成功。

2014-02-09 21:25:34 1993

原创 Eclipse 集成开发工具第九章WEB开发的第一个例子 错误提示

一元的学习笔记昨天配置好了tomcat,今天尝试了书上的第一个例子。没有找到怎么在eclipse 中 new ->jsp文件,直接new Untitled text file->保存为Ch09_01.jsp(注意这边的大小写Ch)然后敲代码如下:A web pageWORKING WITH JSP<% out.println("using

2014-02-08 20:43:55 863

原创 Mac IOS 10.9 java 1.6 与tomcat 8 的问题

MAC IOS 10.9下的是java 7,可以使用java -version 看到版本号是1.6. 此版本与tomcat 8不兼容的。弄了很久都不行,下载了tomcat7,就能正常启动了。

2014-02-07 17:09:31 824

Eclipse 常用快捷键

eclipse 常用快捷键的汇总,很有用哦

2014-02-09

java 从入门到精通 源代码

书《java 从入门到精通》例子的源代码

2014-02-09

Eclipse 集成开发工具 例子 源代码

书《Eclipse 集成开发工具》例子的源代码

2014-02-09

英文版 Eclipse集成开发工具

英文原版的 eclipse 集成开发工具

2014-02-09

空空如也

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

TA关注的人

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