
GAN
gdengden
这个作者很懒,什么都没留下…
展开
-
DCGAN(对应生成对抗网络例子中的代码)一直提示 类型问题,修改方案
tensorflow1.5 python2.7版本下执行,错误的解决。一、前言:1整个过程使用debuger方式执行,设置断点 。2重点执行时候用下面两种方法 1表示的按钮执行一步一步调试,能看到中间结果在每一步的值,2按钮直接跳出到出错前的位置。挨着debugger按钮的窗口是console,可以显示中间执行过程,最后停止后,看debugger窗口:'./data/fac...原创 2018-12-13 20:33:14 · 895 阅读 · 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 · 732 阅读 · 2 评论 -
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 · 10992 阅读 · 0 评论 -
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 · 5975 阅读 · 0 评论 -
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 · 8761 阅读 · 1 评论 -
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 · 1654 阅读 · 0 评论 -
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 · 753 阅读 · 0 评论 -
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 · 1240 阅读 · 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 · 882 阅读 · 0 评论 -
在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 · 2304 阅读 · 0 评论 -
使用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 · 1103 阅读 · 2 评论 -
修改的 SFGAN代码 执行结果--21 类 ucmerced scene classification 256*256图像
SFGAN是 64*64 EuroSAT数据集上 27000图像 执行的效果很好 test样例80% 21 类 ucmerced scene classification 256*256图像 2100图像 test样例80%修改的 SFGAN代码 执行结果/home/gis/anaconda3/envs/pytguo35/bin/python /home/gis/Pycha...原创 2018-12-16 15:32:26 · 726 阅读 · 0 评论 -
sfgan执行matlab生成的文件,如果文件超过2g,会用v7.3格式保存 python读取时候格式发生变化
Please use HDF reader for matlab v7.3 files/home/gis/anaconda3/envs/pytguo35/bin/python /home/gis/PycharmProjects/guo/SFGAN-master/sfgan.pyTraceback (most recent call last): File "/home/gis/Pycha...原创 2019-01-05 16:16:17 · 1421 阅读 · 0 评论 -
Pycharm安装matplotlib
在终端中通过pip3安装matplotlib后,发现pycharm中引入会报错,查了一下发现可以在Pycharm中安装matplotlib来解决: 1. 打开Preferences,找到Project Interpreter,点“+”添加 2. 在输入框中输入matplotlib进行搜索,然后选中要安装的包并点击下方的install package 3. 此时如果发现安装特别慢,可以...原创 2019-01-07 16:44:17 · 7864 阅读 · 0 评论 -
安装pytorch官网
老版本:https://pytorch.org/get-started/previous-versions/最新版本:https://pytorch.org/ conda install pytorch-cpu=0.4.1 torchvision-cpu -c pytorch 无gpu版本安装,指定版本号torchvision INSTALLING PREVIOU...原创 2019-01-07 22:25:19 · 24621 阅读 · 1 评论 -
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 · 20257 阅读 · 2 评论