outputdatadescriptions
outputdatadescriptions ¶
Module for output datadescriptions
Classes¶
OutputImageDataDescription ¶
Bases: DataDescription
, ABC
DataDescription used for models with images as output (e.g. SemSeg)
Functions¶
get_output_channel_count ¶
get_output_channel_names
abstractmethod
¶
get_output_image_size
abstractmethod
¶
get_output_tensor_shape ¶
Returns the 3-dim shape of the input tensor [height, width, channel_count]
Source code in niceml/data/datadescriptions/outputdatadescriptions.py
get_use_void_class
abstractmethod
¶
OutputObjDetDataDescription ¶
Bases: DataDescription
, ABC
Abstract baseclass for OutputObjDetDataDescription
Functions¶
get_anchor_aspect_ratios
abstractmethod
¶
get_anchor_scales
abstractmethod
¶
get_anchorcount_featuremap_list ¶
Returns the anchorcount for the feature list
get_anchorcount_for_scale
abstractmethod
¶
get_anchorcount_per_feature
abstractmethod
¶
get_anchorcount_per_image ¶
Sums up all generated anchors for all feature maps and returns it.
get_base_area_side
abstractmethod
¶
get_box_variance
abstractmethod
¶
get_coordinates_count
abstractmethod
¶
Returns the count of coordinates required to represent the object (e.g. bounding box: 4)
get_featuremap_count ¶
Returns the number of feature maps. Should be the length of the featuremap_scales.
get_featuremap_scales
abstractmethod
¶
Returns the scale per feature map as int. E.g. 2 means (1024,1024) -> (512, 512) It is assumed that a feature map is always smaller than the original image.
Source code in niceml/data/datadescriptions/outputdatadescriptions.py
get_output_class_count ¶
OutputVectorDataDescription ¶
Bases: DataDescription
, ABC
DataDescription used by models with vectors as output
Functions¶
get_index_for_name ¶
Returns the index of the given output entry name(s) as int or list of indices
Source code in niceml/data/datadescriptions/outputdatadescriptions.py
get_name_for_index ¶
Returns a name or list of names for given class index or indices