:py:mod:`tonic.datasets.mvsec`
==============================

.. py:module:: tonic.datasets.mvsec


Module Contents
---------------

Classes
~~~~~~~

.. autoapisummary::

   tonic.datasets.mvsec.MVSEC




.. py:class:: MVSEC(save_to: str, scene: str, transform: collections.abc.Callable | None = None, target_transform: collections.abc.Callable | None = None, transforms: collections.abc.Callable | None = None)


   Bases: :py:obj:`tonic.dataset.Dataset`

   `MVSEC <https://daniilidis-group.github.io/mvsec/>`_
   ::

       @article{zihao2018multi,
         title={The Multi Vehicle Stereo Event Camera Dataset: An Event Camera Dataset for 3D Perception},
         author={Zihao Zhu, Alex and Thakur, Dinesh and Ozaslan, Tolga and Pfrommer, Bernd and Kumar, Vijay and Daniilidis, Kostas},
         journal={arXiv e-prints},
         pages={arXiv--1801},
         year={2018}
       }

   :param save_to: Location to save files to on disk.
   :type save_to: string
   :param scene: Choose one of 4 scenes: outdoor_night, outdoor_day, indoor_flying, motorcycle.
                 If you already have the data on your system, make sure to place the .bag files in a subfolder
                 'MVSEC/{scene}/bag_files.bag'.
   :type scene: string
   :param transform: A callable of transforms to apply to events and / or images for both left and right cameras.
   :type transform: callable, optional
   :param target_transform: A callable of transforms to apply to the targets/labels.
   :type target_transform: callable, optional
   :param transforms: A callable of transforms that is applied to both data and
                      labels at the same time.
   :type transforms: callable, optional

   .. py:attribute:: resources

      

   .. py:attribute:: base_url
      :value: 'http://visiondata.cis.upenn.edu/mvsec/'

      

   .. py:attribute:: sensor_size
      :value: (346, 260, 2)

      

   .. py:attribute:: dtype

      

   .. py:attribute:: ordering

      

   .. py:method:: __getitem__(index)

      :returns: tuple of (data, targets), where data is another tuple of (events_left, events_right, imu_left,
                imu_right, images_left, images_right) and targets is a tuple of (depth_rect_left,
                depth_rect_right, pose) for ground truths.


   .. py:method:: __len__()


   .. py:method:: download()

      Downloads from a given url, places into target folder and verifies the file hash.



