Documentation
¶
Index ¶
- Variables
- func DrawBoundingBoxes(img image.Image, boxes []Box, lineWidth int, fontSize float64) (image.Image, error)
- func LoadImage(imagePath string) (image.Image, error)
- func ModelInferRequest(client triton.GRPCInferenceServiceClient, ...) (*triton.ModelInferResponse, error)
- func ModelMetadataRequest(client triton.GRPCInferenceServiceClient, modelName string, ...) (*triton.ModelMetadataResponse, error)
- func SaveImage(img image.Image, filename string) error
- func ServerLiveRequest(client triton.GRPCInferenceServiceClient) (*triton.ServerLiveResponse, error)
- func ServerReadyRequest(client triton.GRPCInferenceServiceClient) (*triton.ServerReadyResponse, error)
- type Box
- type Model
- type ModelType
- type Yolo
- type YoloNAS
- type YoloNASInt8
- type YoloTriton
- type YoloTritonConfig
Constants ¶
This section is empty.
Variables ¶
View Source
var YoloClasses = []string{
"person", "bicycle", "car", "motorcycle", "airplane", "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", "couch", "potted plant", "bed", "dining table", "toilet", "tv", "laptop", "mouse",
"remote", "keyboard", "cell phone", "microwave", "oven", "toaster", "sink", "refrigerator", "book",
"clock", "vase", "scissors", "teddy bear", "hair drier", "toothbrush",
}
Functions ¶
func DrawBoundingBoxes ¶
func ModelInferRequest ¶
func ModelInferRequest(client triton.GRPCInferenceServiceClient, modelInferRequest *triton.ModelInferRequest) (*triton.ModelInferResponse, error)
func ModelMetadataRequest ¶
func ModelMetadataRequest(client triton.GRPCInferenceServiceClient, modelName string, modelVersion string) (*triton.ModelMetadataResponse, error)
func ServerLiveRequest ¶
func ServerLiveRequest(client triton.GRPCInferenceServiceClient) (*triton.ServerLiveResponse, error)
func ServerReadyRequest ¶
func ServerReadyRequest(client triton.GRPCInferenceServiceClient) (*triton.ServerReadyResponse, error)
Types ¶
type Model ¶ added in v0.2.0
type Model interface {
GetConfig() YoloTritonConfig
PreProcess(img image.Image, targetWidth uint, targetHeight uint) (*triton.InferTensorContents, error)
PostProcess(rawOutputContents [][]byte) ([]Box, error)
}
func NewYolo ¶ added in v0.5.0
func NewYolo(cfg YoloTritonConfig, io16 bool) Model
func NewYoloNAS ¶ added in v0.2.0
func NewYoloNAS(cfg YoloTritonConfig) Model
func NewYoloNASInt8 ¶ added in v0.3.0
func NewYoloNASInt8(cfg YoloTritonConfig) Model
type Yolo ¶ added in v0.5.0
type Yolo struct {
YoloTritonConfig
// contains filtered or unexported fields
}
func (*Yolo) GetConfig ¶ added in v0.5.0
func (y *Yolo) GetConfig() YoloTritonConfig
func (*Yolo) PostProcess ¶ added in v0.5.0
func (*Yolo) PreProcess ¶ added in v0.5.0
type YoloNAS ¶ added in v0.2.0
type YoloNAS struct {
YoloTritonConfig
// contains filtered or unexported fields
}
func (*YoloNAS) GetConfig ¶ added in v0.2.0
func (y *YoloNAS) GetConfig() YoloTritonConfig
func (*YoloNAS) PostProcess ¶ added in v0.2.0
func (*YoloNAS) PreProcess ¶ added in v0.2.0
type YoloNASInt8 ¶ added in v0.3.0
type YoloNASInt8 struct {
YoloTritonConfig
// contains filtered or unexported fields
}
func (*YoloNASInt8) GetConfig ¶ added in v0.3.0
func (y *YoloNASInt8) GetConfig() YoloTritonConfig
func (*YoloNASInt8) PostProcess ¶ added in v0.3.0
func (y *YoloNASInt8) PostProcess(rawOutputContents [][]byte) ([]Box, error)
func (*YoloNASInt8) PreProcess ¶ added in v0.3.0
func (y *YoloNASInt8) PreProcess(img image.Image, targetWidth uint, targetHeight uint) (*triton.InferTensorContents, error)
type YoloTriton ¶
type YoloTriton struct {
// contains filtered or unexported fields
}
func (*YoloTriton) Close ¶
func (y *YoloTriton) Close() error
Source Files
¶
Click to show internal directories.
Click to hide internal directories.



