Documentation ¶
Index ¶
- func CreateBoundingBoxFeaturesCanonical(probabilities [][]float32, classes [][]float32, boxes [][][4]float32, ...) []dlframework.Features
- func CreateClassificationFeaturesCanonical(probabilities [][]float32, labels []string) []dlframework.Features
- func CreateGeneralFeaturesCanonical(feat [][]byte) []dlframework.Features
- func CreateInstanceSegmentFeaturesCanonical(probabilities [][]float32, classes [][]float32, boxes [][][4]float32, ...) []dlframework.Features
- func CreateRawImageFeaturesCanonical(images [][][][]float32) []dlframework.Features
- func CreateSemanticSegmentFeaturesCanonical(masks [][][]int64, labels []string) []dlframework.Features
- func CreateTextFeaturesCanonical(feat [][]byte) []dlframework.Features
- func New(opts ...Option) *dlframework.Feature
- type Option
- func AppendMetadata(k string, v interface{}) Option
- func Audio(e *dlframework.Audio) Option
- func AudioType() Option
- func BoundingBox(e *dlframework.BoundingBox) Option
- func BoundingBoxIndex(index int32) Option
- func BoundingBoxLabel(label string) Option
- func BoundingBoxType() Option
- func BoundingBoxXmax(xmax float32) Option
- func BoundingBoxXmin(xmin float32) Option
- func BoundingBoxYmax(ymax float32) Option
- func BoundingBoxYmin(ymin float32) Option
- func Classification(e *dlframework.Classification) Option
- func ClassificationIndex(index int32) Option
- func ClassificationLabel(label string) Option
- func ClassificationType() Option
- func General(e *dlframework.General) Option
- func GeneralData(data []byte) Option
- func GeneralType() Option
- func GeoLocation(e *dlframework.GeoLocation) Option
- func GeoLocationType() Option
- func ID(e string) Option
- func Image(e *dlframework.Image) Option
- func ImageData(data []byte) Option
- func ImageID(id string) Option
- func ImageType() Option
- func InstanceSegment(e *dlframework.InstanceSegment) Option
- func InstanceSegmentFloatMask(mask []float32) Option
- func InstanceSegmentHeight(height int32) Option
- func InstanceSegmentIndex(index int32) Option
- func InstanceSegmentIntMask(mask []int32) Option
- func InstanceSegmentLabel(label string) Option
- func InstanceSegmentMaskType(masktype string) Option
- func InstanceSegmentType() Option
- func InstanceSegmentWidth(width int32) Option
- func InstanceSegmentXmax(xmax float32) Option
- func InstanceSegmentXmin(xmin float32) Option
- func InstanceSegmentYmax(ymax float32) Option
- func InstanceSegmentYmin(ymin float32) Option
- func Metadata(e map[string]string) Option
- func Probability(e float32) Option
- func Raw(e *dlframework.Raw) Option
- func RawImage(e *dlframework.RawImage) Option
- func RawImageChannels(channels int) Option
- func RawImageData(data interface{}) Option
- func RawImageFloat32Data(data []float32) Option
- func RawImageHeight(height int) Option
- func RawImageID(id string) Option
- func RawImageInt32Data(data []int32) Option
- func RawImageInt8Data(data []int8) Option
- func RawImageType() Option
- func RawImageUInt8Data(data []uint8) Option
- func RawImageWidth(width int) Option
- func RawType() Option
- func Region(e *dlframework.Region) Option
- func RegionType() Option
- func SemanticSegment(e *dlframework.SemanticSegment) Option
- func SemanticSegmentHeight(height int32) Option
- func SemanticSegmentIntMask(mask []int32) Option
- func SemanticSegmentLabels(labels []string) Option
- func SemanticSegmentType() Option
- func SemanticSegmentWidth(width int32) Option
- func Text(e *dlframework.Text) Option
- func TextData(data []byte) Option
- func TextType() Option
- func Type(e dlframework.FeatureType) Option
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateBoundingBoxFeaturesCanonical ¶ added in v1.2.0
func CreateClassificationFeaturesCanonical ¶ added in v1.2.0
func CreateClassificationFeaturesCanonical(probabilities [][]float32, labels []string) []dlframework.Features
func CreateGeneralFeaturesCanonical ¶ added in v1.4.0
func CreateGeneralFeaturesCanonical(feat [][]byte) []dlframework.Features
func CreateInstanceSegmentFeaturesCanonical ¶ added in v1.2.0
func CreateRawImageFeaturesCanonical ¶ added in v1.2.0
func CreateRawImageFeaturesCanonical(images [][][][]float32) []dlframework.Features
func CreateSemanticSegmentFeaturesCanonical ¶ added in v1.2.0
func CreateSemanticSegmentFeaturesCanonical(masks [][][]int64, labels []string) []dlframework.Features
func CreateTextFeaturesCanonical ¶ added in v1.3.2
func CreateTextFeaturesCanonical(feat [][]byte) []dlframework.Features
func New ¶
func New(opts ...Option) *dlframework.Feature
Types ¶
type Option ¶
type Option func(o *dlframework.Feature)
func AppendMetadata ¶
func Audio ¶
func Audio(e *dlframework.Audio) Option
func BoundingBox ¶
func BoundingBox(e *dlframework.BoundingBox) Option
func BoundingBoxIndex ¶
func BoundingBoxLabel ¶
func BoundingBoxType ¶
func BoundingBoxType() Option
func BoundingBoxXmax ¶
func BoundingBoxXmin ¶
func BoundingBoxYmax ¶
func BoundingBoxYmin ¶
func Classification ¶
func Classification(e *dlframework.Classification) Option
func ClassificationIndex ¶
func ClassificationLabel ¶
func ClassificationType ¶
func ClassificationType() Option
func General ¶ added in v1.4.0
func General(e *dlframework.General) Option
func GeneralData ¶ added in v1.4.0
func GeneralType ¶ added in v1.4.0
func GeneralType() Option
func GeoLocation ¶
func GeoLocation(e *dlframework.GeoLocation) Option
func GeoLocationType ¶
func GeoLocationType() Option
func Image ¶
func Image(e *dlframework.Image) Option
func InstanceSegment ¶
func InstanceSegment(e *dlframework.InstanceSegment) Option
func InstanceSegmentHeight ¶
func InstanceSegmentIndex ¶
func InstanceSegmentIntMask ¶
func InstanceSegmentLabel ¶
func InstanceSegmentMaskType ¶
func InstanceSegmentType ¶
func InstanceSegmentType() Option
func InstanceSegmentWidth ¶
func InstanceSegmentXmax ¶
func InstanceSegmentXmin ¶
func InstanceSegmentYmax ¶
func InstanceSegmentYmin ¶
func Probability ¶
func Raw ¶
func Raw(e *dlframework.Raw) Option
func RawImage ¶
func RawImage(e *dlframework.RawImage) Option
func RawImageChannels ¶
func RawImageData ¶
func RawImageData(data interface{}) Option
func RawImageFloat32Data ¶
func RawImageHeight ¶
func RawImageID ¶
func RawImageInt32Data ¶
func RawImageInt8Data ¶
func RawImageType ¶
func RawImageType() Option
func RawImageUInt8Data ¶
func RawImageWidth ¶
func Region ¶
func Region(e *dlframework.Region) Option
func RegionType ¶
func RegionType() Option
func SemanticSegment ¶
func SemanticSegment(e *dlframework.SemanticSegment) Option
func SemanticSegmentHeight ¶
func SemanticSegmentIntMask ¶
func SemanticSegmentLabels ¶ added in v1.4.19
func SemanticSegmentType ¶
func SemanticSegmentType() Option
func SemanticSegmentWidth ¶
func Text ¶
func Text(e *dlframework.Text) Option
func Type ¶
func Type(e dlframework.FeatureType) Option
Click to show internal directories.
Click to hide internal directories.