vid_seg_int stringlengths 22 25 | frames images listlengths 11 11 | grounding_annotations stringlengths 656 5.82k |
|---|---|---|
v_VYQoxBs5N2A_seg_120_130 | {"Ev1": {"Arg0 (driver)": {"Frames": [1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "Bboxes": [[58.08, 28.59, 1250.23, 720.0], [0.0, 23.59, 1226.5, 720.0], [0.0, 21.09, 1226.5, 720.0], [0.0, 0.0, 1224.0, 720.0], [0.0, 0.0, 1217.8, 720.0], [0.0, 0.0, 1214.1, 720.0], [113.72, 0.0, 1050.1, 720.0], [103.72, 0.0, 1052.6, 720.0], [0.0, 0.... | |
v_VYQoxBs5N2A_seg_90_100 | {"Ev1": {"Arg1 (thing collapsing)": {"Frames": [0, 1, 2, 3], "Bboxes": [[304.63, 0.0, 1039.4, 720.0], [89.7, 59.98, 1280.0, 720.0], [392.11, 113.72, 1163.8, 720.0], [303.38, 104.97, 1045.1, 720.0]], "caption": "A man in black suit and blue shirt"}, "ArgM (location)": "_", "ArgM (manner)": "_"}, "Ev2": {"Arg1 (agonized ... | |
v_4w36z7XnwOM_seg_80_90 | {"Ev1": {"Arg0 (talker)": {"Frames": [0, 1, 10], "Bboxes": [[369.71, 123.08, 672.57, 628.14], [383.59, 130.89, 641.3, 629.0], [702.1, 319.2, 963.3, 607.2]], "caption": "man in white shirt"}, "Arg2 (hearer)": {"Frames": [2, 3, 4, 5, 6, 7, 8, 9, 10], "Bboxes": [[101.56, 234.16, 1058.74, 458.91999999999996], [93.75, 251.5... | |
v_8AZk-d0z3ws_seg_85_95 | {"Ev1": {"Arg0 (grabber)": {"Frames": [0, 1, 2, 6, 7, 8, 9, 10], "Bboxes": [[2.0, 146.39, 655.92, 720.0], [0.0, 0.0, 486.18, 720.0], [439.45, 0.0, 1012.1000000000001, 720.0], [364.47, 366.56, 888.2, 720.0], [707.08, 309.28, 1147.5, 720.0], [683.1, 338.44, 1104.8, 720.0], [591.46, 316.57, 1042.3, 720.0], [661.23, 353.02... | |
v_9cb5Ka9SqGM_seg_105_115 | {"Ev1": {"Arg0 (looker)": {"Frames": [0, 1, 5, 6, 7, 8], "Bboxes": [[183.42, 48.08, 1021.92, 720.0], [124.7, 119.31, 908.2, 720.0], [500.8, 33.09, 886.96, 720.0], [533.3, 75.58, 896.96, 720.0], [534.5, 35.59, 645.78, 167.70000000000002], [399.5, 45.58, 672.0, 640.1]], "caption": "man in white shirt"}, "Arg1 (thing look... | |
v_vt0hblIsHiY_seg_125_135 | {"Ev1": {"Arg0 (talker)": {"Frames": [0, 1, 2], "Bboxes": [[0.0, 142.85, 370.7, 631.24], [0.0, 200.12, 369.7, 630.2], [0.0, 217.83, 252.0, 629.2]], "caption": "man with blond hair"}, "Arg2 (hearer)": {"Frames": [0, 1, 2, 3, 4, 7, 8, 9], "Bboxes": [[532.11, 87.66, 1280.0, 631.2], [569.6, 85.6, 1280.0, 629.12], [660.19, ... | |
v_3FgbU0ZZzQY_seg_40_50 | {"Ev1": {"Arg0 (looker)": {"Frames": [0, 3, 4, 5, 6, 10], "Bboxes": [[445.57, 28.19, 1242.21, 715.49], [415.37, 106.3, 1270.3, 709.6], [655.92, 202.1, 1280.0, 709.6], [528.88, 478.06, 1188.4, 712.7], [741.32, 642.59, 1211.3, 712.7], [476.81, 217.7, 1280.0, 710.62]], "caption": "the blonde woman"}, "Arg1 (thing looked a... | |
v_5ZXyC0SDHNw_seg_85_95 | {"Ev1": {"Arg0 (talker)": {"Frames": [0, 1, 4, 5, 7, 8, 9, 10], "Bboxes": [[369.13, 18.41, 893.98, 706.74], [380.59, 24.7, 980.3999999999999, 703.62], [461.82, 15.3, 1024.1, 701.54], [475.4, 33.0, 1015.8, 701.54], [495.19, 163.17, 775.2, 710.6], [531.63, 146.51, 900.2, 713.7], [781.56, 147.55, 1052.2, 699.0999999999999... | |
v_AHHH770W4Wk_seg_100_110 | {"Ev1": {"Arg0 (kisser)": {"Frames": [0], "Bboxes": [[671.47, 176.1, 772.71, 301.93]], "caption": "A man in black suit"}, "Arg1 (kissed)": {"Frames": [0], "Bboxes": [[653.17, 185.72, 760.92, 301.43]], "caption": "A woman in wedding gown"}, "ArgM (location)": "_", "ArgM (manner)": "_"}, "Ev2": {"Arg0 (looker)": {"Frames... | |
v_t9P2B7NUPfM_seg_50_60 | {"Ev1": {"Arg0 (rider)": {"Frames": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "Bboxes": [[396.94, 99.11, 824.94, 630.2], [375.07, 91.82, 829.0999999999999, 628.0999999999999], [339.66, 91.82, 828.1, 628.0999999999999], [293.84, 90.78, 848.8999999999999, 629.1], [336.54, 91.82, 884.3, 627.0], [463.58, 102.24, 1000.89999999999... | |
v_6lRIgVCdLP4_seg_140_150 | {"Ev1": {"Arg0 (aimer)": {"Frames": [2, 7, 8, 10], "Bboxes": [[112.81, 130.9, 515.2, 577.05], [0.0, 87.2, 837.6, 628.29], [0.0, 88.03, 816.4, 631.2], [672.3, 172.17, 875.09, 633.3]], "caption": "a man in a black shirt"}, "Arg1 (thing in motion)": {"Frames": [2, 7, 8], "Bboxes": [[264.02, 279.64, 1050.0, 523.32], [591.4... | |
v_4HOgujwklBY_seg_95_105 | {"Ev1": {"Arg1 (entity in motion)": {"Frames": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "Bboxes": [[453.46, 0.0, 1190.74, 720.0], [468.46, 0.0, 1280.0, 720.0], [550.93, 106.22, 1171.3, 720.0], [987.05, 161.2, 1280.0, 720.0], [324.8, 0.0, 813.89, 572.5], [449.8, 0.0, 942.6, 720.0], [603.45, 349.9, 925.1100000000001, 720.0], ... | |
v_aoZDSctyBE0_seg_0_10 | {"Ev1": {"Arg0 (chopper)": {"Frames": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "Bboxes": [[79.12, 46.0, 429.01, 720.0], [156.18, 40.79, 700.8, 720.0], [116.61, 75.16, 463.40000000000003, 720.0], [87.45, 85.57, 696.7, 720.0], [101.0, 28.3, 528.0, 720.0], [155.1, 9.6, 577.98, 720.0], [74.92, 67.92, 663.4, 720.0], [0.0, 51.25,... | |
v_EHKfoWh8t6o_seg_75_85 | {"Ev1": {"Arg0 (turner)": {"Frames": [0], "Bboxes": [[84.2, 79.69, 834.85, 647.23]], "caption": "a globe"}, "Arg1 (thing turning)": "_", "ArgM (direction)": "_", "ArgM (purpose)": "_", "Scene of the Event": "_"}, "Ev2": {"Arg0 (observer)": {"Frames": [4, 5, 6, 7], "Bboxes": [[194.85, 84.55, 1175.46, 637.34], [194.85, 8... | |
v_Vc_4eoSHwK8_seg_25_35 | {"Ev1": {"Arg0 (looker)": {"Frames": [0, 4, 5, 7, 10], "Bboxes": [[289.37, 0.0, 1280.0, 720.0], [410.17, 0.0, 1280.0, 720.0], [389.34, 0.0, 1280.0, 720.0], [290.41, 0.0, 1280.0, 720.0], [236.26, 0.0, 1280.0, 720.0]], "caption": "man wearing a black suit"}, "Arg1 (looked at)": {"Frames": [1, 2, 3, 6, 8, 9], "Bboxes": [[... | |
v_TMe71Lvy1lA_seg_45_55 | {"Ev1": {"Arg0 (looker)": {"Frames": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "Bboxes": [[79.53, 0.0, 1164.6299999999999, 720.0], [83.7, 0.0, 1167.8, 720.0], [293.01, 242.64, 826.0, 720.0], [369.03, 80.18, 490.7, 197.2], [353.41, 48.94, 487.6, 209.7], [584.34, 527.3, 1280.0, 720.0], [289.43, 0.0, 1280.0, 720.0], [346.91, 0.... | |
v_hA0OlCQLC0Q_seg_50_60 | {"Ev1": {"Arg0 (first fighter)": {"Frames": [0, 1, 3, 4, 5, 6, 7, 8, 9, 10], "Bboxes": [[133.27, 167.0, 1105.89, 642.9100000000001], [372.78, 0.0, 1280.0, 720.0], [425.27, 352.22, 653.1, 483.6], [424.43, 323.35, 672.3, 490.7], [508.55, 327.95, 673.1, 488.2], [156.15, 0.0, 1280.0, 720.0], [805.46, 0.0, 1280.0, 720.0], [... | |
v_opXI29YEI5s_seg_180_190 | {"Ev1": {"Arg0 (Agent)": {"Frames": [1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "Bboxes": [[1021.02, 193.04, 1220.96, 374.24], [851.28, 176.38, 1139.7, 370.1], [834.62, 124.31, 1145.9, 414.9], [996.03, 111.82, 1271.7, 720.0], [1134.53, 68.08, 1280.0, 720.0], [1091.8, 28.51, 1280.0, 720.0], [684.63, 35.8, 1096.7, 720.0], [576.33, ... | |
v_yKhHoh_H350_seg_35_45 | {"Ev1": {"Arg0 (looker)": {"Frames": [0, 1, 2, 3, 4, 6, 7, 8, 9, 10], "Bboxes": [[16.34, 102.6, 501.44, 633.69], [25.02, 108.7, 544.8, 631.09], [33.7, 87.9, 567.4, 630.22], [34.56, 102.7, 567.3999999999999, 630.2], [33.7, 119.2, 590.0, 628.4600000000002], [412.03, 536.46, 528.6, 571.3], [342.1, 203.8, 616.6, 574.3], [4... | |
v_UJ_zLBr1NxE_seg_40_50 | {"Ev1": {"Arg0 (runner)": {"Frames": [0, 9, 10], "Bboxes": [[671.65, 174.51, 1086.11, 623.3300000000002], [789.32, 222.41, 936.1, 629.6], [578.97, 162.01, 947.6, 627.5]], "caption": "man with dark hair"}, "Arg1 (course, race, distance)": "_", "ArgM (direction)": "_", "ArgM (goal)": "_", "Scene of the Event": "_"}, "Ev2... | |
v_abh8wBYFeuE_seg_20_30 | {"Ev1": {"Arg0 (looker)": {"Frames": [0, 1, 2, 3, 4], "Bboxes": [[391.21, 21.95, 1280.0, 720.0], [375.6, 21.95, 1280.0, 720.0], [298.5, 21.95, 1280.0, 720.0], [306.8, 264.6, 490.70000000000005, 673.1], [388.03, 172.96, 884.3, 715.8]], "caption": "woman with eyepatch"}, "Arg1 (thing looked at or for or on)": "_", "ArgM ... | |
v_6G7J6lZDW3E_seg_80_90 | {"Ev1": {"Arg0 (aimer)": "_", "Arg1 (thing in motion)": "_", "Arg2 (target)": "_", "Scene of the Event": "_"}, "Ev2": {"Arg0 (talker)": {"Frames": [1, 2, 3, 7, 8, 9, 10], "Bboxes": [[279.39, 31.34, 965.44, 720.0], [356.87, 26.34, 1040.4, 720.0], [394.36, 60.08, 1070.4, 720.0], [255.65, 87.57, 599.3, 720.0], [209.41, 13... | |
v_I-xX6foX9zw_seg_0_10 | {"Ev1": {"Arg0 (looker)": {"Frames": [0, 1, 4, 5, 10], "Bboxes": [[89.01, 99.32, 348.31, 677.27], [37.98, 88.91, 310.90000000000003, 720.0], [73.39, 0.0, 959.7, 720.0], [52.56, 0.0, 970.2, 720.0], [16.12, 0.0, 908.8, 720.0]], "caption": "guy in a gray shirt"}, "Arg1 (thing looked at or for or on)": {"Frames": [0, 1], "... | |
v_yWP5eC822Ac_seg_180_190 | {"Ev1": {"Arg0 (looker)": {"Frames": [0, 1, 2, 3], "Bboxes": [[0.0, 85.99, 821.29, 633.74], [0.0, 87.03, 844.2, 634.78], [189.53, 84.95, 1074.3, 632.7], [156.2, 88.07, 1048.3, 632.7]], "caption": "Cowboy Hat Guy"}, "Arg1 (looked at)": {"Frames": [4, 5, 6, 7, 8], "Bboxes": [[27.3, 194.6, 1046.9, 573.8], [58.54, 194.6, 1... | |
v_yWP5eC822Ac_seg_170_180 | {"Ev1": {"Arg0 (looker)": {"Frames": [0, 1], "Bboxes": [[522.36, 85.71, 1280.0, 634.87], [488.57, 84.3, 1273.0, 633.46]], "caption": "man in white"}, "Arg1 (thing looked at or for or on)": "_", "ArgM (direction)": "_", "ArgM (manner)": "_", "Scene of the Event": "_"}, "Ev2": {"Arg0 (rider)": "_", "Arg1 (steed)": {"Fram... | |
v_5lqvuMwYODI_seg_80_90 | {"Ev1": {"Arg0 (grabber)": {"Frames": [0, 1, 6, 7, 8, 9, 10], "Bboxes": [[912.95, 122.69, 1280.0, 712.5], [691.77, 187.67, 1280.0, 435.1], [249.4, 103.9, 706.4, 533.82], [249.4, 103.9, 702.7, 545.1000000000001], [306.9, 111.4, 701.45, 533.8500000000001], [303.2, 118.9, 699.0, 550.1000000000001], [313.2, 117.65, 695.25,... | |
v_wwrzI3b5LxI_seg_15_25 | {"Ev1": {"Arg0 (talker)": {"Frames": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "Bboxes": [[219.49, 7.06, 1215.0, 711.7], [403.81, 3.93, 1280.0, 708.58], [464.21, 154.93, 579.2, 694.0], [463.69, 169.51, 604.7, 707.0], [463.17, 184.1, 630.2, 720.0], [466.29, 267.4, 691.6, 720.0], [530.9, 363.21, 773.87, 715.8], [587.1, 385.07,... | |
v_pcqaeLRop58_seg_100_110 | {"Ev1": {"Arg0 (turner)": {"Frames": [0, 4, 5, 9], "Bboxes": [[88.18, 71.62, 891.06, 717.36], [1.0, 89.3, 787.97, 718.4], [221.77, 115.33, 700.5, 720.0], [298.8, 145.53, 528.68, 716.9]], "caption": "man in a black coat"}, "Arg1 (thing turning)": "_", "ArgM (direction)": "_", "ArgM (purpose)": "_", "Scene of the Event":... | |
v__bUaFRyP80A_seg_10_20 | {"Ev1": {"Arg0 (walker)": {"Frames": [0, 2, 3, 4, 5, 6, 7, 8, 9, 10], "Bboxes": [[227.2, 104.21, 723.9200000000001, 720.0], [358.4, 132.33, 677.06, 720.0], [263.64, 147.95, 554.2, 720.0], [1055.07, 204.18, 1280.0, 720.0], [508.36, 210.43, 801.0, 608.6], [508.4, 179.19, 759.35, 607.6], [489.7, 172.94, 740.6, 608.6], [48... | |
v_ZcO9A2DK_8o_seg_20_30 | {"Ev1": {"Arg1 (thing standing)": {"Frames": [0, 1, 9, 10], "Bboxes": [[500.66, 25.8, 1046.33, 705.81], [444.42, 8.1, 1115.1, 705.81], [552.73, 24.8, 1195.3, 704.76], [552.73, 24.8, 1194.3, 704.76]], "caption": "the middle aged woman with blonde hair"}, "Arg2 (location)": "_", "ArgM (manner)": "_"}, "Ev2": {"Arg0 (enti... | |
v_-34RUyP-DH8_seg_90_100 | {"Ev1": {"Arg0 (looker)": {"Frames": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "Bboxes": [[157.05, 92.81, 1278.82, 628.5], [170.3, 92.81, 1278.82, 628.5], [212.1, 92.81, 1278.82, 628.5], [261.2, 92.81, 1278.82, 628.5], [171.7, 92.81, 1278.82, 628.5], [301.6, 92.81, 1278.8200000000002, 628.5], [193.5, 92.81, 1278.82, 628.5], ... | |
v_LRPEYUlE8rU_seg_35_45 | {"Ev1": {"Arg0 (talker)": {"Frames": [0, 1, 4, 5, 6, 7, 8, 9, 10], "Bboxes": [[0.0, 88.95, 638.3, 631.29], [0.0, 90.2, 879.48, 632.54], [0.0, 91.45, 860.73, 633.79], [0.0, 90.2, 859.48, 632.54], [0.0, 87.7, 839.5, 633.8], [0.0, 91.45, 1028.2, 631.3], [0.0, 88.95, 1226.9, 631.3], [0.0, 87.7, 1209.4, 633.8], [0.0, 87.7, ... | |
v_LRPEYUlE8rU_seg_10_20 | {"Ev1": {"Arg0 (agent smiling)": {"Frames": [0, 1, 2, 3, 4, 5, 6, 9, 10], "Bboxes": [[601.04, 87.03, 1222.73, 631.66], [573.97, 88.07, 1204.0, 632.7], [561.47, 87.0, 1280.0, 632.7], [732.26, 84.92, 1280.0, 630.62], [735.38, 87.0, 1280.0, 630.62], [729.13, 245.29, 959.3, 602.4], [549.55, 240.47, 785.7, 565.0], [450.62, ... | |
v_4_9ZfH_x1hE_seg_75_85 | {"Ev1": {"Arg0 (looker)": {"Frames": [0, 1, 2, 6, 7, 8, 9, 10], "Bboxes": [[511.16, 98.78, 991.92, 635.95], [510.29, 98.78, 991.05, 635.95], [509.42, 98.78, 990.18, 635.95], [932.0, 160.4, 1050.06, 398.20000000000005], [670.79, 193.37, 753.3, 249.8], [265.53, 193.37, 325.5, 256.7], [1.72, 160.4, 163.2, 567.37], [167.47... | |
v_AoB_mdZxNlY_seg_175_185 | {"Ev1": {"Arg1 (entity crashed)": {"Frames": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "Bboxes": [[0.0, 90.26, 1280.0, 628.64], [0.0, 90.26, 1237.3, 628.64], [0.0, 90.26, 1270.6, 628.64], [0.0, 127.73, 1275.3, 628.64], [0.0, 165.2, 1280.0, 628.64], [0.0, 92.4, 1280.0, 628.64], [0.0, 120.78, 1280.0, 628.12], [0.0, 149.15, 128... | |
v_8bY4qPadkSo_seg_120_130 | {"Ev1": {"Arg0 (entity with a bobbing head, agent)": {"Frames": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "Bboxes": [[638.22, 87.14, 1280.0, 630.72], [722.6, 87.14, 1280.0, 630.72], [607.0, 87.14, 1280.0, 630.72], [122.77, 149.6, 729.1, 634.89], [182.1, 89.2, 787.42, 631.8], [383.08, 88.2, 996.7, 631.8], [308.1, 90.3, 981.1,... | |
v_vNgB9PxOAdI_seg_0_10 | {"Ev1": {"Arg0 (entity entering)": {"Frames": [0, 1, 2, 3, 4, 9, 10], "Bboxes": [[763.31, 56.78, 931.08, 579.63], [407.51, 78.47, 693.3, 676.8], [378.01, 68.06, 619.5, 720.0], [351.11, 68.06, 598.7, 720.0], [163.7, 12.87, 360.24, 662.7], [197.02, 212.81, 411.3, 477.4], [219.21, 145.6, 531.1, 424.6]], "caption": "the wo... | |
v_WLE2QEOBde4_seg_15_25 | {"Ev1": {"Arg0 (shooter)": {"Frames": [0, 2, 3, 4, 5, 6, 7, 8, 9, 10], "Bboxes": [[510.45, 86.82, 820.35, 631.6599999999999], [326.8, 244.28, 566.68, 636.3], [351.8, 259.27, 581.68, 635.0999999999999], [345.55, 225.5, 521.7, 633.85], [331.8, 220.5, 516.7, 635.1], [331.8, 218.0, 591.7, 635.1], [404.3, 241.7, 619.19, 633... |
VidSitu Grounding Dataset
Grounding annotations for the VidSitu benchmark, providing bounding box localizations for semantic role entities across video frames.
Each video segment contains 11 uniformly sampled frames from a 10-second movie clip. For each segment, 5 events (Ev1-Ev5) are annotated with verb-specific semantic roles (e.g., Agent, Patient, Instrument), and each grounded role includes:
- Frame indices where the entity is visible
- Bounding boxes (x1, y1, x2, y2) in pixel coordinates
- Text caption describing the entity
Visualization Example
Below is a visualization of v_UZb2NOHPA2A_seg_0_10 (from The Pursuit of Happyness), Event 1 — "play", showing the grounded entities "kid with curly hair" and "basketball" across frames:
Dataset Structure
| Column | Type | Description |
|---|---|---|
vid_seg_int |
string |
Video segment identifier (e.g., v_VYQoxBs5N2A_seg_120_130) |
frames |
list[Image] |
11 JPEG frames (frame_00 to frame_10) |
grounding_annotations |
string (JSON) |
Full grounding annotations (see format below) |
Annotation Format
The grounding_annotations column is a JSON string with this structure:
{
"Ev1": {
"Arg0 (player)": {
"Frames": [0, 2, 3, 4, 5, 6, 7],
"Bboxes": [[x1, y1, x2, y2], ...],
"caption": "kid with curly hair"
},
"Arg1 (game/music)": {
"Frames": [3, 4, 5, 6, 7],
"Bboxes": [[x1, y1, x2, y2], ...],
"caption": "basketball"
},
"Arg2 (instrument used to play game/music)": "_",
"ArgM (location)": "_",
"ArgM (manner)": "_"
},
"Ev2": { ... },
...
"Ev5": { ... }
}
- Roles with value
"_"are not grounded (no bounding box annotation). Bboxesare in pixel coordinates[x1, y1, x2, y2]matching the frame resolution.Frameslists the 0-indexed frame numbers where the entity is visible.
How to Load and Visualize
from datasets import load_dataset
from PIL import Image, ImageDraw
import json
# Load the dataset
ds = load_dataset("katha-ai-iiith/vidsitu-grounding", split="validation")
# Pick a sample
sample = ds[0]
print(f"Segment: {sample['vid_seg_int']}")
# Parse annotations
annotations = json.loads(sample["grounding_annotations"])
# Visualize Event 1 grounding on frame 5
event = "Ev1"
frame_idx = 5
print(f"\nEvent: {event}")
frame = sample["frames"][frame_idx].copy()
draw = ImageDraw.Draw(frame)
colors = ["red", "blue", "green", "orange", "purple"]
color_idx = 0
for role, data in annotations[event].items():
if not isinstance(data, dict) or "Bboxes" not in data:
continue # skip unannotated roles
if frame_idx in data["Frames"]:
bbox_pos = data["Frames"].index(frame_idx)
x1, y1, x2, y2 = data["Bboxes"][bbox_pos]
color = colors[color_idx % len(colors)]
draw.rectangle([x1, y1, x2, y2], outline=color, width=3)
draw.text((x1, y1 - 15), f"{role}: {data['caption']}", fill=color)
color_idx += 1
frame.save("grounding_example.png")
print(f"Saved visualization to grounding_example.png")
Iterating Over All Grounded Entities
import json
from datasets import load_dataset
ds = load_dataset("katha-ai-iiith/vidsitu-grounding", split="validation")
for sample in ds:
annotations = json.loads(sample["grounding_annotations"])
for event_key in ["Ev1", "Ev2", "Ev3", "Ev4", "Ev5"]:
event = annotations[event_key]
for role, data in event.items():
if not isinstance(data, dict):
continue
caption = data["caption"]
n_frames = len(data["Frames"])
print(f"{sample['vid_seg_int']} | {event_key} | {role} -> {caption} ({n_frames} frames)")
Full VidSitu Dataset
This repository contains grounding annotations for a subset of the validation set. For the complete VidSitu dataset (all splits, videos, and annotations), please refer to:
- VidSitu on India Data Portal: https://india-data.org/dataset-details/0cdb4ba0-19fb-4401-9b4e-d7266e87f0c2
- VidSitu Project Page: https://vidsitu.org/
Citation
If you use this dataset, please cite the VidSitu paper:
@inproceedings{sadhu2021visual,
title={Visual Semantic Role Labeling for Video Understanding},
author={Sadhu, Arka and Gupta, Tanmay and Yatskar, Mark and Nevatia, Ram and Kembhavi, Aniruddha},
booktitle={CVPR},
year={2021}
}
- Downloads last month
- 56
