You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

imageClassification.go 589 B

1234567891011121314151617181920212223242526
  1. package imageInference
  2. import "gitlink.org.cn/JointCloud/pcm-coordinator/internal/scheduler/service/inference"
  3. const (
  4. CLASSIFICATION = "image"
  5. CLASSIFICATION_AiTYPE = "11"
  6. )
  7. type ImageClassification struct {
  8. }
  9. func NewImageClassification() *ImageClassification {
  10. return &ImageClassification{}
  11. }
  12. func (ic *ImageClassification) AppendRoute(urls []*inference.InferUrl) error {
  13. for i, _ := range urls {
  14. urls[i].Url = urls[i].Url + inference.FORWARD_SLASH + CLASSIFICATION
  15. }
  16. return nil
  17. }
  18. func (ic *ImageClassification) GetAiType() string {
  19. return CLASSIFICATION_AiTYPE
  20. }

PCM is positioned as Software stack over Cloud, aiming to build the standards and ecology of heterogeneous cloud collaboration for JCC in a non intrusive and autonomous peer-to-peer manner.