Compile Scene Graphs with Reinforcement Learning
Paper • 2504.13617 • Published
image_id stringlengths 1 7 | image imagewidth (px) 173 1.28k | prompt_open stringclasses 867
values | prompt_close stringclasses 867
values | objects stringlengths 90 2.59k | relationships stringlengths 60 10.2k |
|---|---|---|---|---|---|
1 | Generate a structured scene graph for an image of size (800 x 600) using the following format:
<answer>
{
"objects": [
{"id": "object_name.number", "bbox": [x1, y1, x2, y2]},
...
],
"relationships": [
{"subject": "object_name.number", "predicate": "relationship_type", "object": "object_name.number"},... | Generate a structured scene graph for an image of size (800 x 600) using the specified object and relationship categories.
### **Output Format:**
<answer>
{
"objects": [
{"id": "object_name.number", "bbox": [x1, y1, x2, y2]},
...
],
"relationships": [
{"subject": "object_name.number", "predicate": "r... | [{"id": "tree.1", "bbox": [0, 0, 799, 557]}, {"id": "sidewalk.2", "bbox": [75, 306, 798, 596]}, {"id": "building.3", "bbox": [0, 0, 222, 538]}, {"id": "street.4", "bbox": [437, 280, 796, 539]}, {"id": "clock.5", "bbox": [419, 60, 496, 424]}, {"id": "window.6", "bbox": [600, 0, 799, 147]}, {"id": "man.7", "bbox": [369, ... | [{"subject": "man.8", "predicate": "wears", "object": "sneaker.22"}, {"subject": "sign.9", "predicate": "on", "object": "building.3"}, {"subject": "man.8", "predicate": "has", "object": "shirt.14"}, {"subject": "sidewalk.2", "predicate": "near", "object": "street.4"}, {"subject": "man.8", "predicate": "has", "object": ... | |
2 | Generate a structured scene graph for an image of size (800 x 600) using the following format:
<answer>
{
"objects": [
{"id": "object_name.number", "bbox": [x1, y1, x2, y2]},
...
],
"relationships": [
{"subject": "object_name.number", "predicate": "relationship_type", "object": "object_name.number"},... | Generate a structured scene graph for an image of size (800 x 600) using the specified object and relationship categories.
### **Output Format:**
<answer>
{
"objects": [
{"id": "object_name.number", "bbox": [x1, y1, x2, y2]},
...
],
"relationships": [
{"subject": "object_name.number", "predicate": "r... | [{"id": "sidewalk.1", "bbox": [318, 345, 796, 598]}, {"id": "building.2", "bbox": [567, 0, 796, 414]}, {"id": "building.3", "bbox": [168, 0, 427, 319]}, {"id": "man.4", "bbox": [319, 322, 461, 568]}, {"id": "pole.5", "bbox": [421, 0, 470, 533]}, {"id": "window.6", "bbox": [646, 66, 741, 232]}, {"id": "car.7", "bbox": [... | [{"subject": "building.2", "predicate": "has", "object": "window.6"}, {"subject": "building.2", "predicate": "has", "object": "window.12"}, {"subject": "building.2", "predicate": "has", "object": "window.11"}, {"subject": "building.2", "predicate": "has", "object": "window.14"}, {"subject": "building.2", "predicate": "... | |
3 | Generate a structured scene graph for an image of size (640 x 480) using the following format:
<answer>
{
"objects": [
{"id": "object_name.number", "bbox": [x1, y1, x2, y2]},
...
],
"relationships": [
{"subject": "object_name.number", "predicate": "relationship_type", "object": "object_name.number"},... | Generate a structured scene graph for an image of size (640 x 480) using the specified object and relationship categories.
### **Output Format:**
<answer>
{
"objects": [
{"id": "object_name.number", "bbox": [x1, y1, x2, y2]},
...
],
"relationships": [
{"subject": "object_name.number", "predicate": "r... | [{"id": "table.1", "bbox": [128, 230, 636, 474]}, {"id": "girl.2", "bbox": [523, 93, 636, 231]}, {"id": "bag.3", "bbox": [572, 272, 638, 402]}, {"id": "hair.4", "bbox": [582, 96, 638, 205]}, {"id": "drawer.5", "bbox": [1, 421, 131, 465]}, {"id": "handle.6", "bbox": [16, 355, 90, 388]}, {"id": "desk.7", "bbox": [530, 15... | [{"subject": "girl.2", "predicate": "has", "object": "hair.4"}, {"subject": "bag.3", "predicate": "on", "object": "table.1"}, {"subject": "girl.2", "predicate": "has", "object": "hair.4"}, {"subject": "girl.2", "predicate": "with", "object": "hair.4"}, {"subject": "girl.2", "predicate": "with", "object": "hair.4"}, {"s... | |
4 | Generate a structured scene graph for an image of size (640 x 480) using the following format:
<answer>
{
"objects": [
{"id": "object_name.number", "bbox": [x1, y1, x2, y2]},
...
],
"relationships": [
{"subject": "object_name.number", "predicate": "relationship_type", "object": "object_name.number"},... | Generate a structured scene graph for an image of size (640 x 480) using the specified object and relationship categories.
### **Output Format:**
<answer>
{
"objects": [
{"id": "object_name.number", "bbox": [x1, y1, x2, y2]},
...
],
"relationships": [
{"subject": "object_name.number", "predicate": "r... | [{"id": "curtain.1", "bbox": [363, 0, 640, 300]}, {"id": "window.2", "bbox": [483, 0, 637, 305]}, {"id": "table.3", "bbox": [411, 239, 639, 432]}, {"id": "door.4", "bbox": [365, 0, 485, 334]}, {"id": "chair.5", "bbox": [387, 210, 480, 383]}, {"id": "pillow.6", "bbox": [181, 221, 289, 305]}, {"id": "desk.7", "bbox": [0,... | [{"subject": "chair.5", "predicate": "near", "object": "table.3"}] | |
5 | Generate a structured scene graph for an image of size (800 x 600) using the following format:
<answer>
{
"objects": [
{"id": "object_name.number", "bbox": [x1, y1, x2, y2]},
...
],
"relationships": [
{"subject": "object_name.number", "predicate": "relationship_type", "object": "object_name.number"},... | Generate a structured scene graph for an image of size (800 x 600) using the specified object and relationship categories.
### **Output Format:**
<answer>
{
"objects": [
{"id": "object_name.number", "bbox": [x1, y1, x2, y2]},
...
],
"relationships": [
{"subject": "object_name.number", "predicate": "r... | [{"id": "room.1", "bbox": [0, 0, 799, 599]}, {"id": "shelf.2", "bbox": [432, 132, 798, 226]}, {"id": "book.3", "bbox": [432, 157, 453, 221]}, {"id": "chair.4", "bbox": [142, 357, 316, 596]}, {"id": "chair.5", "bbox": [375, 350, 541, 599]}, {"id": "window.6", "bbox": [35, 42, 131, 427]}, {"id": "desk.7", "bbox": [125, 3... | [{"subject": "book.3", "predicate": "on", "object": "shelf.2"}, {"subject": "book.3", "predicate": "on", "object": "shelf.2"}, {"subject": "chair.4", "predicate": "near", "object": "desk.7"}, {"subject": "book.3", "predicate": "on", "object": "shelf.2"}] | |
6 | Generate a structured scene graph for an image of size (800 x 600) using the following format:
<answer>
{
"objects": [
{"id": "object_name.number", "bbox": [x1, y1, x2, y2]},
...
],
"relationships": [
{"subject": "object_name.number", "predicate": "relationship_type", "object": "object_name.number"},... | Generate a structured scene graph for an image of size (800 x 600) using the specified object and relationship categories.
### **Output Format:**
<answer>
{
"objects": [
{"id": "object_name.number", "bbox": [x1, y1, x2, y2]},
...
],
"relationships": [
{"subject": "object_name.number", "predicate": "r... | [{"id": "counter.1", "bbox": [0, 8, 799, 532]}, {"id": "chair.2", "bbox": [0, 0, 300, 521]}, {"id": "bottle.3", "bbox": [474, 75, 596, 382]}, {"id": "plate.4", "bbox": [35, 100, 274, 213]}, {"id": "bowl.5", "bbox": [392, 0, 605, 127]}, {"id": "bag.6", "bbox": [626, 99, 771, 257]}, {"id": "bag.7", "bbox": [347, 46, 481,... | [{"subject": "fork.14", "predicate": "on", "object": "plate.4"}, {"subject": "chair.2", "predicate": "near", "object": "counter.1"}, {"subject": "chair.2", "predicate": "against", "object": "counter.1"}, {"subject": "bag.6", "predicate": "on", "object": "counter.1"}, {"subject": "bowl.5", "predicate": "on", "object": "... | |
7 | Generate a structured scene graph for an image of size (800 x 600) using the following format:
<answer>
{
"objects": [
{"id": "object_name.number", "bbox": [x1, y1, x2, y2]},
...
],
"relationships": [
{"subject": "object_name.number", "predicate": "relationship_type", "object": "object_name.number"},... | Generate a structured scene graph for an image of size (800 x 600) using the specified object and relationship categories.
### **Output Format:**
<answer>
{
"objects": [
{"id": "object_name.number", "bbox": [x1, y1, x2, y2]},
...
],
"relationships": [
{"subject": "object_name.number", "predicate": "r... | [{"id": "window.1", "bbox": [486, 0, 796, 391]}, {"id": "woman.2", "bbox": [0, 311, 310, 596]}, {"id": "desk.3", "bbox": [71, 356, 667, 512]}, {"id": "book.4", "bbox": [425, 417, 616, 514]}, {"id": "desk.5", "bbox": [578, 453, 797, 597]}, {"id": "laptop.6", "bbox": [588, 478, 764, 561]}, {"id": "chair.7", "bbox": [0, 5... | [{"subject": "book.11", "predicate": "on", "object": "desk.5"}, {"subject": "lady.13", "predicate": "with", "object": "hair.12"}, {"subject": "woman.2", "predicate": "wearing", "object": "pant.10"}, {"subject": "laptop.6", "predicate": "above", "object": "desk.5"}, {"subject": "woman.2", "predicate": "sitting on", "obj... | |
8 | Generate a structured scene graph for an image of size (800 x 600) using the following format:
<answer>
{
"objects": [
{"id": "object_name.number", "bbox": [x1, y1, x2, y2]},
...
],
"relationships": [
{"subject": "object_name.number", "predicate": "relationship_type", "object": "object_name.number"},... | Generate a structured scene graph for an image of size (800 x 600) using the specified object and relationship categories.
### **Output Format:**
<answer>
{
"objects": [
{"id": "object_name.number", "bbox": [x1, y1, x2, y2]},
...
],
"relationships": [
{"subject": "object_name.number", "predicate": "r... | [{"id": "desk.1", "bbox": [12, 386, 565, 599]}, {"id": "man.2", "bbox": [111, 286, 377, 599]}, {"id": "shelf.3", "bbox": [0, 0, 222, 238]}, {"id": "shirt.4", "bbox": [111, 373, 335, 598]}, {"id": "desk.5", "bbox": [580, 428, 799, 592]}, {"id": "paper.6", "bbox": [582, 315, 763, 436]}, {"id": "chair.7", "bbox": [14, 478... | [{"subject": "cup.19", "predicate": "on", "object": "desk.1"}, {"subject": "cup.19", "predicate": "on", "object": "desk.1"}, {"subject": "man.2", "predicate": "wears", "object": "shirt.4"}, {"subject": "bag.17", "predicate": "on", "object": "paper.13"}, {"subject": "drawer.8", "predicate": "of", "object": "desk.1"}, {"... | |
9 | Generate a structured scene graph for an image of size (640 x 480) using the following format:
<answer>
{
"objects": [
{"id": "object_name.number", "bbox": [x1, y1, x2, y2]},
...
],
"relationships": [
{"subject": "object_name.number", "predicate": "relationship_type", "object": "object_name.number"},... | Generate a structured scene graph for an image of size (640 x 480) using the specified object and relationship categories.
### **Output Format:**
<answer>
{
"objects": [
{"id": "object_name.number", "bbox": [x1, y1, x2, y2]},
...
],
"relationships": [
{"subject": "object_name.number", "predicate": "r... | [{"id": "room.1", "bbox": [2, 0, 637, 477]}, {"id": "window.2", "bbox": [452, 80, 550, 245]}, {"id": "desk.3", "bbox": [386, 365, 636, 478]}, {"id": "shelf.4", "bbox": [166, 136, 264, 361]}, {"id": "desk.5", "bbox": [259, 258, 437, 351]}, {"id": "desk.6", "bbox": [3, 385, 166, 478]}, {"id": "chair.7", "bbox": [151, 282... | [{"subject": "room.1", "predicate": "has", "object": "light.15"}, {"subject": "bottle.23", "predicate": "on", "object": "desk.10"}, {"subject": "light.15", "predicate": "in", "object": "room.1"}, {"subject": "light.17", "predicate": "in", "object": "room.1"}, {"subject": "bottle.23", "predicate": "on", "object": "desk.... | |
10 | Generate a structured scene graph for an image of size (800 x 600) using the following format:
<answer>
{
"objects": [
{"id": "object_name.number", "bbox": [x1, y1, x2, y2]},
...
],
"relationships": [
{"subject": "object_name.number", "predicate": "relationship_type", "object": "object_name.number"},... | Generate a structured scene graph for an image of size (800 x 600) using the specified object and relationship categories.
### **Output Format:**
<answer>
{
"objects": [
{"id": "object_name.number", "bbox": [x1, y1, x2, y2]},
...
],
"relationships": [
{"subject": "object_name.number", "predicate": "r... | [{"id": "desk.1", "bbox": [0, 380, 471, 596]}, {"id": "paper.2", "bbox": [0, 417, 63, 436]}, {"id": "table.3", "bbox": [0, 396, 202, 596]}, {"id": "chair.4", "bbox": [556, 355, 712, 550]}, {"id": "coat.5", "bbox": [532, 355, 669, 567]}, {"id": "desk.6", "bbox": [697, 365, 799, 414]}, {"id": "man.7", "bbox": [580, 267, ... | [{"subject": "man.7", "predicate": "has", "object": "coat.5"}, {"subject": "coat.5", "predicate": "on", "object": "chair.4"}, {"subject": "paper.13", "predicate": "under", "object": "shelf.14"}, {"subject": "paper.13", "predicate": "on", "object": "shelf.16"}, {"subject": "paper.12", "predicate": "under", "object": "sh... | |
11 | Generate a structured scene graph for an image of size (800 x 600) using the following format:
<answer>
{
"objects": [
{"id": "object_name.number", "bbox": [x1, y1, x2, y2]},
...
],
"relationships": [
{"subject": "object_name.number", "predicate": "relationship_type", "object": "object_name.number"},... | Generate a structured scene graph for an image of size (800 x 600) using the specified object and relationship categories.
### **Output Format:**
<answer>
{
"objects": [
{"id": "object_name.number", "bbox": [x1, y1, x2, y2]},
...
],
"relationships": [
{"subject": "object_name.number", "predicate": "r... | [{"id": "chair.1", "bbox": [248, 171, 539, 598]}, {"id": "desk.2", "bbox": [0, 165, 578, 256]}, {"id": "window.3", "bbox": [490, 0, 796, 181]}, {"id": "leg.4", "bbox": [253, 512, 359, 556]}, {"id": "cabinet.5", "bbox": [405, 250, 546, 444]}, {"id": "table.6", "bbox": [607, 179, 798, 270]}, {"id": "box.7", "bbox": [0, 2... | [{"subject": "chair.1", "predicate": "at", "object": "desk.2"}, {"subject": "box.7", "predicate": "under", "object": "desk.2"}, {"subject": "box.7", "predicate": "under", "object": "desk.2"}, {"subject": "bowl.11", "predicate": "on", "object": "table.6"}, {"subject": "pot.12", "predicate": "has", "object": "flower.15"}... | |
12 | Generate a structured scene graph for an image of size (800 x 600) using the following format:
<answer>
{
"objects": [
{"id": "object_name.number", "bbox": [x1, y1, x2, y2]},
...
],
"relationships": [
{"subject": "object_name.number", "predicate": "relationship_type", "object": "object_name.number"},... | Generate a structured scene graph for an image of size (800 x 600) using the specified object and relationship categories.
### **Output Format:**
<answer>
{
"objects": [
{"id": "object_name.number", "bbox": [x1, y1, x2, y2]},
...
],
"relationships": [
{"subject": "object_name.number", "predicate": "r... | [{"id": "desk.1", "bbox": [0, 321, 799, 520]}, {"id": "cup.2", "bbox": [640, 305, 695, 367]}] | [{"subject": "cup.2", "predicate": "on", "object": "desk.1"}] | |
13 | Generate a structured scene graph for an image of size (800 x 600) using the following format:
<answer>
{
"objects": [
{"id": "object_name.number", "bbox": [x1, y1, x2, y2]},
...
],
"relationships": [
{"subject": "object_name.number", "predicate": "relationship_type", "object": "object_name.number"},... | Generate a structured scene graph for an image of size (800 x 600) using the specified object and relationship categories.
### **Output Format:**
<answer>
{
"objects": [
{"id": "object_name.number", "bbox": [x1, y1, x2, y2]},
...
],
"relationships": [
{"subject": "object_name.number", "predicate": "r... | [{"id": "desk.1", "bbox": [0, 182, 590, 596]}, {"id": "chair.2", "bbox": [604, 266, 796, 597]}, {"id": "book.3", "bbox": [71, 417, 307, 541]}, {"id": "paper.4", "bbox": [0, 508, 251, 596]}, {"id": "cup.5", "bbox": [12, 318, 71, 382]}] | [{"subject": "book.3", "predicate": "on", "object": "desk.1"}, {"subject": "book.3", "predicate": "on", "object": "desk.1"}, {"subject": "book.3", "predicate": "on", "object": "desk.1"}, {"subject": "cup.5", "predicate": "on", "object": "desk.1"}, {"subject": "chair.2", "predicate": "in front of", "object": "desk.1"}] | |
14 | Generate a structured scene graph for an image of size (800 x 600) using the following format:
<answer>
{
"objects": [
{"id": "object_name.number", "bbox": [x1, y1, x2, y2]},
...
],
"relationships": [
{"subject": "object_name.number", "predicate": "relationship_type", "object": "object_name.number"},... | Generate a structured scene graph for an image of size (800 x 600) using the specified object and relationship categories.
### **Output Format:**
<answer>
{
"objects": [
{"id": "object_name.number", "bbox": [x1, y1, x2, y2]},
...
],
"relationships": [
{"subject": "object_name.number", "predicate": "r... | [{"id": "desk.1", "bbox": [0, 329, 799, 596]}, {"id": "people.2", "bbox": [32, 87, 359, 321]}, {"id": "lamp.3", "bbox": [628, 168, 797, 435]}, {"id": "book.4", "bbox": [0, 527, 188, 597]}, {"id": "bottle.5", "bbox": [316, 478, 375, 574]}] | [{"subject": "book.4", "predicate": "on", "object": "desk.1"}, {"subject": "bottle.5", "predicate": "on", "object": "desk.1"}, {"subject": "book.4", "predicate": "on", "object": "desk.1"}, {"subject": "lamp.3", "predicate": "on", "object": "desk.1"}, {"subject": "people.2", "predicate": "on", "object": "desk.1"}] | |
15 | Generate a structured scene graph for an image of size (800 x 600) using the following format:
<answer>
{
"objects": [
{"id": "object_name.number", "bbox": [x1, y1, x2, y2]},
...
],
"relationships": [
{"subject": "object_name.number", "predicate": "relationship_type", "object": "object_name.number"},... | Generate a structured scene graph for an image of size (800 x 600) using the specified object and relationship categories.
### **Output Format:**
<answer>
{
"objects": [
{"id": "object_name.number", "bbox": [x1, y1, x2, y2]},
...
],
"relationships": [
{"subject": "object_name.number", "predicate": "r... | [{"id": "room.1", "bbox": [0, 0, 798, 599]}, {"id": "desk.2", "bbox": [0, 277, 799, 597]}, {"id": "paper.3", "bbox": [574, 279, 795, 449]}, {"id": "box.4", "bbox": [0, 170, 55, 314]}, {"id": "box.5", "bbox": [0, 395, 62, 446]}] | [{"subject": "paper.3", "predicate": "on", "object": "desk.2"}, {"subject": "paper.3", "predicate": "on", "object": "desk.2"}, {"subject": "paper.3", "predicate": "above", "object": "desk.2"}, {"subject": "paper.3", "predicate": "on", "object": "desk.2"}, {"subject": "paper.3", "predicate": "on", "object": "desk.2"}] | |
16 | Generate a structured scene graph for an image of size (800 x 600) using the following format:
<answer>
{
"objects": [
{"id": "object_name.number", "bbox": [x1, y1, x2, y2]},
...
],
"relationships": [
{"subject": "object_name.number", "predicate": "relationship_type", "object": "object_name.number"},... | Generate a structured scene graph for an image of size (800 x 600) using the specified object and relationship categories.
### **Output Format:**
<answer>
{
"objects": [
{"id": "object_name.number", "bbox": [x1, y1, x2, y2]},
...
],
"relationships": [
{"subject": "object_name.number", "predicate": "r... | [{"id": "sidewalk.1", "bbox": [106, 231, 796, 596]}, {"id": "street.2", "bbox": [0, 217, 284, 597]}, {"id": "street.3", "bbox": [0, 491, 799, 597]}, {"id": "guy.4", "bbox": [296, 196, 545, 379]}, {"id": "building.5", "bbox": [60, 0, 212, 152]}, {"id": "car.6", "bbox": [92, 221, 241, 353]}, {"id": "pole.7", "bbox": [199... | [{"subject": "boy.9", "predicate": "with", "object": "pant.18"}, {"subject": "man.8", "predicate": "has", "object": "jean.17"}, {"subject": "man.8", "predicate": "walking on", "object": "street.3"}, {"subject": "boy.11", "predicate": "walking on", "object": "street.3"}, {"subject": "boy.9", "predicate": "walking on", "... | |
17 | Generate a structured scene graph for an image of size (800 x 640) using the following format:
<answer>
{
"objects": [
{"id": "object_name.number", "bbox": [x1, y1, x2, y2]},
...
],
"relationships": [
{"subject": "object_name.number", "predicate": "relationship_type", "object": "object_name.number"},... | Generate a structured scene graph for an image of size (800 x 640) using the specified object and relationship categories.
### **Output Format:**
<answer>
{
"objects": [
{"id": "object_name.number", "bbox": [x1, y1, x2, y2]},
...
],
"relationships": [
{"subject": "object_name.number", "predicate": "r... | [{"id": "tile.1", "bbox": [0, 417, 798, 637]}, {"id": "chair.2", "bbox": [0, 321, 351, 637]}, {"id": "desk.3", "bbox": [130, 319, 510, 444]}, {"id": "chair.4", "bbox": [199, 325, 354, 560]}, {"id": "cabinet.5", "bbox": [628, 275, 728, 542]}, {"id": "wheel.6", "bbox": [203, 484, 350, 564]}, {"id": "cabinet.7", "bbox": [... | [{"subject": "laptop.9", "predicate": "on", "object": "desk.3"}, {"subject": "laptop.9", "predicate": "on", "object": "desk.3"}, {"subject": "cabinet.5", "predicate": "has", "object": "door.8"}, {"subject": "chair.4", "predicate": "has", "object": "wheel.6"}, {"subject": "laptop.9", "predicate": "on", "object": "stand.... | |
18 | Generate a structured scene graph for an image of size (800 x 600) using the following format:
<answer>
{
"objects": [
{"id": "object_name.number", "bbox": [x1, y1, x2, y2]},
...
],
"relationships": [
{"subject": "object_name.number", "predicate": "relationship_type", "object": "object_name.number"},... | Generate a structured scene graph for an image of size (800 x 600) using the specified object and relationship categories.
### **Output Format:**
<answer>
{
"objects": [
{"id": "object_name.number", "bbox": [x1, y1, x2, y2]},
...
],
"relationships": [
{"subject": "object_name.number", "predicate": "r... | [{"id": "window.1", "bbox": [0, 0, 315, 385]}, {"id": "desk.2", "bbox": [0, 329, 570, 596]}, {"id": "shelf.3", "bbox": [447, 103, 646, 384]}, {"id": "man.4", "bbox": [622, 257, 797, 568]}, {"id": "chair.5", "bbox": [592, 386, 797, 596]}, {"id": "shirt.6", "bbox": [622, 344, 799, 542]}, {"id": "bag.7", "bbox": [0, 352, ... | [{"subject": "man.4", "predicate": "has", "object": "hair.8"}, {"subject": "bag.7", "predicate": "on", "object": "table.11"}, {"subject": "helmet.10", "predicate": "on", "object": "shelf.3"}] | |
19 | Generate a structured scene graph for an image of size (800 x 600) using the following format:
<answer>
{
"objects": [
{"id": "object_name.number", "bbox": [x1, y1, x2, y2]},
...
],
"relationships": [
{"subject": "object_name.number", "predicate": "relationship_type", "object": "object_name.number"},... | Generate a structured scene graph for an image of size (800 x 600) using the specified object and relationship categories.
### **Output Format:**
<answer>
{
"objects": [
{"id": "object_name.number", "bbox": [x1, y1, x2, y2]},
...
],
"relationships": [
{"subject": "object_name.number", "predicate": "r... | [{"id": "desk.1", "bbox": [0, 360, 798, 521]}, {"id": "desk.2", "bbox": [400, 396, 798, 517]}, {"id": "roof.3", "bbox": [0, 0, 799, 51]}, {"id": "chair.4", "bbox": [31, 515, 287, 596]}, {"id": "wire.5", "bbox": [247, 236, 657, 260]}] | [{"subject": "chair.4", "predicate": "in front of", "object": "desk.1"}] | |
20 | Generate a structured scene graph for an image of size (800 x 600) using the following format:
<answer>
{
"objects": [
{"id": "object_name.number", "bbox": [x1, y1, x2, y2]},
...
],
"relationships": [
{"subject": "object_name.number", "predicate": "relationship_type", "object": "object_name.number"},... | Generate a structured scene graph for an image of size (800 x 600) using the specified object and relationship categories.
### **Output Format:**
<answer>
{
"objects": [
{"id": "object_name.number", "bbox": [x1, y1, x2, y2]},
...
],
"relationships": [
{"subject": "object_name.number", "predicate": "r... | [{"id": "man.1", "bbox": [89, 229, 283, 500]}, {"id": "chair.2", "bbox": [60, 382, 319, 596]}, {"id": "window.3", "bbox": [343, 0, 510, 316]}, {"id": "desk.4", "bbox": [39, 350, 505, 420]}, {"id": "shirt.5", "bbox": [90, 329, 282, 470]}, {"id": "box.6", "bbox": [587, 419, 708, 597]}, {"id": "book.7", "bbox": [665, 160,... | [{"subject": "book.7", "predicate": "on", "object": "shelf.8"}, {"subject": "desk.4", "predicate": "made of", "object": "book.9"}, {"subject": "book.7", "predicate": "on", "object": "shelf.8"}, {"subject": "man.1", "predicate": "wearing", "object": "shirt.5"}, {"subject": "bottle.11", "predicate": "above", "object": "t... | |
21 | Generate a structured scene graph for an image of size (256 x 256) using the following format:
<answer>
{
"objects": [
{"id": "object_name.number", "bbox": [x1, y1, x2, y2]},
...
],
"relationships": [
{"subject": "object_name.number", "predicate": "relationship_type", "object": "object_name.number"},... | Generate a structured scene graph for an image of size (256 x 256) using the specified object and relationship categories.
### **Output Format:**
<answer>
{
"objects": [
{"id": "object_name.number", "bbox": [x1, y1, x2, y2]},
...
],
"relationships": [
{"subject": "object_name.number", "predicate": "r... | [{"id": "person.1", "bbox": [0, 0, 191, 246]}, {"id": "pillow.2", "bbox": [135, 0, 241, 202]}, {"id": "girl.3", "bbox": [99, 94, 174, 210]}, {"id": "hair.4", "bbox": [95, 0, 162, 74]}, {"id": "hair.5", "bbox": [127, 93, 173, 145]}, {"id": "arm.6", "bbox": [134, 85, 190, 217]}, {"id": "hand.7", "bbox": [108, 202, 143, 2... | [{"subject": "girl.3", "predicate": "near", "object": "woman.9"}, {"subject": "woman.9", "predicate": "with", "object": "girl.3"}, {"subject": "woman.9", "predicate": "with", "object": "girl.3"}, {"subject": "person.1", "predicate": "has", "object": "hair.4"}, {"subject": "person.1", "predicate": "wearing", "object": "... | |
22 | Generate a structured scene graph for an image of size (800 x 600) using the following format:
<answer>
{
"objects": [
{"id": "object_name.number", "bbox": [x1, y1, x2, y2]},
...
],
"relationships": [
{"subject": "object_name.number", "predicate": "relationship_type", "object": "object_name.number"},... | Generate a structured scene graph for an image of size (800 x 600) using the specified object and relationship categories.
### **Output Format:**
<answer>
{
"objects": [
{"id": "object_name.number", "bbox": [x1, y1, x2, y2]},
...
],
"relationships": [
{"subject": "object_name.number", "predicate": "r... | [{"id": "street.1", "bbox": [0, 335, 799, 403]}, {"id": "building.2", "bbox": [454, 0, 642, 338]}, {"id": "train.3", "bbox": [61, 257, 409, 389]}, {"id": "building.4", "bbox": [671, 0, 798, 358]}, {"id": "pole.5", "bbox": [547, 0, 579, 463]}, {"id": "pole.6", "bbox": [96, 159, 107, 278]}, {"id": "car.7", "bbox": [575, ... | [{"subject": "car.7", "predicate": "on", "object": "street.1"}, {"subject": "car.10", "predicate": "on", "object": "street.1"}, {"subject": "car.12", "predicate": "on", "object": "street.1"}, {"subject": "car.14", "predicate": "on", "object": "street.1"}, {"subject": "train.3", "predicate": "has", "object": "door.8"}, ... | |
23 | Generate a structured scene graph for an image of size (800 x 600) using the following format:
<answer>
{
"objects": [
{"id": "object_name.number", "bbox": [x1, y1, x2, y2]},
...
],
"relationships": [
{"subject": "object_name.number", "predicate": "relationship_type", "object": "object_name.number"},... | Generate a structured scene graph for an image of size (800 x 600) using the specified object and relationship categories.
### **Output Format:**
<answer>
{
"objects": [
{"id": "object_name.number", "bbox": [x1, y1, x2, y2]},
...
],
"relationships": [
{"subject": "object_name.number", "predicate": "r... | [{"id": "building.1", "bbox": [318, 0, 796, 286]}, {"id": "car.2", "bbox": [19, 196, 585, 431]}, {"id": "building.3", "bbox": [0, 0, 402, 389]}, {"id": "tree.4", "bbox": [315, 0, 627, 202]}, {"id": "tree.5", "bbox": [592, 0, 796, 245]}, {"id": "car.6", "bbox": [552, 243, 797, 387]}, {"id": "girl.7", "bbox": [104, 200, ... | [{"subject": "car.2", "predicate": "behind", "object": "girl.9"}, {"subject": "girl.9", "predicate": "near", "object": "car.2"}, {"subject": "girl.12", "predicate": "near", "object": "car.2"}, {"subject": "girl.7", "predicate": "near", "object": "car.2"}, {"subject": "man.18", "predicate": "in", "object": "car.6"}, {"s... | |
24 | Generate a structured scene graph for an image of size (800 x 600) using the following format:
<answer>
{
"objects": [
{"id": "object_name.number", "bbox": [x1, y1, x2, y2]},
...
],
"relationships": [
{"subject": "object_name.number", "predicate": "relationship_type", "object": "object_name.number"},... | Generate a structured scene graph for an image of size (800 x 600) using the specified object and relationship categories.
### **Output Format:**
<answer>
{
"objects": [
{"id": "object_name.number", "bbox": [x1, y1, x2, y2]},
...
],
"relationships": [
{"subject": "object_name.number", "predicate": "r... | [{"id": "tree.1", "bbox": [228, 0, 796, 427]}, {"id": "street.2", "bbox": [111, 257, 798, 596]}, {"id": "building.3", "bbox": [0, 0, 142, 374]}, {"id": "car.4", "bbox": [453, 259, 677, 418]}, {"id": "bike.5", "bbox": [637, 330, 792, 480]}, {"id": "bike.6", "bbox": [322, 268, 492, 353]}, {"id": "pole.7", "bbox": [114, 2... | [{"subject": "tree.1", "predicate": "on", "object": "street.12"}, {"subject": "man.10", "predicate": "near", "object": "bike.6"}, {"subject": "tree.1", "predicate": "along", "object": "street.12"}, {"subject": "tree.1", "predicate": "along", "object": "street.12"}, {"subject": "bike.5", "predicate": "on", "object": "st... | |
25 | Generate a structured scene graph for an image of size (800 x 600) using the following format:
<answer>
{
"objects": [
{"id": "object_name.number", "bbox": [x1, y1, x2, y2]},
...
],
"relationships": [
{"subject": "object_name.number", "predicate": "relationship_type", "object": "object_name.number"},... | Generate a structured scene graph for an image of size (800 x 600) using the specified object and relationship categories.
### **Output Format:**
<answer>
{
"objects": [
{"id": "object_name.number", "bbox": [x1, y1, x2, y2]},
...
],
"relationships": [
{"subject": "object_name.number", "predicate": "r... | [{"id": "building.1", "bbox": [0, 0, 640, 418]}, {"id": "sidewalk.2", "bbox": [0, 350, 799, 596]}, {"id": "people.3", "bbox": [88, 278, 319, 455]}, {"id": "pole.4", "bbox": [682, 17, 742, 351]}, {"id": "table.5", "bbox": [471, 330, 721, 405]}, {"id": "plant.6", "bbox": [232, 119, 360, 258]}, {"id": "car.7", "bbox": [63... | [{"subject": "person.13", "predicate": "on", "object": "chair.20"}, {"subject": "car.22", "predicate": "near", "object": "sidewalk.2"}, {"subject": "car.7", "predicate": "near", "object": "sidewalk.2"}, {"subject": "car.17", "predicate": "near", "object": "sidewalk.2"}] | |
26 | Generate a structured scene graph for an image of size (800 x 600) using the following format:
<answer>
{
"objects": [
{"id": "object_name.number", "bbox": [x1, y1, x2, y2]},
...
],
"relationships": [
{"subject": "object_name.number", "predicate": "relationship_type", "object": "object_name.number"},... | Generate a structured scene graph for an image of size (800 x 600) using the specified object and relationship categories.
### **Output Format:**
<answer>
{
"objects": [
{"id": "object_name.number", "bbox": [x1, y1, x2, y2]},
...
],
"relationships": [
{"subject": "object_name.number", "predicate": "r... | [{"id": "street.1", "bbox": [62, 396, 796, 598]}, {"id": "building.2", "bbox": [0, 0, 51, 367]}, {"id": "people.3", "bbox": [339, 360, 719, 523]}, {"id": "building.4", "bbox": [506, 100, 670, 377]}, {"id": "building.5", "bbox": [121, 17, 208, 346]}, {"id": "building.6", "bbox": [37, 140, 176, 318]}, {"id": "building.7"... | [{"subject": "man.17", "predicate": "walking on", "object": "street.1"}, {"subject": "sign.11", "predicate": "on", "object": "building.7"}] | |
27 | Generate a structured scene graph for an image of size (800 x 600) using the following format:
<answer>
{
"objects": [
{"id": "object_name.number", "bbox": [x1, y1, x2, y2]},
...
],
"relationships": [
{"subject": "object_name.number", "predicate": "relationship_type", "object": "object_name.number"},... | Generate a structured scene graph for an image of size (800 x 600) using the specified object and relationship categories.
### **Output Format:**
<answer>
{
"objects": [
{"id": "object_name.number", "bbox": [x1, y1, x2, y2]},
...
],
"relationships": [
{"subject": "object_name.number", "predicate": "r... | [{"id": "room.1", "bbox": [0, 0, 794, 596]}, {"id": "table.2", "bbox": [182, 294, 623, 596]}, {"id": "chair.3", "bbox": [271, 288, 621, 592]}, {"id": "door.4", "bbox": [2, 0, 139, 599]}, {"id": "tile.5", "bbox": [150, 0, 495, 30]}] | [{"subject": "chair.3", "predicate": "in", "object": "room.1"}, {"subject": "chair.3", "predicate": "in", "object": "room.1"}, {"subject": "chair.3", "predicate": "in", "object": "room.1"}, {"subject": "chair.3", "predicate": "in", "object": "room.1"}, {"subject": "chair.3", "predicate": "in", "object": "room.1"}, {"su... | |
28 | Generate a structured scene graph for an image of size (800 x 600) using the following format:
<answer>
{
"objects": [
{"id": "object_name.number", "bbox": [x1, y1, x2, y2]},
...
],
"relationships": [
{"subject": "object_name.number", "predicate": "relationship_type", "object": "object_name.number"},... | Generate a structured scene graph for an image of size (800 x 600) using the specified object and relationship categories.
### **Output Format:**
<answer>
{
"objects": [
{"id": "object_name.number", "bbox": [x1, y1, x2, y2]},
...
],
"relationships": [
{"subject": "object_name.number", "predicate": "r... | [{"id": "room.1", "bbox": [0, 0, 800, 597]}, {"id": "table.2", "bbox": [80, 453, 533, 598]}, {"id": "pillow.3", "bbox": [325, 468, 796, 595]}, {"id": "flower.4", "bbox": [199, 337, 412, 482]}, {"id": "curtain.5", "bbox": [773, 0, 798, 574]}, {"id": "stand.6", "bbox": [515, 371, 603, 535]}, {"id": "pillow.7", "bbox": [3... | [{"subject": "bowl.9", "predicate": "on", "object": "table.2"}, {"subject": "vase.11", "predicate": "has", "object": "flower.4"}, {"subject": "vase.11", "predicate": "on", "object": "table.2"}, {"subject": "bowl.9", "predicate": "on", "object": "table.2"}, {"subject": "vase.11", "predicate": "of", "object": "flower.4"}... |
This dataset, derived from VG150, provides image-text pairs for scene graph generation. Each example includes an image, an "open" prompt, a "close" prompt, a list of objects, and their relationships. It's designed to be used for training and evaluating models that generate scene graphs from images and textual prompts.
This dataset is used in the paper R1-SGG: Compile Scene Graphs with Reinforcement Learning.
The dataset is structured as follows:
Data Usage:
The dataset can be loaded using the datasets library:
from datasets import load_dataset
db_train = load_dataset("JosephZ/vg150_train_sgg_prompt")["train"]
db_val = load_dataset("JosephZ/vg150_val_sgg_prompt")["train"]
(Further instructions from the original README regarding training and inference can be included here)