自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(30)
  • 收藏
  • 关注

原创 linux jupyter notebook使用pytorch

1.自行安装jupyterconda install ipythonconda install jupyter2.ipython kernelspec install-self --user3.mkdir -p /home/fire/.ipython/kernels4.mv /home/fire/.local/share/jupyter/kernels/python3 /home/fire/.ipython/kernels/torch5.cd /home/fi

2021-01-27 12:29:25 334

原创 notepad++编译运行c++

https://www.php.cn/tool/notepad/434282.html1 安装MinGW,配置环境变量:在高级系统设置中添加环境变量,找到Path,末尾添加 D:\MinGW\bin,与前面的路径用;隔开2 打开cmd ,输入g++ -v ,若输出g++版本,则修改成功3 打开notepad++,点“运行”按钮,添加以下内容,命名为g++ run,保存重点:cmd /k chdir /d $(CURRENT_DIRECTORY) & c++ $(NAME_...

2020-09-22 22:36:00 408

原创 ultralytics/yolov3

执行:python train.py --data data/face.data --cfg cfg/yolov3.cfg --epochs 10 --device 0报错:AssertionError: CUDA unavailable, invalid device 0 requested原因:安装的pytorch版本不支持GPU解决方法:(1)卸载pytorchpip uninstall torchpip uninstall torchvision(2)安装(参考

2020-07-07 18:13:06 1621 1

原创 Ubuntu安装TensorFlow和keras

1.创建新环境tensorflow-1,安装tensorflow-GPU版本2.输入python,验证是否安装成功:出现警告:FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'.解决方法:降低numpy版本,当下版本为1.

2020-06-23 20:51:32 393

原创 ValueError: Dimension 0 in both shapes must be equal, but are 1 and 21. Shapes are [1,1,1024,54] and

ValueError: Dimension 0 in both shapes must be equal, but are 1 and 21. Shapes are [1,1,1024,54] and [21,1024,1,1]. for 'Assign_360' (op: 'Assign') with input shapes: [1,1,1024,54], [21,1024,1,1].

2020-06-19 10:29:56 2724 1

原创 Ubuntu登录后蓝屏

问题:Ubuntu输入密码登录后一直处于蓝屏状态原因:暴力关机损坏了Ubuntu的图形系统配置,导致图形界面无法正常起来,所以就看到能够登录,却只有一片蓝色。(我的确暴力关闭Ubuntu了。。。)解决:(1)Ctrl + Alt + F4进入字符界面,需要输入用户名和密码,用户名就是你自己安装Ubuntu时起的那个名字。(2)sudo apt-get install xserver-xorg-lts-utopic //重装图像界面模块的代码输入这行代码时报错了,提示操作sudo d...

2020-06-06 17:17:00 1772 4

原创 ubuntu安装labelImg

1.使用git下载labelImg(下载后就在home目录下,名为labelImg)2.安装(安装时一定要进入labelImg目录下安装,否则会出现如下几种错误:(1)执行指令conda install lxml出现提示:Invalid choice: make qt5py3y执行指令:make qt5py3报错:make: *** No rule to make target 'qt5py3'. Stop.)成功安装方法如下:cd la...

2020-05-25 16:51:47 1462 1

原创 运行YOLOv3(tensorflow+keras版本)

1.下载权值文件wget https://pjreddie.com/media/files/yolov3.weights鉴于网速,我是提前下下来放在keras-yolo3-master文件夹下的(复制上述网址打开即可下载)2.模型转换:将darket yolo模型转换为keras模型python convert.py yolov3.cfg yolov3.weights model_data/yolo.h5运行过程部分截图:3.测试:(因为在yolo_video.py...

2020-05-23 14:37:20 301 1

原创 安装keras

import keras出现如下情况:/home/fire/anaconda3/envs/tensorflow/lib/python3.6/site-packages/tensorboard/compat/tensorflow_stub/dtypes.py:550: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will b.

2020-05-22 21:44:39 109

原创 pycharm调试

1.在pycharm下运行报错:ImportError: libcublas.so.9.0: cannot open shared object file: No such file or directory解决方法:打开.bashrc文件,在末尾添加上如下三行代码,我自己当初安装cuda时只添加了前两行代码,加上CUDA_HOME后运行不再报错。sudo vim ~/.bashrc...

2020-01-06 20:24:35 145

原创 ubuntu调试

https://blog.csdn.net/u011947630/article/details/80095627

2019-09-05 20:45:42 447

原创 出错

python main.py --dataset="parta" --gpu=2 --start-epoch=0 --epochs=30In data_reader.__init__: Can't read meta data in ../dataset/stparta_dotmaps_predscale0.5_rgb_ddcnn++_test_val_30; call...

2019-08-28 16:09:42 200

原创 ImportError: cannot import name 'imsave'

Traceback (most recent call last): File "main.py", line 23, in <module> from scipy.misc import imsave, imresizeImportError: cannot import name 'imsave'报错如上。有教程说缺少 Pillow 包,但我安装了依然报错。...

2019-08-24 09:50:44 336

原创 ubuntu安装tensorflow

1.2.3.4.5.镜像链接参考:https://www.cnblogs.com/white-the-Alan/p/8686178.html6.报错https://blog.csdn.net/qq_39521554/article/details/830426856.卸载pip uninstall protobufpip uninstall tenso...

2019-08-06 18:52:48 136

原创 pytorch使用docker 镜像

唉,本来不想写的,结果参考的找不到了。。。1.得安装专业版的pycharm,经验证,社区版的是没有docker选项的。2.File->setting->project interpreter,点击Add,(我这是已经装好后才来写的,所以是配置好的界面了)选中Docker:点击New:命名为Docker ,选择unix socket,点击ok在Image ...

2019-07-26 21:10:15 3049

原创 Ubuntu使用anaconda新建虚拟环境安装pytorch

1.建立虚拟环境conda create -n pytorch python=3.6建立一个名为pytorch的虚拟环境,以后所有的操作都在这个虚拟环境中,这可以避免各个版本的python或者框架之间的相互干扰。python=可以让你指定python的版本,如果不输入括号中的内容,系统会安装目前最新的python版本。22.激活虚拟环境source activate pyt...

2019-07-26 18:23:21 7091

原创 修改只读文件权限并修改文件

1.Ubuntu 更改文件夹权限及chmod详细用法如下:sudo chmod 777 ××× (每个人都有读和写以及执行的权限)sudo chmod 644 ××× (所有者有读和写的权限,组用户只有读的权限)2.退出编辑模式,并保存,按键esc退出insert模式,然后按shift+: (shift+冒号键),然后输入wq,wq表示,保存并退出。如果只按键q,则是只退出不保存...

2019-07-20 21:44:43 9515

原创 ubuntu 安装百度网盘

https://blog.csdn.net/m0_38036750/article/details/92662468安装scikit-image时:pip3 install scikit-image==0.14.2它会顺便就安装了pillow,matplotlib,早知道就不自己安装了安装opencv-python时,会同时安装numpy。。。...

2019-07-17 18:33:01 179

原创 ubuntu18安装CUDA

1.安装CUDA9.02.安装nvidia-docker一直按enter知道more变为100%,询问是否接受协议。修改.bashrc文件时,在home下搜索该文件,没有就Ctrl+H,就出来了

2019-07-16 21:18:55 201

原创 $ git add hello.txt fatal: pathspec 'hello.txt' did not match any files

$ git add hello.txtfatal: pathspec 'hello.txt' did not match any files出现上述错误,解决方法:在文件夹下自己先建一个.txt文件,再add即可,或者使用touch hello.txt再git add hello.txt即可。不过为什么用notepad++创建就不行呢?克隆GitHub上的项...

2019-07-15 19:38:34 1163

转载 pytorch(1)加载数据集

1. CIFAR-10是多伦多大学提供的图片数据库,图片分辨率压缩至32x32,一共有10种图片分类,均进行了标注。适合监督式学习。CIFAR10有60000张图片,其中50000张是训练集,10000张是测试集。cifar-10数据集下载链接2.torchvision包。使用torchvision可以轻松实现数据的加载和预处理。3.使用datasets.CIFAR10()函...

2019-07-09 19:41:59 471 3

转载 IndentationError: expected an indented block

原文链接请点击原因:缩进错误: 期望一个缩进的块解决方案:在报错的逻辑代码的前面加个空格报错原因:python的语法结构和特点导致。1. 如C++, java 等语言,方法后面是用{}来区分是否属于一个方法的,但在python里面方法体并不使用{}来区分,python是用缩进来识别语法逻辑块的(i.e. if, while, for, def 等)。同一个if逻辑块下面的语...

2019-07-09 19:11:26 400

转载 更改pip源至清华、阿里镜像

文章链接:https://blog.csdn.net/weixin_40240670/article/details/80616834临时使用:可以在使用pip的时候加参数-ihttps://pypi.tuna.tsinghua.edu.cn/simple

2019-06-04 16:56:57 449

原创 ubuntu16下安装anaconda2和pytorch

一、安装anaconda1.下载anacondahttps://repo.continuum.io/archive/,我选择的是2.将windows下的文件复制到ubuntu中来第一步: sudo apt-get autoremove open-vm-tools第二步:sudo apt-get install open-vm-tools-desktop然后重启 reboot...

2019-06-03 22:26:02 632

原创 halcon13+vs2017+c# 配置以及将halcon13中程序一以C#导出在vs2017中运行

一、配置1.在vs中新建Windows 窗体应用程序另:在某篇文章中看到说要把框架那里改为.NET Framework 4,不要用更高版本的,也不知道为什么,或者不改会导致什么问题,暂时记录在这吧2.解决方案管理器---引用---添加引用,在引用管理器里左边点击“浏览”,再点击右下角的“浏览(B)...”,找到halcondotnet.dll,添加成功后在引用中可以看到。...

2019-03-01 21:35:25 2476 2

转载 halcon 代码语句颜色区分

转自:http://blog.sina.com.cn/s/blog_96fa8b880101d1kd.html绿色:注释褐色:控制和开发算子蓝色:图像获取和处理算子浅蓝色:外部函数(halcon已经编写好植入的函数)紫色:内部函数...

2019-01-21 21:03:22 1227

原创 halcon(读取图片并转为灰度图)

dev_close_window ()read_image (Image, 'F:/wallpaper/1.jpg')get_image_size (Image, Width, Height)dev_open_window (0, 0, Width, Height, 'black', WindowHandle)dev_display (Image)dev_open_window (0,...

2019-01-21 20:26:14 11165

原创 hallon一些文章链接

1.   星之影 《如何用HALCON编程》:https://www.cnblogs.com/xingziying/p/4147062.html2.   分享吉林大学机械科学与工程学院,zhao jun 博士的Halcon学习过程及知识分享:http://blog.sina.com.cn/s/articlelist_1143733774_0_1.html3.   图像处理、计算机视觉、算法...

2019-01-21 19:45:09 199

原创 ubuntu中安装zbar

在ubuntu中安装zbar,用以下两条指令:sudo apt-get install libzbar-devpip install zbar在ubuntu中安装zbar出现以下问题:Could not install packages due to an EnvironmentError: [Errno 13] Permission denied: '/usr/local/lib...

2019-01-18 20:41:33 1957

原创 vs2017中安装OpenCV3.4.5

 OpenCV下载https://sourceforge.net/projects/opencvlibrary/1.永久配置OpenCV3.4.5+VS2017(1)path环境变量配置高级系统配置——环境变量——在系统变量中找到Path,选择编辑,在末尾先添加一个分号“ ; ”   ,然后添加安装OpenCV的路径,D:\software\opencv\opencv\build\...

2019-01-10 22:18:01 3536

空空如也

空空如也

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

TA关注的人

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