File size: 3,034 Bytes
5154c4e
3de3b50
5154c4e
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
{
  "id": "single-software-execution--cli--blender--task-33--ubuntu",
  "snapshot": "Blender-4.2.3",
  "instruction": "OBJ scale-and-axis cleanup `/home/user/Desktop/scan.obj` is a scanned mesh that came out of a pipeline with three mismatches: it is Y-up instead of Blender's Z-up convention, its coordinates are still in millimetres, and it is not centred at the origin. Launch Blender by running `blender` from a terminal. Use `/opt/blender/blender` for Blender command-line or background runs when working on `scan.obj`.\n\nCorrect those conventions, then write BOTH of these files: - `/home/user/Desktop/output/clean.obj` - the transformed mesh, in Blender's Z-up metric space and centred at the origin. - `/home/user/Desktop/output/report.json` - a JSON record of the transform that was applied. The OBJ should contain the literal post-transform vertex coordinates (the numbers written in `v x y z` lines are the final coordinates). ## `output/report.json` schema ``` { \"scale\": <float>, \"rotation_euler\": [<rx>, <ry>, <rz>], \"translation\": [<tx>, <ty>, <tz>] } ``` ## Requirements 1. `/home/user/Desktop/output/clean.obj` exists and is readable. 2. `output/report.json` exists and is valid JSON. 3. The .obj parses (at least one `v x y z` line with three floats). 4. `report.json` has keys `scale`, `rotation_euler`, `translation`. 5. `report.json.scale` == 0.001 (within 1e-6). 6. `report.json.rotation_euler` is approximately [pi/2, 0, 0] (|rx - pi/2| < 0.01, |ry| < 0.01, |rz| < 0.01). 7. Parsing `v` lines from `clean.obj` shows Z is the vertical axis: the Z-extent of the bbox is >= both the X-extent and the Y-extent. 8. The mesh's maximum axis extent is in [0.1, 3.0] metres (i.e. the mm->m rescaling was applied). 9. The mesh's bbox centre is at the origin: |cx|, |cy|, |cz| all < 0.02 m.",
  "source": "https://docs.blender.org/manual/en/4.1/; https://docs.blender.org/api/4.1/; https://www.loc.gov/preservation/digital/formats/fdd/fdd000507.shtml",
  "config": [
    {
      "type": "upload_file",
      "parameters": {
        "files": [
          {
            "local_path": "task-33/init_file/scan.obj",
            "path": "/home/user/Desktop/scan.obj"
          }
        ]
      }
    }
  ],
  "trajectory": "trajectories/",
  "related_apps": [
    "blender"
  ],
  "artifact_paths": [
    "/home/user/Desktop/output/clean.obj",
    "/home/user/Desktop/output/report.json"
  ],
  "evaluator": {
    "postconfig": [
      {
        "type": "upload_file",
        "parameters": {
          "files": [
            {
              "local_path": "task-33/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"
}