Update VAB-CSS.md
This commit is contained in:
parent
eefc62b020
commit
a1419f670b
|
@ -5,7 +5,7 @@ The environment setup for VAB-CSS is mostly straightforward.
|
|||
In most cases, we do not need any external environments for VAB-CSS, because all it involves is editing local CSS files and taking screenshots for local html files using Python playwright library.
|
||||
|
||||
However, there can be one exception that you may need to use a docker image for playwright environment: the default screenshot size (even with a specified viewport size) can be different on some Ubuntu systems.
|
||||
To check whether you need this step, use [https://github.com/THUDM/VisualAgentBench/blob/main/src/server/tasks/css_agent/screenshot_docker.py](screenshot_docker.py):
|
||||
To check whether you need this step, use [screenshot_docker.py](https://github.com/THUDM/VisualAgentBench/blob/main/src/server/tasks/css_agent/screenshot_docker.py):
|
||||
```
|
||||
python screenshot_docker.py path_to_css_dataset/cinema-world/index.html screenshot.png false
|
||||
```
|
||||
|
@ -23,4 +23,4 @@ docker run -it --rm -v [your_local_path_to_screenshot_docker.py]:/app playwright
|
|||
Then replace the `take_screenshot` method in your code with this command (e.g., calling it by using subprocess in Python).
|
||||
|
||||
## Get Started
|
||||
Configure everything within [https://github.com/THUDM/VisualAgentBench/blob/main/configs/tasks/css.yaml](configs/tasks/css.yaml).
|
||||
Configure everything within [configs/tasks/css.yaml](https://github.com/THUDM/VisualAgentBench/blob/main/configs/tasks/css.yaml).
|
||||
|
|
Loading…
Reference in New Issue
Block a user