Skip to content

为 TD3 自动驾驶训练项目添加 requirements.txt#10

Open
study-pan-hub wants to merge 1 commit intomainfrom
study-pan-hub-patch-7
Open

为 TD3 自动驾驶训练项目添加 requirements.txt#10
study-pan-hub wants to merge 1 commit intomainfrom
study-pan-hub-patch-7

Conversation

@study-pan-hub
Copy link
Copy Markdown
Owner

修改概述: 为 TD3 for CarRacing-v3 项目添加依赖配置文件 requirements.txt

修改的详细描述

  1. 包含的脚本及依赖

脚本 依赖 用途
main.py gymnasium, torch, numpy 训练入口
td3_agent.py torch, numpy TD3智能体、经验回放
td3_models.py torch Actor/Critic网络定义
env_wrappers.py gymnasium, opencv-python, numpy 环境封装
  1. 核心依赖说明

  • gymnasium[box2d]: CarRacing-v3 环境(需 Box2D 物理引擎)
  • PyTorch: 深度强化学习网络框架(支持 CNN 图像输入)
  • OpenCV: 图像预处理(灰度化、缩放)
  • NumPy: 数值计算

经过了什么样的测试?

  • 仅添加 requirements.txt 文件,无代码修改
  • 包含 Box2D 依赖说明(CarRacing 环境必需)
  • 提供 GPU 版本 PyTorch 安装指南
  • 包含环境验证命令

安装验证

# 安装依赖
pip install -r requirements.txt

# 验证环境
python -c "import gymnasium as gym; env = gym.make('CarRacing-v3'); print('OK')"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant