# Vissim-Python-Qt **Repository Path**: lishan666/vissim-python-qt ## Basic Information - **Project Name**: Vissim-Python-Qt - **Description**: 项目设计集成Vissim-Python和Qt的交叉口DRL配时仿真系统,该系统同时考虑检测器数据和倒计时的因素,并将Vissim仿封装为Gym环境,深度学习框架为PyTorch,使用PyQt5设计界面 - **Primary Language**: Python - **License**: GPL-3.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 4 - **Forks**: 0 - **Created**: 2021-07-12 - **Last Updated**: 2024-11-06 ## Categories & Tags **Categories**: Uncategorized **Tags**: Python, 深度强化学习, visism, 交叉口配时 ## README # Vissim-Python-Qt #### 介绍 针对目前Vissim-Python联合仿真系统在信控交叉口DRL配时研究中算法移植性不高且难以实际应用的问题,本文设计了一款交叉口配时仿真系统。在该系统中,为满足实际应用的需要,提出同时考虑检测器数据和倒计时的DRL配时模型,根据此模型需求,通过Python设计必要的Vissim组件接口,并封装为Gym强化学习仿真环境。为解决算法移植性不高的问题,基于深度学习框架PyTorch对配时算法的接口规范化,并使用PyQt5设计可视化操作界面,可灵活调整算法参数。为提高系统运行效率,使用四种技巧加速仿真进程。最后以珠海市柠溪路与兴业路交叉口为例进行仿真测试,结果表明,该系统运行良好,既可对实际交叉口的配时效果进行评估,也可作为相关算法研究者的测试平台。 #### 软件架构 软件架构说明 - Vissim: 4.30-01 - Python: 3.10.4 - CUDA:12.5 - cudnn:8.0 - Pytorch:1.7.1 输入命令nvidia-smi可以查看显卡信息,本机测试信息如下: - GPU:NVIDIA GeForce RTX 3060 - Driver Version: 556.13 #### 安装教程 1. 安装依赖包 ``` pip3 install -i https://mirrors.aliyun.com/pypi/simple/ PyQt5 gym pywin32 pandas numpy psutil matplotlib gputil ``` 依赖包参考版本如下: - GPUtil==1.4.0 - gym==0.26.2 - matplotlib==3.9.2 - numpy==2.1.3 - pandas==2.2.3 - psutil==6.1.0 - PyQt5==5.15.11 - pywin32==308 2. 安装pytorch ``` pip3 install -i https://mirrors.aliyun.com/pypi/simple/ torch torchvision torchaudio ``` pytorch参考版本如下 - torch==2.5.1 - torchaudio==2.5.1 - torchvision==0.20.1 #### 使用说明 1. 启动软件 ``` python main.py ``` #### 参与贡献 1. Fork 本仓库 2. 新建 Feat_xxx 分支 3. 提交代码 4. 新建 Pull Request #### 特技 1. 使用 Readme\_XXX.md 来支持不同的语言,例如 Readme\_en.md, Readme\_zh.md 2. Gitee 官方博客 [blog.gitee.com](https://blog.gitee.com) 3. 你可以 [https://gitee.com/explore](https://gitee.com/explore) 这个地址来了解 Gitee 上的优秀开源项目 4. [GVP](https://gitee.com/gvp) 全称是 Gitee 最有价值开源项目,是综合评定出的优秀开源项目 5. Gitee 官方提供的使用手册 [https://gitee.com/help](https://gitee.com/help) 6. Gitee 封面人物是一档用来展示 Gitee 会员风采的栏目 [https://gitee.com/gitee-stars/](https://gitee.com/gitee-stars/)