Documentation ¶
Index ¶
- type Config
- type CreateRequest
- type CreateResponse
- type InferLabel
- type Inference
- func (i *Inference) CreateModel(newModel, subject, desc string, epochs int, trial bool) (map[string]interface{}, error)
- func (i *Inference) DeleteModel(model string) error
- func (i *Inference) Destroy()
- func (i *Inference) GetModel(model string, verbose bool) map[string]interface{}
- func (i *Inference) GetModels() []string
- func (i *Inference) Infer(model, image, format string, k int) ([]InferLabel, error)
- func (i *Inference) OperateModel(model, modelPath string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CreateRequest ¶
type CreateRequest struct { // Image root path for training ImagePath string `json:"imagePath"` // Model meta information ModelPath string `json:"modelPath"` ConfigFile string `json:"configFile"` Description string `json:"desc"` Epochs int `json:"epochs"` Trial bool `json:"trial"` }
CreateRequest 모델 생성 요청
type CreateResponse ¶
type CreateResponse struct {
ModelPath string `json:"modelPath" binding:"required"`
}
CreateResponse 모델 생성 응답
type InferLabel ¶
InferLabel 이미지 추론 항목
type Inference ¶
type Inference struct {
// contains filtered or unexported fields
}
Inference 이미지 추론 모델 관리
func (*Inference) CreateModel ¶
func (i *Inference) CreateModel(newModel, subject, desc string, epochs int, trial bool) (map[string]interface{}, error)
CreateModel 추론모델 생성
func (*Inference) DeleteModel ¶
DeleteModel 모델 삭제
func (*Inference) Infer ¶
func (i *Inference) Infer(model, image, format string, k int) ([]InferLabel, error)
Infer 추론
func (*Inference) OperateModel ¶
OperateModel 생성 된 추론모델 로드
Click to show internal directories.
Click to hide internal directories.