当前位置:网站首页>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
边栏推荐
- Leetcode 263. ugly number
- flutter多渠道打包运行
- 银行业客户体验管理现状与优化策略分析
- LeetCode 2119. 反转两次的数字
- Mysql数据目录(2)---表数据结构(二十五)
- LeetCode 217. 存在重复元素
- How to remove underline and color when there is focus in the shutter textfield
- B+树挑选索引(2)---mysql从入门到精通(二十三)
- Does anyone know where the retract of flinksql can be specified? Only api code settings can be seen in online materials
- Does Flink CDC only support SQL client to submit SQL scripts
猜你喜欢

12 brand management of commodity system in gulimall background management

基于ASP.NET的某高校学院档案管理系统

PostgreSQL official website download error

Learn about Pinia state getters actions plugins

Hcip day 11 comparison (BGP configuration and release)

Kubernetes flannel: host-gw mode

维度灾难 维数灾难 暂记

【5GC】什么是5G切片?5G切片如何工作?
![[typescript] typescript common types (Part 2)](/img/6b/2ac07f16af044bdfb719753ae241cc.png)
[typescript] typescript common types (Part 2)

Example of establishing socket communication with Siemens PLC based on C # open TCP communication
随机推荐
Display inline+calc realizes left, middle and right layout, and the middle is adaptive
12-GuliMall 后台管理中商品系统的品牌管理
关于自动重复调用接口的一种实现方式-反射
Can I take your subdomain? Exploring Same-Site Attacks in the Modern Web
B+树(5)myISAM简介 --mysql从入门到精通(十七)
【5GC】什么是5G切片?5G切片如何工作?
After being fined "paid leave" for one month, Google fired him who "loves" AI
HCIP第十二天笔记整理(BGP联邦、选路规则)
Why do you want to make "secret comments"?
Outline design specification
概要设计说明书
Leetcode 2119. number reversed twice
B+树索引使用(9)分组、回表、覆盖索引(二十一)
Flutter dart generates a list of random numbers that are not repeated in n intervals
pomerium
Use positioning to realize left, middle and right layout, and the middle content is adaptive
银行业客户体验管理现状与优化策略分析
Extra (5) - MySQL execution plan (51)
MySQL可以自定义变参存储函数吗?
图扑 3D 可视化国风设计 | 科技与文化碰撞炫酷”火花“