Slices the data based on the given query. The query is based on our Dataset Explorer feature, so any query that's working on our dataset explorer, should also work on the
You can try the explorer and query engine here: https://diffgram.com/studio/annotate/coco-dataset/explorer?
- query (str): the string of the query to slice the dataset.
SlicedDirectory object. This object inherits from
Directory classs, so all functionality and methods available in directory, are also available on
dataset = project.dataset.get('my dataset') # Get only the images with more than 3 cars and at least one pedestrian sliced_dataset = dataset.slice('labels.cars > 3 and labels.pedestrian >= 1')
Updated 10 months ago