当前位置:网站首页>Win11+vs2019 configuration yolox
Win11+vs2019 configuration yolox
2022-07-26 13:25:00 【The looker under the starry sky】
Basic environment :
operating system :Windows
Compiling software :Visual Studio 2019
Python edition :3.8
Compilation process :
1、 Use the following instructions to download YOLOX Source code :
git clone --recursive https://github.com/Megvii-BaseDetection/YOLOX.git2、 Use the following instructions to install dependencies :
pip install -r requirements.txt -i https://pypi.tuna.tsinghua.edu.cn/simple/3、 Use the following instructions to install yolox Dependencies :
pip install -v -e .The following prompt shows that the installation is successful :

common problem :
1、Pycocotools perhaps YoloX Compilation and installation failed , Appear not found “io.h” perhaps “math.h” perhaps “basetsd.h”.
resolvent :
First you need to use VS2019 install windows 10 sdk, The specific version is selected according to your needs , As shown in the figure below :

For the use of pip install -r requirements.txt In the process Pycocotools Compilation failure , You need to download the source code, compile and install it manually , Use the following instructions to download Pycocotools Source code :
git clone --recursive https://github.com/philferriere/cocoapi.gitThen open Pycocotools perhaps YoloX Of setup.py, Among them include_dirs Add the corresponding path , For not found “io.h” perhaps “math.h” The problem of , You need to add the first path , For not found “basetsd.h” You need to add a second path , among <windows 10 sdk edition > Modify according to the installed version , As shown in the figure below ( The first picture is Pycocotools Of setup.py, The second picture is YoloX Of setup.py):
C:/Program Files (x86)/Windows Kits/10/Include/<windows 10 sdk edition >/ucrt
C:/Program Files (x86)/Windows Kits/10/Include/<windows 10 sdk edition >/shared


2、Pycocotools perhaps YoloX Compilation and installation failed , Appear not found “kernal32.lib” perhaps “ucrtd.lib”.
Solution :
First, according to the question 1 Solution installation in windows 10 sdk, if Pycocotools Compilation error, you need to download the source code and manually compile and install , Then open the same Pycocotools perhaps YoloX Of setup.py, Among them library_dirs Add the corresponding path , For not found “kernal32.lib” The problem of , You need to add the first path , For not found “ucrtd.lib” You need to add a second path , among <windows 10 sdk edition > Modify according to the installed version , As shown in the figure below ( The first picture is Pycocotools Of setup.py, The second picture is YoloX Of setup.py):
C:/Program Files (x86)/Windows Kits/10/Lib/<windows 10 sdk edition >/um/x64
C:/Program Files (x86)/Windows Kits/10/Lib/<windows 10 sdk edition >/ucrt/x64

3、Pycocotools perhaps YoloX Compilation and installation failed , Appear not found “rc.exe”.
Solution :
First, according to the question 1 Solution installation in windows 10 sdk, Then add the following path to the system environment variable , among <windows 10 sdk edition > Modify according to the installed version , Restart the computer after the modification , Compile again and you can pass :
C:\Program Files (x86)\Windows Kits\10\bin\<windows 10 sdk edition >\x64
边栏推荐
- With 8 years of product experience, I have summarized these practical experience of continuous and efficient research and development
- 从其他文件触发pytest.main()注意事项
- pomerium
- Learn about Pinia state getters actions plugins
- Abstract factory and its improvement examples
- [flower carving hands-on] interesting and fun music visualization series small project (13) -- organic rod column lamp
- 详解关系抽取模型 CasRel
- Activity.onStop() 延迟10秒?精彩绝伦的排查历程
- Unity中序列化类为json格式
- Kubernetes flannel: host-gw mode
猜你喜欢

Precautions for triggering pytest.main() from other files

One stroke problem (Chinese postman problem)

HCIP第十一天比较(BGP的配置、发布)

Unicode file parsing methods and existing problems
![[typescript] typescript common types (Part 1)](/img/80/5c8c51b92d3a9d76f38beba7be0aa6.png)
[typescript] typescript common types (Part 1)

目标检测网络R-CNN 系列

HCIP第十二天笔记整理(BGP联邦、选路规则)

Abstract factory and its improvement examples

我们被一个 kong 的性能 bug 折腾了一个通宵

Hcip day 12 notes sorting (BGP Federation, routing rules)
随机推荐
B+树索引使用(8)排序使用及其注意事项(二十)
同站攻击(相关域攻击)论文阅读 Can I Take Your Subdomain?Exploring Same-Site Attacks in the Modern Web
[upper computer tutorial] Application of integrated stepping motor and Delta PLC (as228t) under CANopen communication
The child component triggers the defineemits of the parent component: the child component passes values to the parent component
vector的一些实用操作
JSON data transfer parameters & date type parameter transfer
异步线程池在开发中的使用
B+树索引使用(9)分组、回表、覆盖索引(二十一)
Learn about Pinia state getters actions plugins
JSON format execution plan (6) - MySQL execution plan (52)
El table implements editable table
Brief introduction of reflection mechanism
Golang port scanning design
概要设计说明书
Photoshop (cc2020) unfinished
JSON格式执行计划(6)—mysql执行计划(五十二)
Implementation of SAP ABAP daemon
LeetCode 263.丑数
B+ tree (5) introduction to MyISAM -- MySQL from getting started to mastering (17)
We were tossed all night by a Kong performance bug