|
@@ -5,13 +5,13 @@ Consequently, to create a `Dataset` instance an [`Annotation`](../annotations.py
|
|
|
|
|
|
|
|
|
```python
|
|
|
-# replace NAB_Annotations with CUB_Annotations to load CUB200-2011 annotations
|
|
|
-from cvdatasets import NAB_Annotations, Dataset
|
|
|
+from cvdatasets import FileListAnnotations
|
|
|
+from cvdatasets import Dataset
|
|
|
|
|
|
-annot = NAB_Annotations("path/to/nab/folder")
|
|
|
+annot = FileListAnnotations("path/to/annotation_folder")
|
|
|
|
|
|
-train_data = Dataset(uuids=annot.train_uuids, annotations=annot)
|
|
|
-test_data = Dataset(uuids=annot.test_uuids, annotations=annot)
|
|
|
+train_data = annot.new_dataset(dataset_cls=Dataset, subset="train")
|
|
|
+test_data = annot.new_dataset(dataset_cls=Dataset, subset="test")
|
|
|
```
|
|
|
|
|
|
## Working with part and bounding box annotations
|