Dimitri Korsch f11ec7221e small fix 6 سال پیش
..
mixins d557e7c317 refactored chainer mixins 6 سال پیش
part f11ec7221e small fix 6 سال پیش
README.md 1b50fcfadb updated READMEs and added part __repr__ function 6 سال پیش
__init__.py ce1c0d36c7 added IteratorMixin in order to create chainer Iterators 6 سال پیش
image.py 9af56c3ed8 moved nabirds.dataset.utils module to nabirds.utils; fixed parts_in_bb computation 6 سال پیش

README.md

Dataset

The provided Dataset class inherits from the AnnotationsReadMixin and the PartMixing. Consequently, to create a Dataset instance an Annotation object is required (it is necessary to pass the names of the arguments!):

# replace NAB_Annotations with CUB_Annotations to load CUB200-2011 annotations
from nabirds import NAB_Annotations, Dataset

annot = NAB_Annotations("path/to/nab/folder")

train_data = Dataset(uuids=annot.train_uuids, annotations=annot)
test_data = Dataset(uuids=annot.test_uuids, annotations=annot)

Working with part and bounding box annotations

In order to enable the PartMixing functionalities pass the appropriate arguments to the initializer:

data = Dataset(
	uuids=uuids, annotations=annot,

	uniform_parts=True,

	crop_to_bb=True,
	crop_uniform=True,

	parts_in_bb=True,

	rnd_select=True,
	ratio=0.35,
	seed=21486214
)

Information about all possible PartMixing functionalities can be found here.