Dataset Viewer
Duplicate
The dataset viewer is not available for this split.
Cannot load the dataset split (in streaming mode) to extract the first rows.
Error code:   StreamingRowsError
Exception:    ValueError
Message:      Invalid string class label scared@c1246e4f9f52e1ffd51fa45f8544288771785189
Traceback:    Traceback (most recent call last):
                File "/src/services/worker/src/worker/utils.py", line 99, in get_rows_or_raise
                  return get_rows(
                         ^^^^^^^^^
                File "/src/libs/libcommon/src/libcommon/utils.py", line 272, in decorator
                  return func(*args, **kwargs)
                         ^^^^^^^^^^^^^^^^^^^^^
                File "/src/services/worker/src/worker/utils.py", line 77, in get_rows
                  rows_plus_one = list(itertools.islice(ds, rows_max_number + 1))
                                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                File "/usr/local/lib/python3.12/site-packages/datasets/iterable_dataset.py", line 2543, in __iter__
                  for key, example in ex_iterable:
                                      ^^^^^^^^^^^
                File "/usr/local/lib/python3.12/site-packages/datasets/iterable_dataset.py", line 2060, in __iter__
                  for key, pa_table in self._iter_arrow():
                                       ^^^^^^^^^^^^^^^^^^
                File "/usr/local/lib/python3.12/site-packages/datasets/iterable_dataset.py", line 2092, in _iter_arrow
                  pa_table = cast_table_to_features(pa_table, self.features)
                             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                File "/usr/local/lib/python3.12/site-packages/datasets/table.py", line 2197, in cast_table_to_features
                  arrays = [cast_array_to_feature(table[name], feature) for name, feature in features.items()]
                            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                File "/usr/local/lib/python3.12/site-packages/datasets/table.py", line 1795, in wrapper
                  return pa.chunked_array([func(chunk, *args, **kwargs) for chunk in array.chunks])
                                           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                File "/usr/local/lib/python3.12/site-packages/datasets/table.py", line 1995, in cast_array_to_feature
                  return feature.cast_storage(array)
                         ^^^^^^^^^^^^^^^^^^^^^^^^^^^
                File "/usr/local/lib/python3.12/site-packages/datasets/features/features.py", line 1169, in cast_storage
                  [self._strval2int(label) if label is not None else None for label in storage.to_pylist()]
                   ^^^^^^^^^^^^^^^^^^^^^^^
                File "/usr/local/lib/python3.12/site-packages/datasets/features/features.py", line 1098, in _strval2int
                  raise ValueError(f"Invalid string class label {value}")
              ValueError: Invalid string class label scared@c1246e4f9f52e1ffd51fa45f8544288771785189

Need help to make the dataset viewer work? Make sure to review how to configure the dataset viewer, and open a discussion for direct support.

YAML Metadata Warning: empty or missing yaml metadata in repo card (https://huggingface.co/docs/hub/datasets-cards)

MICCAI Challenge 2019 Dataset

About

There are 3 datasets (which are all from different pigs) each containing 5 keyframes. Keyframes are all single captures with a unique positioning of the endoscope and several positions of the structured light illuminator. The keyframes (with the exception of the last keyframe in each dataset) have additional data from interpolation using the camera kinematics to 'warp' the depth images to the new camera coordinates. These warped depth maps could be computed yourself manually since we provide the camera transforms but we are providing them for your convenience. Please do not assume they are perfect ground truth, due to errors in the kinematics or synchronization issues between the camera and video stream, there will be small errors in the warped vertex positions.

Each keyframe should contain the following files

  • camera_calibration.yaml This is an approximate calibration of the endoscope and may be inaccurate. It is in OpenCV format and you can load this data directly using OpenCV FileStorage class. However, depth estimation methods are expected to be robust to errors in camera calibration.
  • Left_Image.png This is the left camera view used when the structured light patterns for keyframe N were captured.
  • Right_Image.png This is the right camera view.
  • left_depth_map.tiff This is the point cloud as seen by the left camera. Each pixel in the .tiff file contains an (X,Y,Z) coordinate which is the vertex position in left camera space that the pixel projects to.
  • right_depth_map.tiff This is the point cloud as seen by the right camera.
  • point_cloud.obj This is a 3D vertex model you can load into software such as blender or meshlab to view the coordinates.
  • data/rgb.mp4 This is the sequence of video frames (stacked left above right) that we captured after the structured light sequence for keyframe N. You should be able to open and decode this file with either OpenCV or ffmpeg. Standard video players (vlc/quicktime/wmp) may not work.
  • data/frame_data.tar.gz This is a archive of frames with the naming format frame_data%06d.json. Each frame_data corresponds to a single video frame where the number in the file name can be used for matching. The frame data consists of the camera transform relative to the camera position where the keyframe illuminator image was captured (Left_Image.png/Right_Image.png) and the camera calibration data for that frame.
  • data/scene_points.tar.gz This is a archive of .tiff files with the naming format scene_points%06d.tiff. Like the frame_data files above, each scene_points corresponds to a single video frame where the number in the file name can be used for matching. The .tiff files contain the vertex coordinates warped from the keyframe illuminator image. Please note that as the camera motion introduces new pixels which are not captured in the illuminator scene, these pixels do not have an associated ground truth depth. You can find these pixels as they contain the value set (0,0,0) in the .tiff file.

Helpful Notes

  • Opening .tiff files can be performed with the Python library tifffile which is installable with pip. This format allow the storage of floating point images.
  • We apologize that interpolation is missing for dataset_1/keyframe_4 is missing. This was due to a logging error.
Downloads last month
225