Skip to content

Commit 920ad7f

Browse files
author
The TensorFlow Datasets Authors
committed
Release of ASIMOV V2 datasets.
PiperOrigin-RevId: 811023489
1 parent 69bb0ab commit 920ad7f

File tree

3 files changed

+108
-0
lines changed

3 files changed

+108
-0
lines changed

tensorflow_datasets/robotics/__init__.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,10 @@
2121
from tensorflow_datasets.robotics.asimov.asimov import AsimovInjuryVal
2222
from tensorflow_datasets.robotics.asimov.asimov import AsimovMultimodalAutoVal
2323
from tensorflow_datasets.robotics.asimov.asimov import AsimovMultimodalManualVal
24+
from tensorflow_datasets.robotics.asimov.asimov_v2 import AsimovV2ConstraintsWithoutRationale
25+
from tensorflow_datasets.robotics.asimov.asimov_v2 import AsimovV2ConstraintsWithRationale
26+
from tensorflow_datasets.robotics.asimov.asimov_v2 import AsimovV2Injuries
27+
from tensorflow_datasets.robotics.asimov.asimov_v2 import AsimovV2Videos
2428
from tensorflow_datasets.robotics.mt_opt import MtOpt
2529
from tensorflow_datasets.robotics.rtx import AlohaMobile
2630
from tensorflow_datasets.robotics.rtx import AsuTableTopConvertedExternallyToRlds

tensorflow_datasets/robotics/asimov/__init__.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,3 +21,7 @@
2121
from tensorflow_datasets.robotics.asimov.asimov import AsimovInjuryVal
2222
from tensorflow_datasets.robotics.asimov.asimov import AsimovMultimodalAutoVal
2323
from tensorflow_datasets.robotics.asimov.asimov import AsimovMultimodalManualVal
24+
from tensorflow_datasets.robotics.asimov.asimov_v2 import AsimovV2ConstraintsWithoutRationale
25+
from tensorflow_datasets.robotics.asimov.asimov_v2 import AsimovV2ConstraintsWithRationale
26+
from tensorflow_datasets.robotics.asimov.asimov_v2 import AsimovV2Injuries
27+
from tensorflow_datasets.robotics.asimov.asimov_v2 import AsimovV2Videos
Lines changed: 100 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,100 @@
1+
# coding=utf-8
2+
# Copyright 2025 The TensorFlow Datasets Authors.
3+
#
4+
# Licensed under the Apache License, Version 2.0 (the "License");
5+
# you may not use this file except in compliance with the License.
6+
# You may obtain a copy of the License at
7+
#
8+
# http://www.apache.org/licenses/LICENSE-2.0
9+
#
10+
# Unless required by applicable law or agreed to in writing, software
11+
# distributed under the License is distributed on an "AS IS" BASIS,
12+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
# See the License for the specific language governing permissions and
14+
# limitations under the License.
15+
16+
"""Asimov 2.0 datasets."""
17+
18+
from tensorflow_datasets.robotics import dataset_importer_builder
19+
20+
ASIMOV_V2_CITATION = """"""
21+
22+
ASIMOV_V2_HOMEPAGE = 'https://asimov-benchmark.github.io/v2/'
23+
24+
25+
class AsimovV2Injuries(dataset_importer_builder.TFDSDatasetImporterBuilder):
26+
"""DatasetBuilder for `asimov_2_injuries` dataset."""
27+
28+
def get_description(self):
29+
return 'Situations generated from real hospital injury reports.'
30+
31+
def get_citation(self):
32+
return ASIMOV_V2_CITATION
33+
34+
def get_homepage(self):
35+
return ASIMOV_V2_HOMEPAGE
36+
37+
def get_relative_dataset_location(self):
38+
return 'asimov_v2_injuries/0.1.0'
39+
40+
41+
class AsimovV2Videos(dataset_importer_builder.TFDSDatasetImporterBuilder):
42+
"""DatasetBuilder for `asimov_2_videos` dataset."""
43+
44+
def get_description(self):
45+
return (
46+
'Photorealistic videos involving potential physical injury scenarios.'
47+
)
48+
49+
def get_citation(self):
50+
return ASIMOV_V2_CITATION
51+
52+
def get_homepage(self):
53+
return ASIMOV_V2_HOMEPAGE
54+
55+
def get_relative_dataset_location(self):
56+
return 'asimov_v2_videos/0.1.0'
57+
58+
59+
class AsimovV2ConstraintsWithoutRationale(
60+
dataset_importer_builder.TFDSDatasetImporterBuilder
61+
):
62+
"""DatasetBuilder for `asimov_v2_constraints_without_rationale` dataset."""
63+
64+
def get_description(self):
65+
return (
66+
'Dataset to evaluate the ability to reason and adhere to'
67+
' physical safety constraints imposed by embodiment limitations.'
68+
' No rationale for the answer needs to be provided.'
69+
)
70+
71+
def get_citation(self):
72+
return ASIMOV_V2_CITATION
73+
74+
def get_homepage(self):
75+
return ASIMOV_V2_HOMEPAGE
76+
77+
def get_relative_dataset_location(self):
78+
return 'asimov_v2_constraints_without_rationale/0.1.0'
79+
80+
81+
class AsimovV2ConstraintsWithRationale(
82+
dataset_importer_builder.TFDSDatasetImporterBuilder
83+
):
84+
"""DatasetBuilder for `asimov_v2_constraints_with_rationale` dataset."""
85+
86+
def get_description(self):
87+
return (
88+
'Dataset to evaluate the ability to reason and adhere to'
89+
' physical safety constraints imposed by embodiment limitations.'
90+
' Rationale for the answer needs to be provided.'
91+
)
92+
93+
def get_citation(self):
94+
return ASIMOV_V2_CITATION
95+
96+
def get_homepage(self):
97+
return ASIMOV_V2_HOMEPAGE
98+
99+
def get_relative_dataset_location(self):
100+
return 'asimov_v2_constraints_with_rationale/0.1.0'

0 commit comments

Comments
 (0)