- 博客(9)
- 资源 (2)
- 收藏
- 关注
原创 2021-08-07笔试选择和编程题
笔试题2021.8.7 1.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
219
原创 matlab中colorbar,plot,显示等
matlab中显示colorbar和subplotplot绘制曲线 colorbar和subplot figure; % show fractional abundances in aimage for 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
2455
原创 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
1223
原创 python生成exe可执行文件方法,及python maximum recursion depth exceeded,UTF-8”编解码器无法解码位置122中的字节0xCE:无效的继续字节解决
利用python生成可执行文件 1.安装Pyinstaller 此过程用conda或者pip安装都是可以的。打开cmd后,使用conda install Pyinstaller或者pip installPyinstaller 2.转到要生成exe文件的路径下 3.执行指令pyinstaller -F xxx.py 4.等待 一串串提示符之后successful! 在文件目录下生成dist文件夹和build文件夹,其中dist中即生成目标xxx.exe ...
2020-08-06 17:26:31
570
原创 the enviroment is inconsistent, lease check the package plan carefully
使用conda install ××时报错: the enviroment is inconsistent, lease check the package plan carefully conda-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
432
原创 常用conda控制channels命令+cmd转到路径
1.换回conda的默认源 conda config --remove-key channels 2.显示channels conda config --show channels 3.移除镜像 conda config --remove channels https://…… 4.添加镜像 conda config --add channels https://…… 5.查看conda版本 conda -V 6.查看虚拟环境 conda info --envs 7.创建虚拟环境 conda cre
2020-06-28 19:54:05
1482
原创 matlab中imshow指定目标位置颜色(RGB)
如何在matlab中imshow指定颜色 上代码,反正就是指定rgb,参照图和程序中map,对应颜色和rgb clc;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:12 aa(10*k-9:10*k-1,:,1)=map(k,1); aa(10*k-9:10*k-1,:,2)=
2020-06-24 13:34:30
7252
原创 pip损坏 cannot import name formatControl
想卸载一个环境时用pip uninstall ××× 报错cannot import name formatControl 怀疑可能pip损坏,试了下pip -V 报错 确诊pip损坏。重装pip参考https://blog.csdn.net/Nemo____/article/details/83886733 1.首先执行命令: python -m ensurepip --default-pip 2.下载 get-pip.py 文件 地址为 https://bootstrap.pypa.io
2020-06-21 15:18:48
5797
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
413
常用的高光谱算法matlab.zip
2020-06-20
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人
RSS订阅