← All tasks
PLAN 08Visual Perception3D Spatial Reasoning

Infer floor plans from a walk-through video

Time limit
8 hours

Agent is asked to survey the two upper floors of a three-storey townhouse from a walk-through video and seven photos, and draw the plan of each as an architectural sheet.

Agent Input

What the agent is given: the instruction and its input files.

instruction.md

You are the architect preparing the as-built drawing of a three-story townhouse. Survey its two upper floors from a walk-through video and a few photos, and draw the plan of each as a professional architectural sheet: /app/floorplan_2F.dxf for the second floor and /app/floorplan_3F.dxf for the third floor. Each of the two sheets follows everything below on its own.

Only the second and third floors are wanted. The first (ground) floor and its garage are not drawn: the video passes through that floor at its start, but none of its rooms, doors, windows or plumbing fixtures belongs on either sheet, and no sheet is made for it.

Inputs

  • /app/video/walkthrough.mp4: one continuous walk-through of the home, filmed on a hand-held phone when the home was empty. The camera's path, its field of view and which floor each part shows are for you to work out.
  • /app/photos/01.jpg to 07.jpg: 7 still photos taken later, with the home lived in, of three small rooms on the second and third floors that the video never enters: a powder room and two closets. They are in random order and carry no metadata; where each was taken is for you to work out.
  • /app/home_info.json: the surveyed net floor area of each of the two floors to draw.
    • Second floor (2F): net (usable) floor area 822 sq ft (76.38 m2), the sum of the floor areas of all its rooms, its deck and its stairwell included, each measured between interior wall faces.
    • Third floor (3F): net (usable) floor area 764 sq ft (70.94 m2), the sum of the floor areas of all its rooms, its stairwell included, each measured between interior wall faces.
  • /app/standard/sample_floorplan.dxf and .png: a finished sheet of a different home, as an example of the kind of drawing wanted. It tells you nothing about the home in the video.

Neither the video nor the photos give a scale; the floor areas do. Not every room is walked into: a small room may be seen only through its doorway, or only in the photos.

The video shows the home empty but fitted out, and the photos show it lived in. Draw the floor plan of the building itself, as it stood before any of that was installed: its walls, doors, windows and openings. You have to infer that plan from what the fit-out leaves visible.

Leave out everything that was added to the building, whether movable or fixed, and do not let it move a wall, a room boundary or a room size:

  • loose contents: furniture, appliances, rugs, curtains and blinds;
  • built-in joinery: wardrobes, cabinets, shelving, display units and counters, including any that stand inside a doorway or opening;
  • decorative linings and features: wall panelling, padded, stone-clad or mirrored feature walls, and niches built out in front of a wall.

Draw each wall at the face of the wall itself, behind whatever lines it or stands against it. Draw each window at its full glazed length, including any part that blinds or cabinets cover. Where a wall, floor or window is hidden, work out where it must be from what the video and the photos do show: the other side of the wall, its thickness where it is exposed, and how the ceiling, the floor and the neighboring rooms line up.

Three things are part of the building and are drawn:

  • A fixed, full-height metal or timber screen that closes off a space is a wall.
  • A sliding or framed glass door is a door across its whole frame, from the wall end on one side to the wall end on the other. Measure the frame, fixed panels included, not the clear gap beside a parked leaf, and do not count a leaf where it parks in front of a wall.
  • Plumbing fixtures are drawn as set out under P-FIXT below.

How many rooms each of the two floors has and what they are is for you to work out.

The drawing

Draw each plan as a US residential floor plan, following common US practice (National CAD Standard / AIA layer names, imperial units, feet-and-inches dimensions) in the manner of the sample sheet. Someone holding only your DXF must be able to take off, by measuring the drawing and reading its text:

  • every wall, with its length and position;
  • every door, cased opening and window, with its position and width;
  • every room, with its boundary, name, clear dimensions and floor area;
  • every plumbing fixture, with its type and position;
  • the overall size of the floor, and its gross and net floor areas.

Use your professional judgment for what is a room. As a guide: spaces that flow into each other with no wall or door between them (an open living, dining and kitchen area) are one room; corridors, balconies, decks, terraces and walk-in closets are rooms; wardrobes and built-in cabinets are part of the room they open into. Three points are settled for this home:

  • A stair is not a room of its own. It belongs to the room it opens into, and that room's boundary runs around the whole stairwell, along the walls that enclose it. A stair railing, and a half-height guard wall beside a stairwell, are not walls.
  • Every closet that is closed by its own door is a room, however small. Give it a name that contains CLOSET.
  • The toilet compartment of the larger third-floor bathroom is a room of its own: label it BATH W.C.. A glass shower enclosure is not a room.

So the sheets can be measured, keep to these layers. Model space is full size in inches ($INSUNITS = 1), as seen from above and not mirrored, with the walls parallel to the sheet edges. Orientation: draw both plans so that, as seen on the sheet, the stair is on the right side of the home; on the second floor the kitchen is at the top and the deck runs along the bottom; on the third floor the largest bedroom runs along the bottom.

LayerContent
A-WALLWall bodies as closed LWPOLYLINEs at a typical residential thickness, cut through at every door, opening and window. A railing, balustrade, low parapet or half-height guard wall is not a wall body.
A-DOORDoor symbols in the wall cuts. A cased opening has none.
A-GLAZWindow glazing lines in the wall cuts, running the length of the window. Glass doors are doors.
A-AREAOne closed LWPOLYLINE per room along the interior faces of its walls. Where two rooms meet at an opening, the boundary runs across it in line with the wall faces. A free-standing column, pier or wall stays inside the boundary, drawn as a wall body.
A-AREA-BNDYA line along each open stretch of a balcony, deck or terrace side, on the room boundary there. A stretch is open when only a railing, balustrade or low parapet closes it, with open air above: it is not a wall and gets no wall body. This includes an opening in a deck wall that has no glass in it: wall body on either side, the line across the opening. A stretch closed up to the ceiling by wall or glass is a wall or a window as usual.
A-AREA-IDENInside each room boundary: the room name (BEDROOM 2, KITCHEN, HALL...), its clear size (10'-5 1/2" x 8'-0 1/2": the overall width and depth of the room boundary, also when the room is not a rectangle) and its area (84 SQ FT).
A-ANNO-DIMSDIMENSION entities, at least 8, each showing the distance it measures: the overall width and the overall depth of the floor, and strings that locate the walls and the openings in the exterior walls.
A-ANNO-TEXTThe title, which includes the words FLOOR PLAN; the scale; and the GROSS and NET floor areas in SQ FT.
A-FLOR-STRSThe stairs: treads, the direction of travel, railings and guard walls, as linework.
P-FIXTOne block reference (INSERT) per plumbing fixture, drawn in plan at the fixture's real size and place. The block's name begins with the fixture's type: TOILET, LAVATORY, SINK, BATHTUB, SHOWER or WASHER. Nothing else goes on this layer.

Draw every plumbing fixture the video and the photos show on these two floors, one block reference each. A fixture's position is the center of its block reference as it lies on the sheet.

  • TOILET: a toilet.
  • LAVATORY: a wash basin in a bathroom, or one that serves a bathroom from just outside it. One per bowl: a double vanity has two.
  • SINK: a kitchen, bar, laundry or utility sink. One per sink, however many bowls it has.
  • BATHTUB: a bathtub. A bathtub with a shower over it is one BATHTUB, not also a SHOWER.
  • SHOWER: a shower, placed at the center of its enclosure or, where it has none, of the floor area it wets.
  • WASHER: a washing machine or dryer standing on the floor. A machine stacked on another is not drawn separately.

Vanity counters, cabinets, kitchen appliances, water heaters and floor drains are not plumbing fixtures here. The sample sheet shows no plumbing fixtures; draw yours as described here.

Work only from the files provided: do not look for this home, its listing or its floorplan online.

You have 28800 seconds to complete this task.

Grading & Reference Solution

How the submission is scored, and a human expert-authored reference solution.

rubric

Gates

G1Sheet opens
Pass / fail

Each sheet present, readable, with rooms; a failing sheet scores 0 alone.

  • Sheet present×2 · Both /app/floorplan_2F.dxf and /app/floorplan_3F.dxf exist.
  • DXF reads×2 · ezdxf opens it; $INSUNITS in inches, feet, mm, cm or m; curves can be flattened.
  • Room boundaries×2 · ≥ 1 closed LWPOLYLINE on A-AREA; none self-intersecting or zero-area.

Scored Categories

C1Rooms
25%

Key rooms paired by most overlap; each unmatched drawn room counts as a failed room.

  • Room area×13 · Drawn room area vs. key (sub-rooms the key joins by open passage combined). (4 on 2F, 9 on 3F; 2F deck R05 excused)
  • Room shape×13 · Intersection over union with the key room, after aligning the sheet to the key. (4 on 2F, 9 on 3F; 2F deck R05 excused)
  • Room name×14 · A-AREA-IDEN name the key accepts; bedroom/office, living/dining, hall/foyer, storage/laundry, balcony/garden swap. (5 on 2F, 9 on 3F)
C2Walls
25%

Key wall faces ≥ 0.60 m vs. nearest same-facing drawn face; extra walls ≥ 0.65 m fail.

  • Wall offset×71 · Across-wall distance, drawn face midpoint to key wall line. (29 on 2F, 42 on 3F)
  • Wall shift×71 · Along-wall distance between drawn and key wall midpoints. (29 on 2F, 42 on 3F)
  • Wall length×71 · Drawn wall length vs. key. (29 on 2F, 42 on 3F)
C3Doors
15%

Key doorways, inside (D01 ...) and outside (E01 ...), not shower or W.C.; extra doors fail.

  • Door position×11 · Distance between drawn and key doorway midpoints. (4 on 2F, 7 on 3F)
  • Door width×11 · Drawn doorway width vs. key. (4 on 2F, 7 on 3F)
C4Windows
15%

Key outside or balcony windows vs. A-GLAZ lines on their line; extra windows fail.

  • Window length×13 · Total drawn glazing on the window line (panes joined) vs. key glazed length. (6 on 2F, 7 on 3F)
  • Window span×13 · Share of the key window covered by drawn glazing. (6 on 2F, 7 on 3F)
C5Plumbing fixtures
5%

Key fixtures paired one to one with P-FIXT blocks; extra fixtures fail.

  • Fixture found×12 · A drawn block within the fixture's location limit. (5 on 2F, 7 on 3F)
  • Fixture location×12 · Distance between drawn and key fixture centres. (5 on 2F, 7 on 3F)
  • Fixture type×12 · Block name starts with a type the key accepts (sink as lavatory where allowed). (5 on 2F, 7 on 3F)
C6Topology
10%

Room graph of doorways and shared walls, per sheet.

  • Doorway connections×2 · Jaccard overlap of door-joined room pairs, drawn vs. key.
  • Connectivity graph×2 · Correlation of per-room doorway counts with the key.
  • Door density×2 · Door-joined pairs per possible room pair, as a ratio of the key's.
  • Shared-wall adjacency×2 · Jaccard overlap of room pairs sharing ≥ 1 m of wall (pairs near 1 m not graded).
C7Sheet quality
5%

Dimensions, room labels, area block and drafting, per sheet.

  • Dimensions×2 · ≥ 8 on A-ANNO-DIMS, text within 1/2 inch; overall width and depth (±6 inches); ≥ 70 % of outside windows located.
  • Room labels×2 · Size label within 1 inch of width and depth; area label within 2 % or 1 sq ft.
  • Floor area block×2 · GROSS and NET SQ FT on A-ANNO-TEXT; NET vs. drawn rooms, GROSS vs. drawn building.
  • Drafting×2 · FLOOR PLAN title and scale on A-ANNO-TEXT; walls on A-WALL, ≤ 2 % of room area; ≥ 50 % of room edge backed.
solution/floorplan_2F.dxf and floorplan_3F.dxf

Sample Model Trials

Claude Fable 5.20.30
RoomsWallsDoorsWindowsTopologyPlumbing fixturesSheet quality
Claude Fable 5.2's second floor on the true design, with its failed checks in red
  • Walls: 10 of 29 walls misplaced or the wrong length, up to 0.50 m out of line
  • Doors: Door living room / balcony: 0.11 m from its true place
  • + 4 more failed checks
GPT-6.2 Astra0.325
RoomsWallsDoorsWindowsTopologyPlumbing fixturesSheet quality
GPT-6.2 Astra's second floor on the true design, with its failed checks in red
  • Rooms: Laundry room: area -10% (3.9 m² vs 4.3 m²)
  • Walls: 6 of 29 walls misplaced or the wrong length, up to 0.56 m out of line
  • + 3 more failed checks
Gemini 4 Neon0.175
RoomsWallsDoorsWindowsTopologyPlumbing fixturesSheet quality
Gemini 4 Neon's second floor on the true design, with its failed checks in red
  • Rooms: Laundry room: area -14% (3.7 m² vs 4.3 m²); overlaps the true room by 75% (needs 85%)
  • Rooms: Bathroom: area -21% (2.0 m² vs 2.6 m²); overlaps the true room by 79% (needs 85%)
  • + 8 more failed checks

Reference Agent Output Failed Checks