99 lines
2.4 KiB
JSON
99 lines
2.4 KiB
JSON
{
|
|
"id": "2a729ded-3296-423d-aec4-7dd55ed5fbb3",
|
|
"snapshot": "gimp",
|
|
"instruction": "Could you make the background of this image transparent for me?",
|
|
"source": "https://www.youtube.com/watch?v=lOzSiOIipSM",
|
|
"config": [
|
|
{
|
|
"type": "download",
|
|
"parameters": {
|
|
"files": [
|
|
{
|
|
"url": "https://drive.google.com/uc?export=download&id=1TOtPi1CQsWblGUtQ6AqayfjsPZ_THBJo",
|
|
"path": "/home/user/Desktop/dog_with_background.png"
|
|
},
|
|
{
|
|
"url": "https://drive.google.com/uc?export=download&id=15YWmeOyUaA7vMX9Ts7-qyh82T8mHeepx",
|
|
"path": "/home/user/Desktop/dog_cutout_gold.png"
|
|
}
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"type": "launch",
|
|
"parameters": {
|
|
"command": [
|
|
"gimp",
|
|
"/home/user/Desktop/dog_with_background.png"
|
|
]
|
|
}
|
|
}
|
|
],
|
|
"trajectory": "trajectories/",
|
|
"related_apps": [
|
|
"gimp"
|
|
],
|
|
"evaluator": {
|
|
"postconfig": [
|
|
{
|
|
"type": "execute",
|
|
"parameters": {
|
|
"command": [
|
|
"python3",
|
|
"-c",
|
|
"import pyautogui; pyautogui.hotkey([\"shift\", \"ctrl\", \"e\"]);"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"type": "sleep",
|
|
"parameters": {
|
|
"seconds": 0.5
|
|
}
|
|
},
|
|
{
|
|
"type": "execute",
|
|
"parameters": {
|
|
"command": [
|
|
"python3",
|
|
"-c",
|
|
"import pyautogui; pyautogui.write(\"dog_without_background\");pyautogui.press([\"enter\"]);"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"type": "sleep",
|
|
"parameters": {
|
|
"seconds": 2
|
|
}
|
|
},
|
|
{
|
|
"type": "execute",
|
|
"parameters": {
|
|
"command": [
|
|
"python3",
|
|
"-c",
|
|
"import pyautogui; pyautogui.press([\"enter\"]);"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"type": "sleep",
|
|
"parameters": {
|
|
"seconds": 5
|
|
}
|
|
}
|
|
],
|
|
"func": "check_structure_sim",
|
|
"expected": {
|
|
"type": "vm_file",
|
|
"path": "/home/user/Desktop/dog_cutout_gold.png",
|
|
"dest": "dog_cutout_gold.png"
|
|
},
|
|
"result": {
|
|
"type": "vm_file",
|
|
"path": "/home/user/Desktop/dog_without_background.png",
|
|
"dest": "dog_without_background.png"
|
|
}
|
|
}
|
|
} |