• Stars
    star
    362
  • Rank 114,533 (Top 3 %)
  • Language
    Python
  • License
    Apache License 2.0
  • Created over 1 year ago
  • Updated over 1 year ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

羊了个羊 + 深度强化学习(Deep Reinforcement Learning + 3 Tiles Game)

DI-sheep:深度强化学习 + 羊了个羊

当 AI 技术的明珠——深度强化学习,遇到号称“通关率只有0.01%”的游戏“羊了个羊”,会碰撞出哪些奇思妙想呢?

P.S. 路过记得点个 star stars - di-sheep ,持续更新ing。

P.S.S. 想了解更多深度强化学习相关知识?快来 DI-engine 训练自己的智能体。

News

使用指南

算法原理解析

disheep drawio

快速上手

  • 如果想在线试玩 --> 在线网页(改进中)
  • 如果想本地部署/测试
    • 服务端(Python)
      # 预先安装好 Python3
      cd service
      pip install -r requirement.txt
      FLASK_APP=app.py flask run  # 玩家试玩
      # FLASK_APP=agent_app.py flask run  # 玩家 + AI 试玩
    • 客户端(react)
      # 预先安装好 node.js 和 react
      cd ui
      npm run build
      npm run preview
      然后在网页中打开对应链接即可
  • 如果想进行完整的深度强化学习训练
    # 预先安装好 Python3
    cd service
    pip install -r requirement-train.txt
    python3 -u sheep_ppo_main.py
  • 如果想使用定义好的 gym 羊了个羊环境 --> 点个 star 之后直接暴力 CTRL C+V 拿走 service/sheep_env.py 尽情魔改
  • 如果想获得训练好的深度强化学习模型 --> 访问 OpenDILab官网下载链接 (目前提供了两种试玩模型,但智能体仍有很多进步空间)
  • 如果想了解更多深度强化学习相关知识 --> 欢迎参阅 DI-engine相关文档
  • 如果想了解未来的更新计划 --> 请参阅更新计划
  • 如果有其他问题或想法 --> 欢迎 github ISSUE 区讨论,或是贡献 Pull requests

项目结构

.
├── LICENSE
├── ui                       --> react 网页前端
└── service                  --> Python 核心模块(算法和服务端)
    ├── app.py                  --> flask 服务 app (仅人类操作)
    ├── agent_app.py                  --> flask 服务 app(人类+AI操作)
    ├── requirement.txt         --> Python 依赖库列表
    ├── sheep_env.py            --> gym 格式环境
    ├── sheep_model.py          --> 基于 PyTorch 的 Actor-Critic 神经网络模型
    ├── sheep_ppo_main.py       --> 基于 DI-engine 的深度强化学习训练主函数
    ├── test_sheep_env.py       --> gym 格式环境的单元测试
    └── test_sheep_model.py     --> 神经网络模型的单元测试

更新计划

算法

  • 强化学习训练参数调整和算法微调
  • 提供可供本地试玩的模型权重
  • 详细的神经网络和强化学习算法设计文档
  • model-based RL 和 planning 算法
  • 神经网络压缩(用于部署)

环境

  • 添加原类型游戏(比如3tiles)中的各种道具
  • 牌的层数问题如何定义
  • 结合 JAX 优化环境运行速度
  • 更多结合 AI 的玩法设计

应用

  • 更多自定义主题和 BGM
  • 在线网页端部署
  • 样例神经网络权重下载
  • 更多 AI 训练时的行为分析
  • 移动端应用(欢迎Android/IOS开发者支持)

致谢

License

DI-sheep is released under the Apache 2.0 license.

More Repositories

1

awesome-RLHF

A curated list of reinforcement learning with human feedback resources (continually updated)
2,880
star
2

DI-engine

OpenDILab Decision AI Engine
Python
2,660
star
3

PPOxFamily

PPO x Family DRL Tutorial Course(决策智能入门级公开课:8节课帮你盘清算法理论,理顺代码逻辑,玩转决策AI应用实践 )
Python
1,632
star
4

DI-star

An artificial intelligence platform for the StarCraft II with large-scale distributed training and grand-master agents.
Python
1,177
star
5

LightZero

[NeurIPS 2023 Spotlight] LightZero: A Unified Benchmark for Monte Carlo Tree Search in General Sequential Decision Scenarios
Python
908
star
6

awesome-model-based-RL

A curated list of awesome model based RL resources (continually updated)
759
star
7

awesome-diffusion-model-in-rl

A curated list of Diffusion Model in RL resources (continually updated)
607
star
8

awesome-decision-transformer

A curated list of Decision Transformer resources (continually updated)
587
star
9

DI-drive

Decision Intelligence Platform for Autonomous Driving simulation.
Python
543
star
10

LLMRiddles

Open-Source Reproduction/Demo of the LLM Riddles Game
Python
486
star
11

InterFuser

[CoRL 2022] InterFuser: Safety-Enhanced Autonomous Driving Using Interpretable Sensor Fusion Transformer
Python
482
star
12

GoBigger

[ICLR 2023] Come & try Decision-Intelligence version of "Agar"! Gobigger could also help you with multi-agent decision intelligence study.
Python
440
star
13

LMDrive

[CVPR 2024] LMDrive: Closed-Loop End-to-End Driving with Large Language Models
Jupyter Notebook
370
star
14

awesome-multi-modal-reinforcement-learning

A curated list of Multi-Modal Reinforcement Learning resources (continually updated)
333
star
15

awesome-exploration-rl

A curated list of awesome exploration RL resources (continually updated)
312
star
16

awesome-end-to-end-autonomous-driving

A curated list of awesome End-to-End Autonomous Driving resources (continually updated)
301
star
17

SO2

[AAAI2024] A Perspective of Q-value Estimation on Offline-to-Online Reinforcement Learning
Python
253
star
18

DI-engine-docs

DI-engine docs (Chinese and English)
Python
252
star
19

DI-orchestrator

OpenDILab RL Kubernetes Custom Resource and Operator Lib
Go
225
star
20

treevalue

Here are the most awesome tree structure computing solutions, make your life easier. (这里有目前性能最优的树形结构计算解决方案)
Python
223
star
21

DI-smartcross

Decision Intelligence platform for Traffic Crossing Signal Control
Python
217
star
22

DI-hpc

OpenDILab RL HPC OP Lib
Python
204
star
23

GoBigger-Challenge-2021

Interested in multi-agents? The 1st Go-Bigger Multi-Agent Decision Intelligence Challenge is coming and a big bonus is waiting for you!
Python
195
star
24

awesome-AI-based-protein-design

A collection of research papers for AI-based protein design
191
star
25

ACE

[AAAI 2023] Official PyTorch implementation of paper "ACE: Cooperative Multi-agent Q-learning with Bidirectional Action-Dependency".
Python
190
star
26

DI-treetensor

Let DI-treetensor help you simplify the structure processing!(树形运算一不小心就逻辑混乱?DI-treetensor快速帮你搞定)
Python
187
star
27

Gobigger-Explore

Still struggling with the high threshold or looking for the appropriate baseline? Come here and new starters can also play with your own multi-agents!
Python
174
star
28

DI-store

OpenDILab RL Object Store
Go
168
star
29

LightTuner

Python
159
star
30

DOS

[CVPR 2023] ReasonNet: End-to-End Driving with Temporal and Global Reasoning
Python
121
star
31

DI-bioseq

Decision Intelligence platform for Biological Sequence Searching
Python
105
star
32

DI-toolkit

A simple toolkit package for opendilab
Python
101
star
33

DI-1024

1024 + 深度强化学习(Deep Reinforcement Learning + 1024 Game)
JavaScript
97
star
34

DIgging

Decision Intelligence for digging best parameters in target environment.
Python
81
star
35

awesome-driving-behavior-prediction

A collection of research papers for Driving Behavior Prediction
72
star
36

DI-adventure

Decision Intelligence Adventure for Beginners
Python
61
star
37

SmartRefine

[CVPR 2024] SmartRefine: An Scenario-Adaptive Refinement Framework for Efficient Motion Prediction
Python
57
star
38

PsyDI

PsyDI: A MBTI agent that helps you understand your personality type through a relaxed multi-modal interaction.
TypeScript
41
star
39

CodeMorpheus

CodeMorpheus: Generate code self-portraits with one click(一键生成代码自画像,决策型 AI + 生成式 AI)
Python
39
star
40

huggingface_ding

Auxiliary code for pulling, loading reinforcement learning models based on DI-engine from the Huggingface Hub, or pushing them onto Huggingface Hub with auto-created model card.
Python
29
star
41

OpenPaL

Building open-ended embodied agent in battle royale FPS game
19
star
42

.github

The first decision intelligence platform covering the most complete algorithms in academia and industry
12
star
43

GenerativeRL

5
star