...
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 ExportFlavor string
41
42 const (
43
44 Linux ExportFlavor = "Linux"
45
46 Windows ExportFlavor = "Windows"
47 )
48
49
50 func PossibleExportFlavorValues() []ExportFlavor {
51 return []ExportFlavor{Linux, Windows}
52 }
53
54
55 type ExportPlatform string
56
57 const (
58
59 CoreML ExportPlatform = "CoreML"
60
61 DockerFile ExportPlatform = "DockerFile"
62
63 ONNX ExportPlatform = "ONNX"
64
65 TensorFlow ExportPlatform = "TensorFlow"
66 )
67
68
69 func PossibleExportPlatformValues() []ExportPlatform {
70 return []ExportPlatform{CoreML, DockerFile, ONNX, TensorFlow}
71 }
72
73
74 type ExportStatusModel string
75
76 const (
77
78 Done ExportStatusModel = "Done"
79
80 Exporting ExportStatusModel = "Exporting"
81
82 Failed ExportStatusModel = "Failed"
83 )
84
85
86 func PossibleExportStatusModelValues() []ExportStatusModel {
87 return []ExportStatusModel{Done, Exporting, Failed}
88 }
89
90
91 type ImageUploadStatus string
92
93 const (
94
95 ErrorImageFormat ImageUploadStatus = "ErrorImageFormat"
96
97 ErrorImageSize ImageUploadStatus = "ErrorImageSize"
98
99 ErrorLimitExceed ImageUploadStatus = "ErrorLimitExceed"
100
101 ErrorRegionLimitExceed ImageUploadStatus = "ErrorRegionLimitExceed"
102
103 ErrorSource ImageUploadStatus = "ErrorSource"
104
105 ErrorStorage ImageUploadStatus = "ErrorStorage"
106
107 ErrorTagLimitExceed ImageUploadStatus = "ErrorTagLimitExceed"
108
109 ErrorUnknown ImageUploadStatus = "ErrorUnknown"
110
111 OK ImageUploadStatus = "OK"
112
113 OKDuplicate ImageUploadStatus = "OKDuplicate"
114 )
115
116
117 func PossibleImageUploadStatusValues() []ImageUploadStatus {
118 return []ImageUploadStatus{ErrorImageFormat, ErrorImageSize, ErrorLimitExceed, ErrorRegionLimitExceed, ErrorSource, ErrorStorage, ErrorTagLimitExceed, ErrorUnknown, OK, OKDuplicate}
119 }
120
121
122 type OrderBy string
123
124 const (
125
126 Newest OrderBy = "Newest"
127
128 Oldest OrderBy = "Oldest"
129
130 Suggested OrderBy = "Suggested"
131 )
132
133
134 func PossibleOrderByValues() []OrderBy {
135 return []OrderBy{Newest, Oldest, Suggested}
136 }
137
View as plain text