Download task/single-software-execution/cli/blender/task-16/task-16.json from HongchengGao/EngiWorld-Tasks: direct link, hf CLI and curl.
- Browser
- Download file 4.59 kB
-
https://huggingface.co/datasets/HongchengGao/EngiWorld-Tasks/resolve/main/task/single-software-execution/cli/blender/task-16/task-16.json
- Command line
-
hf download hf://datasets/HongchengGao/EngiWorld-Tasks/task/single-software-execution/cli/blender/task-16/task-16.json
-
curl -L -o task-16.json https://huggingface.co/datasets/HongchengGao/EngiWorld-Tasks/resolve/main/task/single-software-execution/cli/blender/task-16/task-16.json
4.59 kB
| { | |
| "id": "single-software-execution--cli--blender--task-16--ubuntu", | |
| "snapshot": "Blender-4.2.3", | |
| "instruction": "Normal Bake High → Low `/home/user/Desktop/hi_low.blend` contains two mesh objects: • `HighPoly` — a subdivided, noise-displaced cube with clear surface detail. • `LowPoly` — a slightly larger cage cube that encloses HighPoly. Launch Blender by running `blender` from a terminal. At the start of the task, use `/opt/blender/blender` for Blender command-line or background runs when working on `hi_low.blend`.\n\nIt is UV-unwrapped with a Smart UV projection and carries a material `LowPolyMat` whose Image Texture node references a blank 1024×1024 image datablock called `BakeNormal`. That Image Texture node is already selected and set as the material's active node so bake operations target it. The render engine is Cycles (CPU). Your task is to bake a tangent-space normal map from `HighPoly` onto `LowPoly` using Cycles “selected-to-active” baking, save the baked image to `/home/user/Desktop/normal_bake.png`, and save the completed scene to `/home/user/Desktop/answer.blend`. ## Required steps 1. Deselect everything, then select `HighPoly`, then select `LowPoly` and make `LowPoly` the ACTIVE object (Ctrl-click semantics: `lowpoly.select_set(True); bpy.context.view_layer.objects.active = lowpoly`). 2. Ensure the Image Texture node referencing `BakeNormal` on `LowPolyMat` is the active node. 3. Configure bake settings: - `scene.render.engine = 'CYCLES'`, `scene.cycles.device = 'CPU'` - `scene.render.bake.use_selected_to_active = True` - `scene.render.bake.cage_extrusion = 0.08` - `scene.render.bake.normal_space = 'TANGENT'` 4. Run the bake with `bpy.ops.object.bake(type='NORMAL', use_selected_to_active=True, cage_extrusion=0.08, normal_space='TANGENT')`. 5. Save the `BakeNormal` image to `/home/user/Desktop/normal_bake.png` (`image.filepath_raw = <abs_path>; image.file_format = 'PNG'; image.save()`) and save the scene to `/home/user/Desktop/answer.blend`. ## Requirements 1. Output PNG exists at `/home/user/Desktop/normal_bake.png`. 2. `/home/user/Desktop/answer.blend` exists and preserves `HighPoly`, `LowPoly`, `LowPolyMat`, the active `BakeNormal` image node, and the specified Cycles selected-to-active bake settings. 3. The image is exactly 1024×1024. 4. Mean of the B channel ≥ 0.80 (tangent-space normals point mostly outward, B ≈ 1). 5. Mean of the R channel is in [0.40, 0.60] (centered around 0.5). 6. Standard deviation of the R channel ≥ 0.03 (HighPoly detail was captured). 7. Mean of the G channel is in [0.40, 0.60]. 8. Standard deviation of the G channel ≥ 0.03. 9. At least 95% of pixels have B > 100/255. Bake in background mode requires: the LowPoly object to be the active, selected object with HighPoly also selected; HighPoly must fit inside LowPoly plus the cage extrusion; `LowPoly` must have a UV layer; and the Image Texture node referencing `BakeNormal` must be the active node on the material's node tree.", | |
| "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; https://www.loc.gov/preservation/digital/formats/fdd/fdd000505.shtml", | |
| "config": [ | |
| { | |
| "type": "upload_file", | |
| "parameters": { | |
| "files": [ | |
| { | |
| "local_path": "task-16/init_file/hi_low.blend", | |
| "path": "/home/user/Desktop/hi_low.blend" | |
| } | |
| ] | |
| } | |
| }, | |
| { | |
| "type": "upload_file", | |
| "parameters": { | |
| "files": [ | |
| { | |
| "local_path": "task-16/init_file/stub_black.png", | |
| "path": "/home/user/Desktop/stub_black.png" | |
| } | |
| ] | |
| } | |
| } | |
| ], | |
| "trajectory": "trajectories/", | |
| "related_apps": [ | |
| "blender" | |
| ], | |
| "artifact_paths": [ | |
| "/home/user/Desktop/answer.blend", | |
| "/home/user/Desktop/normal_bake.png" | |
| ], | |
| "evaluator": { | |
| "postconfig": [ | |
| { | |
| "type": "upload_file", | |
| "parameters": { | |
| "files": [ | |
| { | |
| "local_path": "task-16/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" | |
| } | |