没有合适的资源?快使用搜索试试~ 我知道了~
首页利用PyQt5为目标检测Faster-rcnn-Pytorch添加GUI界面(二)
五.复现代码过程 由于官网上的程序是在Liunx系统上的实现,我们要在windows系统需要改一下程序。 1.安装软件:Anaconda3-2019.10-Windows-x86_64,pycharm-professional-2019.3.2,qt-opensource-windows-x86-5.12.0 安装包链接:https://pan.baidu.com/s/1BhGMsln6ZIGkw-XHp0yFdA 提取码:9yjx 2.安装GPU加速器:Cuda10.0+Cudnn7.4.2 安装包链接:https://pan.baidu.com/s/1eS5D6NV2jddcjj5tvai
资源详情
资源评论
资源推荐

利用利用PyQt5为目标检测为目标检测Faster-rcnn-Pytorch添加添加GUI界面(二)界面(二)
五.复现代码过程
由于官网上的程序是在Liunx系统上的实现,我们要在windows系统需要改一下程序。
1.安装软件:Anaconda3-2019.10-Windows-x86_64,pycharm-professional-2019.3.2,qt-opensource-windows-x86-5.12.0
安装包链接:https://pan.baidu.com/s/1BhGMsln6ZIGkw-XHp0yFdA
提取码:9yjx
2.安装GPU加速器:Cuda10.0+Cudnn7.4.2
安装包链接:https://pan.baidu.com/s/1eS5D6NV2jddcjj5tvaibeg
提取码:1zor
3.安装pytorch1.1.0:
以管理员身份运行Anconda Prompt,加入清华网:
conda config –add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/
conda config –add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main/
conda config –set show_channel_urls yes
conda config –add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/pytorch/
创建名为pytorch的虚拟环境:
conda create -n pytorch python=3.6
激活 进入新环境:activate pytorch
然后安装pytorch:conda install pytorch=1.1.0 torchvision=0.3.0 cudatoolkit=10.0
4.安装Pyqt5:直接使用pip安装,但是需要SIP的支持,所以先安装SIP,再安装pyqt5
pip install sip
pip install PyQt5
安装qt designer:pip install PyQt5-tools
安装完成后,在安装目录下可以看到下面标出的文件夹:
5. 配置pycharm:新建工程名为faster-rcnn的工程,点击File/Settings/Project Interpreter,设置python解释器为我们新建的pytorch虚拟环境的
python3.6。
配置Qt Designer:点击File/Settings/Tools/External Tools,新建一个工具“Qt Designer”,可以用来设计GUI界面,生成UI文件(也可以直接用Qt
Creator中带有的UI Designer设计)
Name:可自己定义
Program:指向上述安装PyQt5-tools里面的designer.exe或者Qt Creater中的designer.exe
Work directory:使用变量 FileDirFileDirFileDir
配置PyUIC:点击File/Settings/Tools/External Tools,再新建一个工具“PyUIC”,这个主要是用来将上述的UI文件 转换成 py文件的。















安全验证
文档复制为VIP权益,开通VIP直接复制

评论0