...
1 package training
2
3
4
5
6
7
8
9
10 type Classifier string
11
12 const (
13
14 Multiclass Classifier = "Multiclass"
15
16 Multilabel Classifier = "Multilabel"
17 )
18
19
20 func PossibleClassifierValues() []Classifier {
21 return []Classifier{Multiclass, Multilabel}
22 }
23
24
25 type DomainType string
26
27 const (
28
29 Classification DomainType = "Classification"
30
31 ObjectDetection DomainType = "ObjectDetection"
32 )
33
34
35 func PossibleDomainTypeValues() []DomainType {
36 return []DomainType{Classification, ObjectDetection}
37 }
38
39
40 type ExportFlavorModel string
41
42 const (
43
44 Linux ExportFlavorModel = "Linux"
45
46 ONNX10 ExportFlavorModel = "ONNX10"
47
48 ONNX12 ExportFlavorModel = "ONNX12"
49
50 Windows ExportFlavorModel = "Windows"
51 )
52
53
54 func PossibleExportFlavorModelValues() []ExportFlavorModel {
55 return []ExportFlavorModel{Linux, ONNX10, ONNX12, Windows}
56 }
57
58
59 type ExportPlatformModel string
60
61 const (
62
63 CoreML ExportPlatformModel = "CoreML"
64
65 DockerFile ExportPlatformModel = "DockerFile"
66
67 ONNX ExportPlatformModel = "ONNX"
68
69 TensorFlow ExportPlatformModel = "TensorFlow"
70 )
71
72
73 func PossibleExportPlatformModelValues() []ExportPlatformModel {
74 return []ExportPlatformModel{CoreML, DockerFile, ONNX, TensorFlow}
75 }
76
77
78 type ExportStatusModel string
79
80 const (
81
82 Done ExportStatusModel = "Done"
83
84 Exporting ExportStatusModel = "Exporting"
85
86 Failed ExportStatusModel = "Failed"
87 )
88
89
90 func PossibleExportStatusModelValues() []ExportStatusModel {
91 return []ExportStatusModel{Done, Exporting, Failed}
92 }
93
94
95 type ImageCreateStatus string
96
97 const (
98
99 ErrorImageFormat ImageCreateStatus = "ErrorImageFormat"
100
101 ErrorImageSize ImageCreateStatus = "ErrorImageSize"
102
103 ErrorLimitExceed ImageCreateStatus = "ErrorLimitExceed"
104
105 ErrorNegativeAndRegularTagOnSameImage ImageCreateStatus = "ErrorNegativeAndRegularTagOnSameImage"
106
107 ErrorRegionLimitExceed ImageCreateStatus = "ErrorRegionLimitExceed"
108
109 ErrorSource ImageCreateStatus = "ErrorSource"
110
111 ErrorStorage ImageCreateStatus = "ErrorStorage"
112
113 ErrorTagLimitExceed ImageCreateStatus = "ErrorTagLimitExceed"
114
115 ErrorUnknown ImageCreateStatus = "ErrorUnknown"
116
117 OK ImageCreateStatus = "OK"
118
119 OKDuplicate ImageCreateStatus = "OKDuplicate"
120 )
121
122
123 func PossibleImageCreateStatusValues() []ImageCreateStatus {
124 return []ImageCreateStatus{ErrorImageFormat, ErrorImageSize, ErrorLimitExceed, ErrorNegativeAndRegularTagOnSameImage, ErrorRegionLimitExceed, ErrorSource, ErrorStorage, ErrorTagLimitExceed, ErrorUnknown, OK, OKDuplicate}
125 }
126
127
128 type OrderBy string
129
130 const (
131
132 Newest OrderBy = "Newest"
133
134 Oldest OrderBy = "Oldest"
135
136 Suggested OrderBy = "Suggested"
137 )
138
139
140 func PossibleOrderByValues() []OrderBy {
141 return []OrderBy{Newest, Oldest, Suggested}
142 }
143
144
145 type TagType string
146
147 const (
148
149 Negative TagType = "Negative"
150
151 Regular TagType = "Regular"
152 )
153
154
155 func PossibleTagTypeValues() []TagType {
156 return []TagType{Negative, Regular}
157 }
158
View as plain text