小臣子吃大橙子
commited on
Commit
•
b022e3d
1
Parent(s):
f2d4314
init repo
Browse files- .gitignore +1 -0
- README.md +80 -0
- README_zh.md +70 -0
- assets/overview.png +3 -0
- assets/title.png +3 -0
.gitignore
ADDED
@@ -0,0 +1 @@
|
|
|
|
|
1 |
+
*/.idea
|
README.md
CHANGED
@@ -1,3 +1,83 @@
|
|
1 |
---
|
2 |
license: cc-by-nc-sa-4.0
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3 |
---
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
---
|
2 |
license: cc-by-nc-sa-4.0
|
3 |
+
language:
|
4 |
+
- en
|
5 |
+
- zh
|
6 |
+
tags:
|
7 |
+
- GUI
|
8 |
+
- Agent
|
9 |
+
size_categories:
|
10 |
+
- n<1K
|
11 |
---
|
12 |
+
|
13 |
+
<div align="center">
|
14 |
+
<img src="./assets/title.png"></img>
|
15 |
+
|
16 |
+
<img src="./assets/overview.png" width="500em" ></img>
|
17 |
+
|
18 |
+
**🎮 MobA manipulates mobile phones just like how you would.**
|
19 |
+
|
20 |
+
🌐 [Website](https://github.com/OpenDFM/MobA) | 📃 [Paper](https://arxiv.org/abs/2410.13757/) | 🤗 [MobBench](https://huggingface.co/datasets/OpenDFM/MobA-MobBench) | 🗃️ [Code](https://github.com/OpenDFM/MobA)
|
21 |
+
|
22 |
+
[简体中文](./README_zh.md) | English
|
23 |
+
|
24 |
+
</div>
|
25 |
+
|
26 |
+
|
27 |
+
## 🔥 News
|
28 |
+
|
29 |
+
- **[2024.10.18]** We open-source MobA on [GitHub](https://github.com/OpenDFM/MobA), and our paper is available on [arXiv](https://arxiv.org/abs/2410.13757).
|
30 |
+
|
31 |
+
## 📖 Introduction
|
32 |
+
|
33 |
+
Current mobile assistants are limited by dependence on system APIs or struggle with complex user instructions and diverse interfaces due to restricted comprehension and decision-making abilities. To address these challenges, we propose MobA, a novel Mobile phone Agent powered by multimodal large language models that enhances comprehension and planning capabilities through a sophisticated two-level agent architecture. The high-level Global Agent (GA) is responsible for understanding user commands, tracking history memories, and planning tasks. The low-level Local Agent (LA) predicts detailed actions in the form of function calls, guided by sub-tasks and memory from the GA. Integrating a Reflection Module allows for efficient task completion and enables the system to handle previously unseen complex tasks. MobA demonstrates significant improvements in task execution efficiency and completion rate in real-life evaluations, underscoring the potential of MLLM-empowered mobile assistants.
|
34 |
+
|
35 |
+
## 🔧 Deployment
|
36 |
+
|
37 |
+
> MobA is still under development, and we are keeping updating the code. Please stay tuned!
|
38 |
+
|
39 |
+
### System Requirements
|
40 |
+
|
41 |
+
Make sure you have installed [Android Debug Bridge (ADB)](https://developer.android.google.cn/tools/adb), and you have connected your Android device to your computer. You should be able to see your devides with command `adb devices`.
|
42 |
+
|
43 |
+
### Environment Setup
|
44 |
+
|
45 |
+
```shell
|
46 |
+
conda create -n moba python=3.12
|
47 |
+
conda activate moba
|
48 |
+
pip install numpy opencv-python openai generativeai pillow colorama
|
49 |
+
```
|
50 |
+
|
51 |
+
You may also use `requirements.txt` to install the required packages (However it is not recommended since there are many unused packages).
|
52 |
+
|
53 |
+
### Run MobA
|
54 |
+
|
55 |
+
You need to specify the configuration file in `config.yaml` before running MobA. You can find the configuration file in the `moba` folder.
|
56 |
+
|
57 |
+
```bash
|
58 |
+
vim ./moba/config.yaml
|
59 |
+
cd ./moba/agent
|
60 |
+
python executor.py
|
61 |
+
```
|
62 |
+
|
63 |
+
You should be able to run MobA smoothly on Windows now. You can find MobBench, the fifty tasks we tested in the paper, on [huggingface](https://huggingface.co/datasets/OpenDFM/MobA-MobBench).
|
64 |
+
|
65 |
+
## 📑 Citation
|
66 |
+
|
67 |
+
If you find our work useful, please cite us!
|
68 |
+
|
69 |
+
```bib
|
70 |
+
@misc{zhu2024moba,
|
71 |
+
title={MobA: A Two-Level Agent System for Efficient Mobile Task Automation},
|
72 |
+
author={Zichen Zhu and Hao Tang and Yansi Li and Kunyao Lan and Yixuan Jiang and Hao Zhou and Yixiao Wang and Situo Zhang and Liangtai Sun and Lu Chen and Kai Yu},
|
73 |
+
year={2024},
|
74 |
+
eprint={2410.13757},
|
75 |
+
archivePrefix={arXiv},
|
76 |
+
primaryClass={cs.MA},
|
77 |
+
url={https://arxiv.org/abs/2410.13757},
|
78 |
+
}
|
79 |
+
```
|
80 |
+
|
81 |
+
## 📧 Contact Us
|
82 |
+
|
83 |
+
If you have any questions, please feel free to contact me via email `[email protected]`.
|
README_zh.md
ADDED
@@ -0,0 +1,70 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<div align="center">
|
2 |
+
<img src="./assets/title.png"></img>
|
3 |
+
|
4 |
+
<img src="./assets/overview.png" width="500em" ></img>
|
5 |
+
|
6 |
+
**🎮 MobA 操作手机就像你一样.**
|
7 |
+
|
8 |
+
🌐 [网站](https://github.com/OpenDFM/MobA) | 📃 [论文](https://arxiv.org/abs/2410.13757/) | 🤗 [MobBench](https://huggingface.co/datasets/OpenDFM/MobA-MobBench) | 🗃️ [代码](https://github.com/OpenDFM/MobA)
|
9 |
+
|
10 |
+
简体中文 | [English](./README.md)
|
11 |
+
|
12 |
+
</div>
|
13 |
+
|
14 |
+
## 🔥 新闻
|
15 |
+
|
16 |
+
- **[2024.10.18]** 我们在 [GitHub](https://github.com/OpenDFM/MobA) 上开源了MobA,你现在可以在 [arXiv](https://arxiv.org/abs/2410.13757) 上看到我们的论文.
|
17 |
+
|
18 |
+
## 📖 介绍
|
19 |
+
|
20 |
+
当前手机上的智能助手通常受限于对系统和第三方应用程序API的依赖。同时,基于模型的屏幕代理由于对多样化界面和复杂指令的理解和决策能力有限,难以处理这些挑战。为了解决这些挑战,我们提出了 MobA,这是一个基于视觉语言大模型两层代理的手机助手,增强了理解和规划能力。高级别的全局代理(Global Agent, GA)负责解释用户指令、管理历史记录并规划任务,而低级别的本地代理(Local Agent, LA)则根据全局代理提供的子任务和记忆,通过功能调用精确执行操作。集成反思模块可以实现高效的任务完成,此外,通过引入双重反思机制,即使是以前未遇到的任务,MobA依然能够高效处理任务。在实际评估中,MobA在任务执行效率和完成率上表现出显著提升,展示了MLLM赋能的移动助手的巨大潜力。
|
21 |
+
|
22 |
+
## 🔧 部署
|
23 |
+
|
24 |
+
> MobA 仍在开发中,我们将持续更新代码。请保持关注!
|
25 |
+
|
26 |
+
### 系统要求
|
27 |
+
|
28 |
+
请确保您已经安装了 [Android Debug Bridge (ADB)](https://developer.android.google.cn/tools/adb),并且您已经将您的 Android 设备连接到了您的计算机上。您应该可以通过 `adb devices` 命令看到您的设备。
|
29 |
+
|
30 |
+
### 环境设置
|
31 |
+
|
32 |
+
```shell
|
33 |
+
conda create -n moba python=3.12
|
34 |
+
conda activate moba
|
35 |
+
pip install numpy opencv-python openai generativeai pillow colorama
|
36 |
+
```
|
37 |
+
|
38 |
+
你也可以使用 `requirements.txt` 来安装所需的包(srds不推荐,因为有很多未使用的包)。
|
39 |
+
|
40 |
+
### 运行 MobA
|
41 |
+
|
42 |
+
你需要在运行 MobA 之前在 `config.yaml` 中指定配置文件。您可以在 `moba` 文件夹中找到配置文件。
|
43 |
+
|
44 |
+
```bash
|
45 |
+
vim ./moba/config.yaml
|
46 |
+
cd ./moba/agent
|
47 |
+
python executor.py
|
48 |
+
```
|
49 |
+
|
50 |
+
你现在应该可以在 Windows 上顺利运行 MobA 了。你可以在 [huggingface](https://huggingface.co/datasets/OpenDFM/MobA-MobBench) 上找到 MobBench,即我们在论文中测试的那五十个任务。
|
51 |
+
|
52 |
+
## 📑 引用
|
53 |
+
|
54 |
+
如果您觉得我们的工作有用,请引用我们!
|
55 |
+
|
56 |
+
```bib
|
57 |
+
@misc{zhu2024moba,
|
58 |
+
title={MobA: A Two-Level Agent System for Efficient Mobile Task Automation},
|
59 |
+
author={Zichen Zhu and Hao Tang and Yansi Li and Kunyao Lan and Yixuan Jiang and Hao Zhou and Yixiao Wang and Situo Zhang and Liangtai Sun and Lu Chen and Kai Yu},
|
60 |
+
year={2024},
|
61 |
+
eprint={2410.13757},
|
62 |
+
archivePrefix={arXiv},
|
63 |
+
primaryClass={cs.MA},
|
64 |
+
url={https://arxiv.org/abs/2410.13757},
|
65 |
+
}
|
66 |
+
```
|
67 |
+
|
68 |
+
## 📧 联系我们
|
69 |
+
|
70 |
+
如果您有任何问题,请随时通过电子邮件 `[email protected]` 与我联系。
|
assets/overview.png
ADDED
Git LFS Details
|
assets/title.png
ADDED
Git LFS Details
|