Windows安装 cityflow

部署运行你感兴趣的模型镜像

论文:

  1. 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

  1. 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,后面因未装报错了)

  1. Activate tensorflow(进入环境);
  2. Conda install git(若无git);
  3. git clone https://github.com/cityflow-project/CityFlow  (下载cityflow);
  4. 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 最低版本要求:

  1. 修改项目根目录的 CMakeLists.txtE:\LLL\S2R\UGAT-main\CityFlow-master\CityFlow\CMakeLists.txt):

    cmake

    # 将第一行改为
    cmake_minimum_required(VERSION 3.5)
    

  2. 修改 pybind11 的 CMakeLists.txtE:\LLL\S2R\UGAT-main\CityFlow-master\CityFlow\extern\pybind11\CMakeLists.txt):

    cmake

    # 将第8行改为
    cmake_minimum_required(VERSION 3.5)
    

  3. 修改 pybind11 工具文件E:\LLL\S2R\UGAT-main\CityFlow-master\CityFlow\extern\pybind11\tools\pybind11Tools.cmake):

    cmake

    # 将第8行改为
    cmake_minimum_required(VERSION 3.5)
    

--------------------------------------------------------------------------------------------------------------------------

在ubuntu重装时发现 继续报camke 版本的错误

修改 CityFlow/extern/pybind11/tools/pybind11Tools.cmake文件的第八行 

cmake_minimum_required(VERSION 3.5.0)

继续报错:

import cityflow ImportError: ..../bin/../lib/libstdc++.so.6: version GLIBCXX_3.4.32' not found (required by ...site-packages/cityflow.cpython-39-x86_64-linux-gnu.so)

原因:libstdc++的版本问题,

解决:

1. 查看libstdc++版本:strings /usr/lib/x86_64-linux-gnu/libstdc++.so.6 | grep GLIBCXX 

有 3.4.32,说明是conda 环境中libstdc++ 版本问题

3. 激活环境后,conda install -c conda-forge libstdcxx-ng

您可能感兴趣的与本文相关的镜像

TensorFlow-v2.15

TensorFlow-v2.15

TensorFlow

TensorFlow 是由Google Brain 团队开发的开源机器学习框架,广泛应用于深度学习研究和生产环境。 它提供了一个灵活的平台,用于构建和训练各种机器学习模型

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值