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 YoloNAS
- type YoloNASInt8
- type YoloTriton
- type YoloTritonConfig
- type YoloV8
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 NewYoloNAS ¶ added in v0.2.0
func NewYoloNAS(cfg YoloTritonConfig) Model
func NewYoloNASInt8 ¶ added in v0.3.0
func NewYoloNASInt8(cfg YoloTritonConfig) Model
func NewYoloV8 ¶ added in v0.2.0
func NewYoloV8(cfg YoloTritonConfig) Model
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
type YoloTritonConfig ¶
type YoloV8 ¶ added in v0.2.0
type YoloV8 struct { YoloTritonConfig // contains filtered or unexported fields }
func (*YoloV8) GetConfig ¶ added in v0.2.0
func (y *YoloV8) GetConfig() YoloTritonConfig
func (*YoloV8) PostProcess ¶ added in v0.2.0
func (*YoloV8) PreProcess ¶ added in v0.2.0
Source Files
¶
Click to show internal directories.
Click to hide internal directories.