Documentation
¶
Index ¶
Constants ¶
View Source
const Grid0 = 19
View Source
const Grid1 = 38
View Source
const Grid2 = 76
View Source
const InputImageSize = 608
View Source
const NumLabels = 80
Variables ¶
View Source
var Anchors = [3][3][2]int{{{116, 90}, {156, 198}, {373, 326}}, {{30, 61}, {62, 45}, {59, 119}}, {{10, 13}, {16, 30}, {33, 23}}}
View Source
var Labels = []string{"person", "bicycle", "car", "motorbike", "aeroplane", "bus", "train", "truck",
"boat", "traffic", "light", "fire", "hydrant", "stop", "sign", "parking", "meter", "bench", "bird",
"cat", "dog", "horse", "sheep", "cow", "elephant", "bear", "zebra", "giraffe", "backpack", "umbrella",
"handbag", "tie", "suitcase", "frisbee", "skis", "snowboard", "sports", "ball", "kite", "baseball", "bat",
"baseball", "glove", "skateboard", "surfboard", "tennis", "racket", "bottle", "wine", "glass", "cup", "fork",
"knife", "spoon", "bowl", "banana", "apple", "sandwich", "orange", "broccoli", "carrot", "hot", "dog", "pizza",
"donut", "cake", "chair", "sofa", "pottedplant", "bed", "diningtable", "toilet", "tvmonitor", "laptop", "mouse",
"remote", "keyboard", "cell", "phone", "microwave", "oven", "toaster", "sink", "refrigerator", "book", "clock",
"vase", "scissors", "teddy", "bear", "hair", "drier", "toothbrush"}
Functions ¶
func MaxFloat32 ¶
func MaxIndexFloat32 ¶
Types ¶
type InferenceInput ¶
type InferenceInput [InputImageSize * InputImageSize * 3]float32
type InferenceOutput ¶
type Yolov3 ¶
type Yolov3 struct {
// contains filtered or unexported fields
}
func (Yolov3) Inference ¶
func (a Yolov3) Inference(input InferenceInput) (ret InferenceOutput, err error)
func (Yolov3) PostProcess ¶
func (a Yolov3) PostProcess(output InferenceOutput) []Box
func (Yolov3) PreProcess ¶
func (a Yolov3) PreProcess(img image.Image) (ret InferenceInput)
Click to show internal directories.
Click to hide internal directories.