This is the online environment used in GUI Reflection. The environment is designed in a host-worker framework, where the model inference is only running on the host machine while the Android Emulators are only on the worker machines.
-
Install the
gui_envfromrequirements.txt. -
Add the path to this repo to
PYTHONPATH. -
On the Host machine, make sure internvl is installed as specified in GUI_Reflection
-
On the worker machines, set up the Android Emulator according to env_setup.md
-
Make sure the code on the host and worker machines is synchronized, and add the SSH key of the host machine to all worker machines.
To collect data, correctly set up the config files in scripts/config/collect and run
python scripts/run.py --config-path config/collect --config-name host
To evaluate models, correctly set up the config files in scripts/config/evaluate and run
python scripts/run.py --config-path config/evaluate --config-name host
This code is built upon DigiRL, DistRL, and AndroidWorld.