SysCV / vis4d

A modular library for visual 4D scene understanding
https://docs.vis.xyz/4d/index.html
Apache License 2.0
18 stars 2 forks source link

Extension of data backends #94

Closed tobiasfshr closed 1 year ago

tobiasfshr commented 1 year ago

This PR adds listdir and isfile functionalities to all backends. This is useful when we need to inspect the folder structure of a dataset inside a zip or HDF5 file.

Example:

from vis4d.data.io import HDF5Backend
data_backend = HDF5Backend()
all_entries = data_backend.listdir(data_path)
all_files = [data_backend.isfile(data_path + name) for name in all_entries]