ImageFolder.add_group

ImageFolder.add_group(key)

Add a new group to the current baseFolder with the given key.

Parameters:

key (string) – A hashable value to be used as the dictionary key in the groups dictionary

Returns:

A copy of the objectFolder

Note

If key already exists in the groups dictionary then no action is taken.

Todo

Propagate any extra attributes into the groups.