自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(103)
  • 资源 (7)
  • 收藏
  • 关注

原创 centos下创建用户并授予指定文件夹的权限

创建快捷方式 ln -s 源 目的地:这个是创建一个文件或者文件夹的引用,这两个个地址的数据改了后会同步。passwd userName 随后会提示输入密码。创建用户时、会创建一个与用户名同名的用户组。chown -R 用户名:用户组 目录。创建用户的时候会对应创建一个同名的组。Linux给用户和文件赋予权限。chmod -R 775 目录。useradd 用户名。3、查看文件夹的权限。

2023-11-03 16:49:02 1445

原创 windows下pytorch安装时清华园镜像不可用的解决方法

windows下pytorch安装时清华园镜像不可用的解决方法

2023-01-31 19:27:41 977 1

原创 内部加路由校园内外网络都可以访问的方法

unbutu20.04下折腾了半年的网络问题得以解决。原来上内网用网关1 外网2,现在配置路由后,网关为2,添加路由。sudo vi /lib/systemd/system/rc-local.service[Unit]Description=/etc/rc.local CompatibilityDocumentation=man:systemd-rc-local-generator(8)ConditionFileIsExecutable=/etc/rc.localAfter=netw

2022-03-24 16:52:23 729

转载 centos7下修改网络配置IP地址网关DNS(转)

[root@gaojingbo~]# ip a改变eth0方法一[root@gaojingbo~]# vim /etc/sysconfig/network-scripts/ifcfg-eth0 #不一定是eth0==静态(手工)NAME="eth0" 连接名DEVICE=eth0 设备名BOOTPROTO=none 启动协议: static | none | dhcpNETBOOT=yes 通过网卡启动HWADDR=00:E0:4C:41:95: DBMAC地址TYP...

2022-03-21 09:01:01 2062

原创 linux主机间相互传递文件和文件夹

文件夹:scp-r/home/shaoxiaohu/[email protected]:/home/test2文件:scp/home/shaoxiaohu/[email protected]:/home/test2

2021-10-26 16:27:27 162

原创 困扰几天的不同网络影响远程访问的问题

工作环境现在是这种情况:平时工作电脑windows,校内私有ip,能上互联网。gpu服务器为linux环境,私有ip,跟工作电脑ip不一定一个网段,并且同一个ip,当网关最后一位为1时,工作环境中的电脑可以访问,但不能上互联网,改为2后能访问互联网,但工作环境电脑又不能访问了,现在想在工作环境中配置linux gpu服务器深度学习环境(需要外网),应该如何解决?经过摸索,两种方法:1.通过安装版本号一致的远程控制软件,linux服务器网关最后一位设置2,保证上外网。具体方法:向日..

2021-10-23 08:51:13 827

原创 烦人的pytorch gpu出错问题:RuntimeError: CUDA out of memory. Tried to allocate 14.00 MiB 远程主机间复制文件及文件夹

1、RuntimeError: CUDA out of memory. Tried to allocate 14.00 MiB (GPU 0; 10.76 GiB total capacity; 9.69 GiB already allocated; 15.56 MiB free; 9.91 GiB reserved in total by PyTorch)应该有三个原因GPU还有其他进程占用显存,导致本进程无法分配到足够的显存 缓存过多,使用torch.cuda.empty_cache()清理缓存

2020-08-04 10:58:02 20856 6

原创 Ubuntu18.04双系统安装+GPU+CUDA10+CUDNN7+ANACONDA3+PYTHON+PYCHARM

Ubuntu18.04双系统安装+GPU+CUDA10+CUDNN7+ANACONDA3+PYTHON+PYCHARM一、Win10 环境下安装Ubuntu 18.04过程记录步骤1:下载镜像文件从Ubuntu官网https://www.ubuntu.com/download/server下载系统的iso镜像文件 ,下载后不用解压,过程如下:步骤2:格式化U盘格式化你的U盘,格式化的时候选择FAT32格式的,具体过程如下: ​步骤3:制作启动盘从网上https:...

2020-05-19 19:32:00 3876

转载 TensorFlow-Slim image classification model library

https://github.com/tensorflow/models/tree/master/research/slimhttps://github.com/tensorflow/models/tree/master/research/slimTensorFlow-Slim image classification model libraryTF-slimis a new ...

2020-04-15 19:18:58 667

原创 tensorflow 获取模型所有参数总和数量

参数数量:np.sum([np.prod(v.get_shape().as_list()) for v in tf.trainable_variables()])浮点运算量:tf.contrib.tfprof.model_analyzer.print_model_analysis(tf.get_default_graph(), tfprof_options=tf.contrib.tfp...

2020-04-15 18:43:04 4275

转载 Python设置matplotlib.plot的坐标轴刻度间隔以及刻度范围

这个很不错,学习后修改了我自己的曲线,很好Python设置matplotlib.plot的坐标轴刻度间隔以及刻度范围原创宁宁Fingerstyle 发布于2019-05-07 11:23:17 阅读数 13700 收藏展开一、用默认设置绘制折线图import matplotlib.pyplot as pltx_values=list(range(11))#x轴的数字是0到10...

2020-01-05 21:32:41 60158 2

原创 torchnet安装解决from torchnet.meter import ClassErrorMeter错误问题(cbam.pytorch执行问题)

torchnet安装安装gitapt install git行命令: pip install git+https://github.com/pytorch/tnt.git@master pip install --upgrade git+https://github.com/pytorch/tnt.git@master

2019-09-28 10:22:29 1881

原创 install flatpak and easyssh run easyssh

在Linux上安装Flatpak的方法大多数Linux发行版官方存储库都提供Flatpak软件包,因此,可以使用它们进行安装。对于Fedora系统,使用DNF安装flatpak:$ sudo dnf install flatpak对于Debian/Ubuntu系统,使用APT-GET或APT安装flatpak:$ sudo apt install flatpak适用于较旧的...

2019-09-03 09:51:44 507

原创 pytorch安装

https://download.pytorch.org/whl/cu100/torch-1.0.1.post2-cp35-cp35m-linux_x86_64.whlpip3 install https://download.pytorch.org/whl/cu100/torch-1.0.1.post2-cp35-cp35m-linux_x86_64.whlpip3 instal...

2019-08-01 21:38:53 2071

原创 conda中python3.7降为3.5

不小心conda虚拟环境下python3.5安装pandas时候未指定版本,直接python更新为3.7了(conda下默认好像是),导致pytorch不能使用了,怎么办?找了资料,直接虚拟环境下conda install python=3.5执行即可。又恢复到原来的状态了。...

2019-07-13 16:00:53 20165 2

原创 在Ubuntu下如何压缩一个文件夹,如何查看文件夹大小

sudo tar zcvf work.tar.gz work/sudo tar jcvf work.tar.bz2 work/sudo tar cvf work.tar work记住了,要加sudo顺便也写一下解压缩吧tar xzvf work.tar.gztar xjvf work.tar.bz2tar xvf work.tar查看当前目录使用的总空间大小...

2019-04-28 20:31:28 2231

原创 ssl-bad-gan python2.7+pytorch0.1.12+torchvision0.1.8

开始在pytorch0.4.1版本下运行,各种出错:主要是形状问题 svhn_train.py 119行。gen_feat_norm = gen_feat / gen_feat.norm(p=2, dim=1).reshape([-1,1]).expand_as(gen_feat) 加.reshape([-1,1])utils.py中,21-25行reshape([-1,1])...

2019-04-27 20:12:04 1190 4

原创 spectral normalization集成到triple-gan过程中的问题

利用了三个 实例,中间一直出问题。Residual-Dense-Network-Trained-with-cGAN-for-Super-Resolution-master、Spectral_Normalization-Tensorflow-master、SNGAN-master。最终使用了 第一个中的方法。TripleGAN-Tensorflow-SN中。具体代码如下:黑体为修改的代码:...

2019-04-23 19:57:45 810

原创 Ubuntu后台运行、查看、 终止python

ps -ef1656 ps -aux|grep train_wvh64.py1657 kill -9 108711658 ps -aux|grep train_wvh64.py运行nohup python -u R.py > out.log 2>&1 &查看 ps -ef ps -aux|grep chat....

2019-04-21 12:50:59 4704

原创 Ubuntu16.04 RTX2080ti 安装NVIDIA驱动+cuda9.0+cudnn7.3.0

工程师说rtx2080ti支支持cuda10,开始用cuda最新版10.1折腾了两天,都成功了,但是运行tensorflow时候提示要cuda9版本。最后实验了一下cuda9 cudnn7.3.1终于成功跑起来了, 记得用conda install tensorflow-gpu=1.8.0 或者1.7.0 安装 太低版本好像还是出问题。另外,今天一早运行任务估计并行太大,导致系统死机,重新启动...

2019-04-19 15:08:52 11858 10

原创 cifar数据集替换成eurosat数据集代码,并绘制相关曲线--tirpleGAN-Tensorflow 笔记本电脑上

一、cifar.py代码修改import randomimport numpy as npfrom collections import defaultdictfrom keras.datasets import cifar10import svhn_data #新添加的,引入euro对应的mat格式文件的代码。class_num = 10image_size = 32img_...

2019-04-13 20:55:13 647

转载 semi-supervised models

1、生成模型算法(Generate semi-supervised models)思想如下:假设一个模型,其分布满足:p(x ,y)=p(y) p(x | y)。其中,p(x | y)是已知的条件概率分布。那么大量未经标记数据的联合分布就可以被确定。生成模型算法的流程图如下。半监督学习方法可以对同时含有已标记的和未标记的数据集进行聚类,然后通过聚类结果中,每一类中所含有的任何一个已标记数据实例...

2019-04-01 22:21:54 1556

原创 python2 python3 TypeError: unsupported operand type(s) for /: 'dict_values' and 'int'

plot绘制各种曲线的程序,在python27下运行正常,到python35下 提示出现这个错误:TypeError: unsupported operand type(s) for /: 'dict_values' and 'int' In python3,dict.valuesreturns adict_valuesobject, which is not alist...

2019-03-30 16:37:03 5858

转载 gan中模式崩塌

What is mode collapse?Most interesting real-world data distributions are highly complex and multimodal. That is to say, the probability distribution which describes the data has multiple “peaks” wher...

2019-03-27 10:25:04 8552 1

转载 简单的交叉熵损失函数,

https://blog.csdn.net/red_stone1/article/details/80735068转载。说起交叉熵损失函数「Cross Entropy Loss」,脑海中立马浮现出它的公式:L=−[ylogy^+(1−y)log(1−y^)]L=−[ylogy^+(1−y)log(1−y^)]我们已经对这个交叉熵函数非常熟悉,大多数情况下都是直接拿来使用就好。但...

2019-03-26 14:42:22 1028

原创 python3使用pickle读取文件提示TypeError或者UnicodeDecodeError的解决办法

一、分割数据成train和test 代码:# data segmentation code # resize origin code to match classifier model and split the data set into training and test setimport sysimport osimport shutilimport csvimpo...

2019-03-25 16:46:44 2305 2

转载 resnet tensorflow 代码分析

https://github.com/chaipangpang/ResNet_cifar参考下面有详细代码分析:main.py# Copyright 2016 The TensorFlow Authors. All Rights Reserved.## Licensed under the Apache License, Version 2.0 (the "License");#...

2019-03-24 13:20:40 1235

转载 Tensorflow学习:ResNet代码(详细剖析)

https://blog.csdn.net/superman_xxx/article/details/65452735https://blog.csdn.net/qq_29893385/article/details/81207203https://blog.csdn.net/zzc15806/article/details/83540661https://blog.csdn.net/...

2019-03-24 13:19:07 4176 1

原创 SSGF-for-HRRS-scene-classification-master程序执行中caffe相关内容配置

/home/sys1710/anaconda3/envs/python27/bin/python2.7 /home/sys1710/PycharmProjects/guo/SSGF-for-HRRS-scene-classification-master/1selftraining.pyWARNING: Logging before InitGoogleLogging() is written ...

2019-03-23 16:56:07 303 1

原创 tensorlayer和tensorflow版本对应问题

tensorlayer需要和对应的tensorfolw版本一致 比如 tensorflow-gpu1.4.1 tensorlayer 1.4.1如果是 tensorflow不带gpu的,注意版本 pip install --upgrade tensorflow==1.5.0 tensorlayer 1.5.0pip install --upgrade tensor...

2019-03-17 16:06:24 10571

原创 Spectral-Spatial Residual Network for Hyperspectral Image Classification--SSRN代码执行问题

论文:Spectral-Spatial Residual Network for Hyperspectral Image Classification: A 3-D Deep Learning Framework代码 SSRN。路径首先修改然后 写入path2对应的文件内容时候出错。后来修改了modelstatsrecord.py中三个函数中的代码,如黑体显示的部分,改为斜体显示的内容...

2019-03-13 21:29:46 2114 8

原创 使用Pytorch的常见错误汇总 gan-based-HRRS-Sample-Generation-for-image-classification-master代码中的问题

ucm数据集中图像大小不全是256*256的 ,有253*256的导致处理时候遇到问题。如何解决呢?现在 d盘 下 可运行tensorflow下train文件夹下的图像全部是256*256.那些年我们一起踩过的坑!文章目录那些年我们一起踩过的坑!Error标签范围问题输入图像大小不一的问题内存连续问题保存和加载整个模型的问题argument or attribute err...

2019-03-13 21:00:54 1040 2

原创 GAN-based-HRRS-Sample-Generation-for-Image-Classification执行

The GAN-based method is used to generate high-resolution remote sensing for data augmentation and image classification.https://github.com/weihancug/GAN-based-HRRS-Sample-Generation-for-Image-Classif...

2019-03-12 16:00:06 662 2

原创 使用Anaconda安装caffe

pycharm中 ImportError: No module named caffe首先,需要看下在命令行能不能import caffe先CTRL+ALT+T打开终端python %打开pythonimport caffe %测试caffe在终端中能不能用如果还是出现No module named caffe输入一下命令就可以了...

2019-03-10 21:32:01 6397 1

原创 Caffe研究实践 ---环境搭建

首先说一下pycharm下使用caffe的问题,并且是anaconda下配置的caffe cpu版本pycharm中 ImportError: No module named caffe首先,需要看下在命令行能不能import caffe先CTRL+ALT+T打开终端python %打开pythonimport caffe %测试...

2019-03-09 23:33:38 858

原创 tensorflow/stream_executor/cuda/cuda_dnn.cc:378] Loaded runtime CuDNN library: 7301--2019.5.12

安装的cudnn的版本是7.1.0.3,而要求的cudnn版本是7.3.0.0。将tensorflow版本从1.5换成1.8,顺利运行程序(升级tensorflow版本来解决)ll 命令查看 连接 /usr/local/cuda/lib64下 把对应的 libcudnn.so.7,3,1连到 libcudnn.so.7 在连到libcudnn.sosudo ln -sf li...

2019-01-31 02:21:51 7937 1

原创 tensorlayer安装

对应有tensorflow才行。pip install tensorflow-gpu # GPU 版本 (二选一)pip install tensorlayer # 之后安装 TensorLayer 框架需要tensorflow1.6以上版本 `pip install --upgrade tensorflow` - `pip install --upgrade tenso...

2019-01-30 14:30:33 8388 1

原创 ubuntu取消http_proxy设置

env | grep -i proxy查看当前使用代理,如果有,需要去掉。gedit /etc/enviroment  去掉相关代理还有~/.bashrc  /etc/profile中的代理,然后source以下。如果还存在代理,运行:unset  http_proxyunset https_proxy完美解决。 之前用过latern的代理,后来因为一些原因不...

2019-01-26 21:43:42 136288 7

转载 Object Detection(目标检测神文)

https://blog.csdn.net/hw5226349/article/details/81906882?utm_source=blogxgwz5 目标检测神文,非常全而且持续在更新。转发自:https://handong1587.github.io/deep_learning/2015/10/09/object-detection.html,如有侵权联系删除。更新时间:201...

2019-01-17 16:44:53 5128

原创 tensorflow 内存不足:Process finished with exit code 137 (interrupted by signal 9: SIGKILL)

原来设置128图像一个batch,256*256  内存不够用后来改为64 batch多方搜索,才知出现这个问题是因为内存使用过多导致。我刚开始设置batch_size为5 迭代了137次出现了以上错误信息。按照网上说法将batch_size改为2迭代了3百多次停止。后来干脆设置为1,才没能出现以上错误信息。很是奇怪,觉得batch_size为1或者为2差别不大,应该不是根本原因,而是误打...

2019-01-15 21:28:06 4738

河南省2011年农村信用社招聘真题--理论部分B

河南省2011年农村信用社招聘真题--理论部分B,手机拍照,效果还行。请需要的下载。

2011-11-28

农村信用社招聘真题2011年河南省-A部分

2011年河南省农村信用社招聘真题,手机拍摄的,还算清楚,下年备考的同志可以下载。

2011-11-28

oracle 10g ocp 043题库

oracle 10g ocp 043题库,2011年10月份才有一个熟人通过考试,满分通过,覆盖率很高。

2011-11-26

ocp 10g 042题库

最新的ocp 042题库,请大家放心下载,2011年10月份才有人考过,覆盖率96%以上。

2011-11-26

oracle ocp 047题库

最近一个朋友才通过,覆盖率90%以上。想考认证的朋友好好看看吧。哈哈,准备一下明年考试。

2011-11-26

linux常用命令总结

不错的linux初学者资料,命令比较全,好多是我补充的。

2010-08-27

pb精彩编程案例--经典的小例子

pb相关小例子,很全面,很不错,推荐搞powerbuilder的下载使用。

2010-04-20

空空如也

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

TA关注的人

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