- 博客(9)
- 资源 (2)
- 收藏
- 关注
原创 2021-08-07笔试选择和编程题
笔试题2021.8.71.String s;初始化有值么?String m;System.out.println(m);编译报错,String值必须初始化2.String类型 char[] 在传递函数中值变化不?string不变,char[]变(string类型数据是不能修改的,传函是新建一个string引用)3.null 和“”的区别null指的是一个空对象,这个对象可以是任何一个类的实例。"“指的是一个空字符串,这个字符串的长度为0。也就是说null这个对象的类型可以是任何一个类型
2021-08-07 18:07:18
127
原创 matlab中colorbar,plot,显示等
matlab中显示colorbar和subplotplot绘制曲线colorbar和subplotfigure; % show fractional abundances in aimagefor i=1:6 subplot(2,3,i);colormap('jet'); imagesc(image_X(:,:,i));caxis([0,1]); set(gca,'xtick', 0:10:75,'ytick', 0:10:75); colorbar('ytick',0:0.2
2021-06-10 11:31:26
2127
原创 image caption和NLP中的注意力机制
image caption和NLP中的注意力机制最近在学习有关image caption(图像描述)的内容,记录下学习内容和思考,以便后续学习。本文参考了很多大神的笔记和论文。如何理解Image caption自然语言翻译是输入输出都为句子,而对于image caption 是输入为图像,输出为图像的语言描述。Natural image captioning,发展至今主要有三种方法:retrieved-based method(基于检索的方法), object detection-based meth
2020-12-26 11:33:34
987
原创 python生成exe可执行文件方法,及python maximum recursion depth exceeded,UTF-8”编解码器无法解码位置122中的字节0xCE:无效的继续字节解决
利用python生成可执行文件1.安装Pyinstaller此过程用conda或者pip安装都是可以的。打开cmd后,使用conda install Pyinstaller或者pip installPyinstaller2.转到要生成exe文件的路径下3.执行指令pyinstaller -F xxx.py4.等待一串串提示符之后successful!在文件目录下生成dist文件夹和build文件夹,其中dist中即生成目标xxx.exe...
2020-08-06 17:26:31
462
原创 the enviroment is inconsistent, lease check the package plan carefully
使用conda install ××时报错:the enviroment is inconsistent, lease check the package plan carefullyconda-forge/win-64::keras==2.1.5=py35_0看到有说 conda install anaconda和conda update all的,试了我都没用。最后看到有说可能是国内镜像的问题,试了下,先将镜像恢复默认- conda config --remove-key channels
2020-06-28 20:13:08
307
原创 常用conda控制channels命令+cmd转到路径
1.换回conda的默认源conda config --remove-key channels2.显示channelsconda config --show channels3.移除镜像conda config --remove channels https://……4.添加镜像conda config --add channels https://……5.查看conda版本conda -V6.查看虚拟环境conda info --envs7.创建虚拟环境conda cre
2020-06-28 19:54:05
1222
原创 matlab中imshow指定目标位置颜色(RGB)
如何在matlab中imshow指定颜色上代码,反正就是指定rgb,参照图和程序中map,对应颜色和rgbclc;clear;aa=zeros(120,120,3);map=[2/3 0.5 0;1 0 0;0 1 0;0 0 1;1 1 0;1 0 1;0 1 1;2/3 2/3 1;1 0.5 0;0.5 0 0;0.2 0.2 0.2;2/3 2/3 2/3];for k=1:12aa(10*k-9:10*k-1,:,1)=map(k,1);aa(10*k-9:10*k-1,:,2)=
2020-06-24 13:34:30
6811
原创 pip损坏 cannot import name formatControl
想卸载一个环境时用pip uninstall ×××报错cannot import name formatControl怀疑可能pip损坏,试了下pip -V报错确诊pip损坏。重装pip参考https://blog.csdn.net/Nemo____/article/details/838867331.首先执行命令: python -m ensurepip --default-pip2.下载 get-pip.py 文件 地址为 https://bootstrap.pypa.io
2020-06-21 15:18:48
5325
3
原创 window8.1+pytorch+cuda+cudnn
pytorch+cuda+cudnn过了一阵子 感觉没有CUDA干不了活重新下了CUDA和cuDNN cuda和cudnn下载较慢 可复制链接到迅雷下载 cuDNN我win8.1 下载的win7下载pytorch 后安装 我用的CUDA9.0 python3.7 对应找版本下载地址https://pytorch.org/get-started/previous-versions/pip安装参看https://blog.csdn.net/caracol/article/details/9483220
2020-06-17 11:37:05
283
常用的高光谱算法matlab.zip
2020-06-20
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人