当前位置:网站首页>Win11+VS2019配置YOLOX
Win11+VS2019配置YOLOX
2022-07-26 13:16:00 【星空下的仰望者】
基本环境:
操作系统:Windows
编译软件:Visual Studio 2019
Python版本:3.8
编译流程:
1、使用如下指令下载YOLOX源码:
git clone --recursive https://github.com/Megvii-BaseDetection/YOLOX.git2、使用如下指令安装依赖项:
pip install -r requirements.txt -i https://pypi.tuna.tsinghua.edu.cn/simple/3、使用如下指令安装yolox依赖项:
pip install -v -e .出现如下提示说明安装成功:

常见问题:
1、Pycocotools或者YoloX编译安装失败,出现未找到“io.h”或者“math.h”或者“basetsd.h”。
解决方法:
首先需要使用VS2019安装windows 10 sdk,具体版本根据自己需要进行选择,如下图所示:

对于使用pip install -r requirements.txt过程中出现的 Pycocotools编译失败问题,需要下载源码手动编译安装,使用如下指令下载Pycocotools源码:
git clone --recursive https://github.com/philferriere/cocoapi.git接着打开 Pycocotools或者YoloX的setup.py,在其中的include_dirs中添加相应路径,对于未找到“io.h”或者“math.h”的问题,需要添加第一条路径,对于未找到“basetsd.h”需要添加第二条路径,其中<windows 10 sdk版本>根据安装的版本自行修改,如下图所示(第一张图为Pycocotools的setup.py,第二张图为YoloX的setup.py):
C:/Program Files (x86)/Windows Kits/10/Include/<windows 10 sdk版本>/ucrt
C:/Program Files (x86)/Windows Kits/10/Include/<windows 10 sdk版本>/shared


2、Pycocotools或者YoloX编译安装失败,出现未找到“kernal32.lib”或者“ucrtd.lib”。
解决方案:
首先按照问题1中的解决方案安装windows 10 sdk,若Pycocotools编译出错需要下载源码手动编译安装,接着同样打开Pycocotools或者YoloX的setup.py,在其中的library_dirs中添加相应路径,对于未找到“kernal32.lib”的问题,需要添加第一条路径,对于未找到“ucrtd.lib”需要添加第二条路径,其中<windows 10 sdk版本>根据安装的版本自行修改,如下图所示(第一张图为Pycocotools的setup.py,第二张图为YoloX的setup.py):
C:/Program Files (x86)/Windows Kits/10/Lib/<windows 10 sdk版本>/um/x64
C:/Program Files (x86)/Windows Kits/10/Lib/<windows 10 sdk版本>/ucrt/x64

3、Pycocotools或者YoloX编译安装失败,出现未找到“rc.exe”。
解决方案:
首先按照问题1中的解决方案安装windows 10 sdk,接着将如下路径添加至系统环境变量中,其中<windows 10 sdk版本>根据安装的版本自行修改,修改完成后重启电脑,再次编译就可以通过了:
C:\Program Files (x86)\Windows Kits\10\bin\<windows 10 sdk版本>\x64
边栏推荐
- Kubernetes Flannel:HOST-GW模式
- B+ tree (5) introduction to MyISAM -- MySQL from getting started to mastering (17)
- Px2rem loader converts PX into REM and adapts to mobile vant UI and other frameworks
- pomerium
- Today in history: IBM obtained the first patent; Verizon acquires Yahoo; Amazon releases fire phone
- Slam 02. overall framework
- LeetCode 69. x 的平方根
- Incorrect use of parentdatawidget when the exception was thrown, this was the stack:
- 同花顺开的账户安全吗?
- 3D modeling and rendering based on B é zier curve
猜你喜欢

Kubernetes apiserver current limiting strategy

《Kotlin系列》之MVVM架构封装(kotlin+mvvm)

Kubernetes flannel: host-gw mode

AI-理论-知识图谱1-基础

多线程使用不当导致的 OOM

A college archives management system based on asp.net

维度灾难 维数灾难 暂记

1-6月中国ADAS供应商占比9% 又一家零部件巨头全面布局智驾新赛道
2022 employment season! Adobe helps creative industry workers break through the shackles of skills and return to the source of ability

Learn about Pinia state getters actions plugins
随机推荐
解决远程主机无法连接mysql数据库的问题
Use grid to realize left, middle and right layout, and the middle content is adaptive
Panorama of volcanic engine cloud growth plan: 30 + plans come out together, and military development advantage areas
Router. Push(), router. Reply(), router. Go()
【花雕动手做】有趣好玩的音乐可视化系列小项目(13)---有机棒立柱灯
[typescript] typescript common types (Part 1)
SLAM 02.整体框架
[flower carving hands-on] interesting and fun music visualization series small project (13) -- organic rod column lamp
StreamNative 团队文化:一家“透明”的公司
父组件访问子组件的方法或参数 (子组件暴漏出方法defineExpose)
HCIP第十二天笔记整理(BGP联邦、选路规则)
MySQL data directory (1) -- database structure (24)
Use positioning to realize left, middle and right layout, and the middle content is adaptive
【5G】5G中的CU和DU是什么?
The difference between $route and $route
Elementary notes of binary tree
[flower carving hands-on] fun music visualization series small project (12) -- meter tube fast rhythm light
Guys, please ask me, I have configured CDC to connect to Oracle according to the document, and I always run error reports and can't find the class validstione
jvm:类加载子系统干什么的?由什么组成?需要记住哪些八股文?
The child component triggers the defineemits of the parent component: the child component passes values to the parent component