|
| 1 | +# Copyright (C) 2025 Robotec.AI |
| 2 | +# |
| 3 | +# Licensed under the Apache License, Version 2.0 (the "License"); |
| 4 | +# you may not use this file except in compliance with the License. |
| 5 | +# You may obtain a copy of the License at |
| 6 | +# |
| 7 | +# http://www.apache.org/licenses/LICENSE-2.0 |
| 8 | +# |
| 9 | +# Unless required by applicable law or agreed to in writing, software |
| 10 | +# distributed under the License is distributed on an "AS IS" BASIS, |
| 11 | +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 12 | +# See the License for the specific language governing permissions and |
| 13 | +# limitations under the License. |
| 14 | + |
| 15 | +from typing import List, Sequence |
| 16 | + |
| 17 | +from rai_bench.tool_calling_agent_bench.agent_tasks_interfaces import ( |
| 18 | + SpatialReasoningAgentTask, |
| 19 | +) |
| 20 | +from rai_bench.tool_calling_agent_bench.spatial_reasoning_tasks import ( |
| 21 | + BoolImageTask, |
| 22 | + BoolImageTaskInput, |
| 23 | +) |
| 24 | + |
| 25 | +inputs: List[BoolImageTaskInput] = [ |
| 26 | + BoolImageTaskInput( |
| 27 | + question="Is the door on the left from the desk?", |
| 28 | + images_paths=["src/rai_bench/rai_bench/examples/images/image_1.jpg"], |
| 29 | + expected_response=True, |
| 30 | + ), |
| 31 | + BoolImageTaskInput( |
| 32 | + question="Is the door open?", |
| 33 | + images_paths=["src/rai_bench/rai_bench/examples/images/image_1.jpg"], |
| 34 | + expected_response=False, |
| 35 | + ), |
| 36 | + BoolImageTaskInput( |
| 37 | + question="Is someone in the room?", |
| 38 | + images_paths=["src/rai_bench/rai_bench/examples/images/image_1.jpg"], |
| 39 | + expected_response=False, |
| 40 | + ), |
| 41 | + BoolImageTaskInput( |
| 42 | + question="Is the light on in the room?", |
| 43 | + images_paths=["src/rai_bench/rai_bench/examples/images/image_2.jpg"], |
| 44 | + expected_response=True, |
| 45 | + ), |
| 46 | + BoolImageTaskInput( |
| 47 | + question="Do you see the plant?", |
| 48 | + images_paths=["src/rai_bench/rai_bench/examples/images/image_2.jpg"], |
| 49 | + expected_response=True, |
| 50 | + ), |
| 51 | + BoolImageTaskInput( |
| 52 | + question="Do you see the plant?", |
| 53 | + images_paths=["src/rai_bench/rai_bench/examples/images/image_3.jpg"], |
| 54 | + expected_response=False, |
| 55 | + ), |
| 56 | + BoolImageTaskInput( |
| 57 | + question="Are there any pictures on the wall?", |
| 58 | + images_paths=["src/rai_bench/rai_bench/examples/images/image_3.jpg"], |
| 59 | + expected_response=True, |
| 60 | + ), |
| 61 | + BoolImageTaskInput( |
| 62 | + question="Are there 3 pictures on the wall?", |
| 63 | + images_paths=["src/rai_bench/rai_bench/examples/images/image_4.jpg"], |
| 64 | + expected_response=True, |
| 65 | + ), |
| 66 | + BoolImageTaskInput( |
| 67 | + question="Are there 4 pictures on the wall?", |
| 68 | + images_paths=["src/rai_bench/rai_bench/examples/images/image_4.jpg"], |
| 69 | + expected_response=False, |
| 70 | + ), |
| 71 | + BoolImageTaskInput( |
| 72 | + question="Is there a rack on the left from the sofa?", |
| 73 | + images_paths=["src/rai_bench/rai_bench/examples/images/image_4.jpg"], |
| 74 | + expected_response=False, |
| 75 | + ), |
| 76 | + BoolImageTaskInput( |
| 77 | + question="Is there a plant behind the rack?", |
| 78 | + images_paths=["src/rai_bench/rai_bench/examples/images/image_5.jpg"], |
| 79 | + expected_response=True, |
| 80 | + ), |
| 81 | + BoolImageTaskInput( |
| 82 | + question="Is there a plant on the right from the window?", |
| 83 | + images_paths=["src/rai_bench/rai_bench/examples/images/image_6.jpg"], |
| 84 | + expected_response=False, |
| 85 | + ), |
| 86 | + BoolImageTaskInput( |
| 87 | + question="Is there a pillow on the armchain?", |
| 88 | + images_paths=["src/rai_bench/rai_bench/examples/images/image_7.jpg"], |
| 89 | + expected_response=True, |
| 90 | + ), |
| 91 | + BoolImageTaskInput( |
| 92 | + question="Is there a red pillow on the armchair?", |
| 93 | + images_paths=["src/rai_bench/rai_bench/examples/images/image_7.jpg"], |
| 94 | + expected_response=False, |
| 95 | + ), |
| 96 | +] |
| 97 | + |
| 98 | +tasks: Sequence[SpatialReasoningAgentTask] = [ |
| 99 | + BoolImageTask(task_input=input_item) for input_item in inputs |
| 100 | +] |
0 commit comments