Windows安装 cityflow
论文:
- Vehicle MTMC dataset – CityFlow: A City-Scale Benchmarkfor Multi-Target Multi-Camera Vehicle Tracking and Re-Identification
[1912.08855v1] Simulating Content Consistent Vehicle Datasets with Attribute Descent
- Synthetic 3D vehicle dataset – Simulating content consistent vehicle datasets with attribute descent
[2004.14619] The 4th AI City Challenge
Cityflow安装
Linux(Windows用户建议在Windows Subsystem For Linux(WSL)下运行CityFlow或使用docker)指导网址: Welcome to CityFlow’s documentation! — CityFlow 0.1 documentation
windows安装(annaconda+tensorflow):
不用自己下载GitHub上代码(可先装cmake,后面因未装报错了)
- Activate tensorflow(进入环境);
- Conda install git(若无git);
- git clone https://github.com/cityflow-project/CityFlow (下载cityflow);
- Pip install . ;
没有装cmake报错:
pip install cmake;
继续安装cityflow报错:
查错误:Error: does not support platform specification ... when using setup.py. (Compiles with CUDA otherwise) · Issue #1333 · davisking/dlib · GitHub
下载Visual Studio 教程:【教程】Visual Studio2019安装教程 - 木子欢儿 - 博客园
其中要选择(若是没有选,进入卸载程序中修改)
继续pip install . 安装成功
备注 VS 2022 CMake4.0 后会报错
Building for: Visual Studio 17 2022 CMake Error at CMakeLists.txt:1 (cmake_minimum_required): Compatibility with CMake < 3.5 has been removed from CMake.
需要修改
修复 CMakeLists.txt 兼容性问题
修改项目中的 CMake 最低版本要求:
- 修改项目根目录的 CMakeLists.txt(
E:\LLL\S2R\UGAT-main\CityFlow-master\CityFlow\CMakeLists.txt
):cmake
# 将第一行改为 cmake_minimum_required(VERSION 3.5)
- 修改 pybind11 的 CMakeLists.txt(
E:\LLL\S2R\UGAT-main\CityFlow-master\CityFlow\extern\pybind11\CMakeLists.txt
):cmake
# 将第8行改为 cmake_minimum_required(VERSION 3.5)
- 修改 pybind11 工具文件(
E:\LLL\S2R\UGAT-main\CityFlow-master\CityFlow\extern\pybind11\tools\pybind11Tools.cmake
):cmake
# 将第8行改为 cmake_minimum_required(VERSION 3.5)