-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathnlvr2_programs_and_questions50_find.json
1 lines (1 loc) · 19.5 KB
/
nlvr2_programs_and_questions50_find.json
1
{"38144": {"question": "Is it true that one image shows stacked disk shapes garnished with green sprigs, and the other image features something creamy with broccoli florets in it?", "program": "green_sprigs = False\nbroccoli = False\nfor image in images:\n green_sprigs_i = query(image, \"Does this image show stacked disk shapes garnished with green sprigs?\") == \"yes\"\n broccoli_i = False\n if not green_sprigs_i:\n broccoli_i = query(image, \"Does this image show something creamy with broccoli florets in it?\") == \"yes\"\n green_sprigs = green_sprigs or green_sprigs_i\n broccoli = broccoli or broccoli_i\nif green_sprigs and broccoli:\n answer = \"yes\"\nelse:\n answer = \"no\""}, "46789": {"question": "Is it true that one interior image of a yurt shows a bedroom with one wide bed with a headboard and a trunk sitting at the end of the bed?", "program": "answer = \"no\"\nfor image in images:\n is_yurt = query(image, \"Is this an interior image of a yurt?\")\n if is_yurt == \"yes\":\n headboard = query(image, \"Does this image show one wide bed with a headboard?\")\n trunk = query(image, \"Does this image show one wide bed with a trunk sitting at the end of it?\")\n if headboard == \"yes\" and trunk == \"yes\":\n answer = \"yes\""}, "2110": {"question": "Is it true that one image shows exactly three gorillas, including a baby?", "program": "answer = \"no\"\nfor image in images:\n gorillas = find_object(image, \"gorilla\")\n gorillas_count = len(gorillas)\n baby = query(image, \"Does this image show a baby?\")\n if gorillas_count == 3 and baby == \"yes\":\n answer = \"yes\""}, "16345": {"question": "Is it true that two striped cats are nursing on a dog in one of the images?", "program": "answer = \"no\"\nfor image in images:\n two_cats_nursing_on_a_dog = query(image, \"Are there two cats nursing on a dog?\")\n striped_cats = query(image, \"Are the cats striped?\")\n if two_cats_nursing_on_a_dog == \"yes\" and striped_cats == \"yes\":\n answer = \"yes\""}, "19536": {"question": "Is it true that right image shows a bakery with pale green display cases and black track lighting suspended from a wood plank ceiling?", "program": "bakery = query(images[1], \"Does this image show a bakery?\") == \"yes\"\ndisplay_cases = query(images[1], \"Does this image show pale green display cases?\") == \"yes\"\nblack_track_lighting = query(images[1], \"Does this image show black track lighting?\") == \"yes\"\nwood_plank_ceiling = query(images[1], \"Does this image show a wood plank ceiling?\") == \"yes\"\nif bakery and display_cases and black_track_lighting and wood_plank_ceiling:\n answer = \"yes\"\nelse:\n answer = \"no\""}, "68898": {"question": "Is it true that one of the pelicans is opening its mouth wide?", "program": "answer = \"no\"\nfor image in images:\n pelican_exists = query(image, \"Is there a pelican?\")\n if pelican_exists == \"yes\":\n open_mouthed = query(image, \"Is there a pelican with its mouth open?\")\n if open_mouthed == \"yes\":\n answer = \"yes\""}, "83365": {"question": "Is it true that right image shows a white dog sleeping on the floor with its belly facing up?", "program": "answer = query(images[1], \"Is there a white dog sleeping on the floor with its belly facing up?\")"}, "82401": {"question": "Is it true that there is a white built in bookshelf with a sofa , two chairs and a coffee table in front of it?", "program": "answer = \"no\"\nfor image in images:\n bookshelf_exists = query(image, \"Is there a white built in bookshelf?\")\n if bookshelf_exists == \"yes\":\n sofa_exists = query(image, \"Is there a sofa in front of the bookshelf?\")\n chairs = find_object(image, \"chair\")\n chairs_count = len(chairs)\n coffee_table_exists = query(image, \"Is there a coffee table in front of the bookshelf?\")\n if sofa_exists == \"yes\" and chairs_count == 2 and coffee_table_exists == \"yes\":\n answer = \"yes\""}, "27086": {"question": "Is it true that the left image shows two green acorns in the foreground which lack any brown patches on their skins, and the right image shows foliage without individually distinguishable acorns?", "program": "left_green_acorns = find_object(images[0], \"green acorn\")\nleft_green_acorns_count = len(left_green_acorns)\nleft_brown_patches = query(images[0], \"Do the green acorns have brown patches?\")\nright_foliage = query(images[1], \"Is there foliage without individually distinguishable acorns?\")\nif left_green_acorns_count == 2 and left_brown_patches == \"no\" and right_foliage == \"yes\":\n answer = \"yes\"\nelse:\n answer = \"no\""}, "24525": {"question": "Is it true that there is at least one disposable water bottle with a white cap?", "program": "answer = \"no\"\nfor image in images:\n answer_i = query(image, \"Is there a disposable water bottle with a white cap?\")\n if answer_i == \"yes\":\n answer = \"yes\""}, "64616": {"question": "Is it true that there are three hounds in the right image?", "program": "hounds = find_object(images[1], \"hound\")\nhounds_count = len(hounds)\nif hounds_count == 3:\n answer = \"yes\"\nelse:\n answer = \"no\""}, "9184": {"question": "Is it true that there are at least two animals in the image on the left?", "program": "animals = find_object(images[0], \"animal\")\nanimals_count = len(animals)\nif animals_count >= 2:\n answer = \"yes\"\nelse:\n answer = \"no\""}, "40300": {"question": "Is it true that a person is holding a dog in one of the images?", "program": "answer = \"no\"\nfor image in images:\n answer_i = query(image, \"Is there a person holding a dog?\")\n if answer_i == \"yes\":\n answer = \"yes\""}, "5101": {"question": "Is it true that one image shows a dog on a leash and the other shows a dog by white fabric?", "program": "dog_on_leash = False\ndog_white_fabric = False\nfor image in images:\n leash_i = query(image, \"Is there a dog on a leash?\") == \"yes\"\n if leash_i:\n dog_on_leash = True\n else:\n white_fabric_i = query(image, \"Is there a dog by white fabric?\") == \"yes\"\n dog_white_fabric = dog_white_fabric or white_fabric_i\nif dog_on_leash and dog_white_fabric:\n answer = \"yes\"\nelse:\n answer = \"no\""}, "83984": {"question": "Is it true that a dog is sitting in one picture and in the other picture ta dog is lying down and asleep?", "program": "sitting = False\nasleep = False\nfor image in images:\n sitting_i = query(image, \"Is there a dog sitting?\") == \"yes\"\n if sitting_i:\n sitting = True\n else:\n asleep_i = query(image, \"Is there a dog lying down and asleep?\") == \"yes\"\n asleep = asleep or asleep_i\nif sitting and asleep:\n answer = \"yes\"\nelse:\n answer = \"no\""}, "7722": {"question": "Is it true that two geese are floating on the water in the image on the left?", "program": "geese_water_exist = query(images[0], \"Are there geese floating on the water?\")\ngeese = find_object(images[0], \"goose floating on the water\")\ngeese_count = len(geese)\nif geese_water_exist == \"yes\" and geese_count == 2:\n answer = \"no\"\nelse:\n answer = \"no\""}, "2938": {"question": "Is it true that there is at least one person in each image with a water buffalo?", "program": "person_each_image = []\nfor image in images:\n person = query(image, \"Is there a person?\")\n water_buffalo = query(image, \"Is there a water buffalo?\")\n if person == \"yes\" and water_buffalo == \"yes\":\n person_each_image.append(True)\n else:\n person_each_image.append(False)\nif all(person_each_image):\n answer = \"yes\"\nelse:\n answer = \"no\""}, "61872": {"question": "Is it true that one of the images features an adult dog on green grass?", "program": "answer = \"no\"\nfor image in images:\n answer_i = query(image, \"Is there an adult dog on green grass?\")\n if answer_i == \"yes\":\n answer = \"yes\""}, "24635": {"question": "Is it true that at least one of the images show only one penguin?", "program": "answer = \"no\"\nfor image in images:\n penguin_count = int(query(image, \"How many penguins are there?\"))\n if penguin_count == 1:\n answer = \"yes\""}, "79328": {"question": "Is it true that there are 4 or more parrots flying to the right?", "program": "parrot_count = 0\nfor image in images:\n parrots = find_object(image, \"parrot flying to the right\")\n count_i = len(parrots)\n parrot_count += count_i\nif parrot_count >= 4:\n answer = \"yes\"\nelse:\n answer = \"no\""}, "18554": {"question": "Is it true that the sky is visible in the background of at least one of the images?", "program": "answer = \"no\"\nfor image in images:\n answer_i = query(image, \"Is the sky visible in the background?\")\n if answer_i == \"yes\":\n answer = \"yes\""}, "56284": {"question": "Is it true that in at least one image there is a squared white walled building with at least three floors?", "program": "answer = \"no\"\nfor image in images:\n building_exists = query(image, \"Is there a squared white walled building?\")\n three_floors = query(image, \"Does the white building have at least three floors?\")\n if building_exists == \"yes\" and three_floors == \"yes\":\n answer = \"yes\""}, "33230": {"question": "Is it true that one image features a wolf on snowy ground, and the other includes a body of water and at least one wolf?", "program": "wolf_snowy_ground = False\nwolf_water = False\nfor image in images:\n wolf_snowy_ground_i = query(image, \"Is there a wolf on snowy ground?\")\n if wolf_snowy_ground_i == \"yes\":\n wolf_snowy_ground = True\n else:\n wolf_water_i = query(image, \"Is there a body of water?\") == \"yes\" and query(image, \"Is there a wolf?\") == \"yes\"\n wolf_water = wolf_water or wolf_water_i\nif wolf_snowy_ground and wolf_water:\n answer = \"yes\"\nelse:\n answer = \"no\""}, "77904": {"question": "Is it true that an image includes multiple penguins with fuzzy brown feathers, along with at least one black and white penguin?", "program": "answer = \"no\"\nfor image in images:\n brown_penguins = find_object(image, \"fuzzy brown penguin\")\n brown_penguins_count = len(brown_penguins)\n if brown_penguins_count > 1 and black_and_white_penguin == \"yes\":\n answer = \"yes\""}, "40252": {"question": "Is it true that both sets of doors in the images are white?", "program": "answer = \"yes\"\nfor image in images:\n door_set_exists = query(image, \"Is there a set of doors?\")\n if door_set_exists == \"yes\":\n white_door_set = query(image, \"Is the set of doors white?\")\n if white_door_set == \"no\":\n answer = \"no\""}, "28481": {"question": "Is it true that the left image contains at least one lemon with a criss-cross cut through the top filled with fine white grains?", "program": "answer = query(images[0], \"Is there a lemon with a criss-cross cut through the top filled with fine white grains?\")"}, "7987": {"question": "Is it true that the ocean is visible behind the buildings and cliffside in the left image, but it is not visible in the right image?", "program": "left = query(images[0], \"Is the ocean visible behind the buildings and cliffside?\")\nright = query(images[1], \"Is the ocean visible?\")\nif left == \"yes\" and right == \"no\":\n answer = \"yes\"\nelse:\n answer = \"no\""}, "81624": {"question": "Is it true that at least one of the pillows is designed to look like the instagram logo?", "program": "answer = \"no\"\nfor image in images:\n answer_i = query(image, \"Is there a pillow designed to look like the instagram logo?\")\n if answer_i == \"yes\":\n answer = \"yes\""}, "54871": {"question": "Is it true that on the left a green lawn rises up to meet a white country cottage?", "program": "green_lawn = query(images[0], \"Is there a green lawn?\")\ncottage = query(images[0], \"Does the green lawn rise up to meet a white country cottage?\")\nif green_lawn == \"yes\" and cottage == \"yes\":\n answer = \"yes\"\nelse:\n answer = \"no\""}, "20451": {"question": "Is it true that there are three or more cups with coffee in them?", "program": "count = 0\nfor image in images:\n coffee_cups = find_object(image, \"cup with coffee\")\n count += len(coffee_cups)\nif count >= 3:\n answer = \"yes\"\nelse:\n answer = \"no\""}, "8162": {"question": "Is it true that the wall-filling white shelf unit in the left image features multiple red squares?", "program": "red_squares = find_object(images[0], \"red square\")\nred_squares_count = len(red_squares)\nif red_squares_count > 1:\n answer = \"yes\"\nelse:\n answer = \"no\""}, "53346": {"question": "Is it true that there is a man outside walking with at least ten red balloons?", "program": "answer = \"no\"\nfor image in images:\n man_outside = query(image, \"Is there a man outside walking?\")\n balloons = find_object(image, \"red balloon\")\n balloons_count = len(balloons) if man_outside == \"yes\" and balloons_count >= 10:\n answer = \"yes\""}, "59809": {"question": "Is it true that one image features at least two dogs?", "program": "answer = \"no\"\nfor image in images:\n dogs = find_object(image, \"dog\")\n dogs_count = len(dogs)\n if dogs_count >= 2:\n answer = \"yes\""}, "57116": {"question": "Is it true that the left image contains no more than two wild boars?", "program": "wild_boars = find_object(images[0], \"wild boar\")\nwild_boars_count = len(wild_boars)\nif wild_boars_count <= 2:\n answer = \"yes\"\nelse:\n answer = \"no\""}, "75312": {"question": "Is it true that a human hand is offering food to birds in the left image?", "program": "answer = query(images[0], \"Is a human hand offering food to birds in this image?\")"}, "42332": {"question": "Is it true that at least one dog has it's mouth open?", "program": "answer = \"no\"\nfor image in images:\n answer_i = query(image, \"Is there a dog with its mouth open?\")\n if answer_i == \"yes\":\n answer = \"yes\""}, "81864": {"question": "Is it true that there is a bald ban holding an instrument with a bracelet on and a short sleeved button down shirt?", "program": "answer = \"no\"\nfor image in images:\n bald_ban = query(image, \"Is there a bald ban?\")\n instrument = query(image, \"Is the bald ban holding an instrument?\")\n bracelet = query(image, \"Does the bald ban have a bracelet on?\")\n shirt = query(image, \"Is the bald ban wearing a short sleeved button down shirt?\")\n if bald_ban == \"yes\" and instrument == \"yes\" and bracelet == \"yes\" and shirt == \"yes\":\n answer = \"yes\""}, "64380": {"question": "Is it true that the dispenser on the right is a cylinder with a narrow nozzle?", "program": "answer = query(images[1], \"Is the dispenser a cylinder with a narrow nozzle?\")"}, "21763": {"question": "Is it true that there are no more than two dung beetles?", "program": "beetle_count = 0\nfor image in images:\n beetles = find_object(image, \"dung beetle\")\n beetle_count += len(beetles)\nif beetle_count <= 2:\n answer = \"yes\"\nelse:\n answer = \"no\""}, "13713": {"question": "Is it true that two jellyfish are visible in the left image?", "program": "jellyfish = find_object(images[0], \"jellyfish\")\njellyfish_count = len(jellyfish)\nif jellyfish_count == 2:\n answer = \"yes\"\nelse:\n answer = \"no\""}, "82296": {"question": "Is it true that exactly two locks are shown, both of them locked and with a circular design and logo on the front, one with ridges on each side?", "program": "count = 0\nfor image in images:\n locks = find_object(image, \"lock\")\n count += len(locks)\nall_locked = True\nall_circular_logo = True\nlock_with_ridges_exists = False\nfor image in images:\n locked = query(image, \"Are the locks locked?\")\n circular_logo = query(image, \"Do all the locks have a circular design and a logo on the front?\")\n ridges = query(image, \"Is there a lock with ridges on each side?\")\n if locked == \"no\":\n all_locked = False\n if circular_logo == \"yes\":\n all_circular_logo = False\n if ridges == \"yes\":\n lock_with_ridges_exists = True\nif count == 2 and all_locked and all_circular_logo and lock_with_ridges_exists:\n answer = \"yes\"\nelse:\n answer = \"no\""}, "78987": {"question": "Is it true that there are two mice near yellow and orange seats?", "program": "count = 0\nfor image in images:\n yellow_orange_seats = query(image, \"Are there yellow and orange seats?\")\n mice = find_object(image, \"mouse\")\n if yellow_orange_seats == \"yes\":\n count += len(mice)\nif count == 2:\n answer = \"yes\"\nelse:\n answer = \"no\""}, "52662": {"question": "Is it true that the pillow in one of the images has three buttons?", "program": "answer = \"no\"\nfor image in images:\n buttons = find_object(image, \"button on pillow\")\n buttons_count = len(buttons) if buttons_count == 3:\n answer = \"yes\""}, "40224": {"question": "Is it true that a bloody carcass lies in the grass in one image?", "program": "answer = \"no\"\nfor image in images:\n answer_i = query(image, \"Is there a bloody carcass lying in the grass?\")\n if answer_i == \"yes\":\n answer = \"yes\""}, "32808": {"question": "Is it true that the phones in each of the image are stacked upon each other?", "program": "answer = \"yes\"\nfor image in images:\n stacked = query(image, \"Are the phones stacked upon each other?\")\n if stacked == \"no\":\n answer = \"no\""}, "7450": {"question": "Is it true that there are 4 or more dogs, and one of them is being held up by a human?", "program": "count = 0\nheld_by_human = False\nfor image in images:\n dogs = find_object(image, \"dog\")\n count += len(dogs)\n held_i = query(image, \"Is there a dog held up by a human?\")\n if held_i == \"yes\":\n held_by_human = True\nif count >= 4 and held_by_human:\n answer = \"yes\"\nelse:\n answer = \"no\""}, "81375": {"question": "Is it true that each image contains the same number of dogs, at least one of the dogs depicted gazes straight forward, and all dogs are erect-eared doberman?", "program": "counts = []\ngazes_forward = False\ndoberman = []\nfor image in images:\n dogs = find_object(image, \"dog\")\n counts.append(len(dogs))\n forward = query(image, \"Is there a dog gazing straight forward?\")\n gazes_forward = gazes_forward or (forward == \"yes\")\n doberman.append(query(image, \"Are the dogs all erect-eared doberman?\"))\nif all([c == counts[0] for c in counts]) and gazes_forward and all([d == \"yes\" for d in doberman]):\n answer = \"yes\"\nelse:\n answer = \"no\""}, "33992": {"question": "Is it true that an image features some neatly stacked rolls of paper towels?", "program": "answer = \"no\"\nfor image in images:\n answer_i = query(image, \"Are there some neatly stacked rolls of paper towels?\")\n if answer_i == \"yes\":\n answer = \"yes\""}, "77829": {"question": "Is it true that in at least one image there is a single cooked crab upside down exposing it's soft parts?", "program": "answer = \"no\"\nfor image in images:\n answer_i = query(image, \"Is there a single cooked crab upside down exposing its soft parts?\")\n if answer_i == \"yes\":\n answer = \"yes\""}, "26382": {"question": "Is it true that there is at least one human to the left of the dog?", "program": "answer = \"no\"\nfor image in images:\n dog = query(image, \"Is there a dog?\")\n if dog == \"yes\":\n human = query(image, \"Is there a human to the left of the dog?\")\n if human == \"yes\":\n answer = \"yes\""}}