HongchengGao's picture
Align task taxonomy and IDs with the updated paper; main evaluation 306
3de3b50 verified
Raw History Blame Contribute Delete
5.27 kB
{
"id": "single-software-execution--cli--blender--task-42--ubuntu",
"snapshot": "Blender-4.2.3",
"instruction": "Broken Scene Repair `/home/user/Desktop/scene.blend` is the initial Blender scene. Launch Blender by running `blender` from a terminal. For this task, use `/opt/blender/blender` for Blender command-line or background runs when working on `scene.blend`.\n\nIt suffers from five concrete, common issues. Fix ALL of them and save the repaired result as `/home/user/Desktop/answer.blend`. A diagnostic script `_internal/inspect.py` is provided. You can run it to get a JSON report of the issues it detects: blender --background --python _internal/inspect.py -- --blend /home/user/Desktop/scene.blend It will emit a line beginning with `INSPECT_REPORT:` followed by JSON of the form `{\"issue_count\": N, \"issues\": [...]}`. After fixing, re-run it against your answer.blend and confirm `issue_count == 0`. ## The 5 issues to fix 1. Hidden mesh. Object `HiddenMesh` (a UV sphere at Z=3) has `show_viewport = False`. Fix: set `HiddenMesh.show_viewport = True`. 2. Broken image path. Material `Mat_Broken` on `TexturedPlane` has an Image Texture node whose image datablock has `filepath = \"//missing.png\"`, which does not resolve to any file on disk. A valid replacement PNG is provided at `/home/user/Desktop/textures/good_texture.png`. Fix: copy it to `/home/user/Desktop/good_texture.png` and repoint the broken image's `filepath` to `//good_texture.png` (copy the PNG next to `/home/user/Desktop/answer.blend` so `//` resolves), call `image.reload()`, and then `image.pack()` so the pixels survive save-close-reopen. 3. Offset transform. Object `MainMesh` (a cube) has its vertices authored at the origin but its OBJECT `location` is `(3, 0, 0)`, giving it an offset transform. Fix: reset `MainMesh.location = (0.0, 0.0, 0.0)`. 4. Material with nodes disabled. Material `Mat_NoNodes` on `PrincipledBall` has `use_nodes = False` (it uses the legacy viewport diffuse color). Fix: set `Mat_NoNodes.use_nodes = True` and build a minimal shader graph: a Principled BSDF node wired into a Material Output node (you can clear any leftover nodes and create a fresh pair). 5. Extra empty collection. Collection `Extra_Collection` exists under the scene root but is empty and redundant. Fix: unlink it from the scene root and remove the datablock with `bpy.data.collections.remove(...)`. (If Blender refuses to remove a linked collection, first call `bpy.context.scene.collection.children.unlink(coll)`.) ## Do not - Do not rename any of the existing objects (`HiddenMesh`, `MainMesh`, `TexturedPlane`, `PrincipledBall`), materials (`Mat_Broken`, `Mat_NoNodes`), the camera, or the light. - Do not delete the camera or the light. - Do not change the mesh topology of any object. - Do not introduce new broken image paths. ## Requirements 1. `/home/user/Desktop/answer.blend` exists and opens as a valid Blender file. 2. `HiddenMesh.show_viewport == True`. 3. Every non-builtin image datablock resolves to a file on disk OR is packed into the blend (no missing images). 4. `MainMesh.location` is approximately `(0, 0, 0)` (within 0.01 on each axis). 5. `Mat_NoNodes.use_nodes == True` and the material's node tree contains a Principled BSDF node. 6. `bpy.data.collections` does NOT contain any collection named `Extra_Collection`. 7. All four meshes (`HiddenMesh`, `MainMesh`, `TexturedPlane`, `PrincipledBall`) are still present as mesh objects. 8. The scene still has an active camera and at least one light object.",
"source": "https://docs.blender.org/manual/en/4.1/; https://docs.blender.org/api/4.1/; https://developer.blender.org/docs/release_notes/4.1/; https://www.loc.gov/preservation/digital/formats/fdd/fdd000507.shtml",
"config": [
{
"type": "upload_file",
"parameters": {
"files": [
{
"local_path": "task-42/init_file/scene.blend",
"path": "/home/user/Desktop/scene.blend"
}
]
}
},
{
"type": "upload_file",
"parameters": {
"files": [
{
"local_path": "task-42/init_file/textures/good_texture.png",
"path": "/home/user/Desktop/textures/good_texture.png"
}
]
}
},
{
"type": "upload_file",
"parameters": {
"files": [
{
"local_path": "task-42/_internal/inspect.py",
"path": "/home/user/Desktop/_internal/inspect.py"
}
]
}
}
],
"trajectory": "trajectories/",
"related_apps": [
"blender"
],
"artifact_paths": [
"/home/user/Desktop/answer.blend"
],
"evaluator": {
"postconfig": [
{
"type": "upload_file",
"parameters": {
"files": [
{
"local_path": "task-42/eval.py",
"path": "/home/user/Desktop/eval.py"
}
]
}
}
],
"func": "exact_match",
"result": {
"type": "vm_command_line",
"command": "python3 /home/user/Desktop/eval.py",
"shell": "true"
},
"expected": {
"type": "rule",
"rules": {
"expected": "True\n"
}
}
},
"proxy": false,
"fixed_ip": false,
"possibility_of_env_change": "low"
}