...
1 package training
2
3
4
5
6
7
8
9
10 type DomainType string
11
12 const (
13
14 Classification DomainType = "Classification"
15
16 ObjectDetection DomainType = "ObjectDetection"
17 )
18
19
20 func PossibleDomainTypeValues() []DomainType {
21 return []DomainType{Classification, ObjectDetection}
22 }
23
24
25 type ExportFlavor string
26
27 const (
28
29 Linux ExportFlavor = "Linux"
30
31 Windows ExportFlavor = "Windows"
32 )
33
34
35 func PossibleExportFlavorValues() []ExportFlavor {
36 return []ExportFlavor{Linux, Windows}
37 }
38
39
40 type ExportPlatform string
41
42 const (
43
44 CoreML ExportPlatform = "CoreML"
45
46 DockerFile ExportPlatform = "DockerFile"
47
48 ONNX ExportPlatform = "ONNX"
49
50 TensorFlow ExportPlatform = "TensorFlow"
51 )
52
53
54 func PossibleExportPlatformValues() []ExportPlatform {
55 return []ExportPlatform{CoreML, DockerFile, ONNX, TensorFlow}
56 }
57
58
59 type ExportStatusModel string
60
61 const (
62
63 Done ExportStatusModel = "Done"
64
65 Exporting ExportStatusModel = "Exporting"
66
67 Failed ExportStatusModel = "Failed"
68 )
69
70
71 func PossibleExportStatusModelValues() []ExportStatusModel {
72 return []ExportStatusModel{Done, Exporting, Failed}
73 }
74
75
76 type ImageUploadStatus string
77
78 const (
79
80 ErrorImageFormat ImageUploadStatus = "ErrorImageFormat"
81
82 ErrorImageSize ImageUploadStatus = "ErrorImageSize"
83
84 ErrorLimitExceed ImageUploadStatus = "ErrorLimitExceed"
85
86 ErrorRegionLimitExceed ImageUploadStatus = "ErrorRegionLimitExceed"
87
88 ErrorSource ImageUploadStatus = "ErrorSource"
89
90 ErrorStorage ImageUploadStatus = "ErrorStorage"
91
92 ErrorTagLimitExceed ImageUploadStatus = "ErrorTagLimitExceed"
93
94 ErrorUnknown ImageUploadStatus = "ErrorUnknown"
95
96 OK ImageUploadStatus = "OK"
97
98 OKDuplicate ImageUploadStatus = "OKDuplicate"
99 )
100
101
102 func PossibleImageUploadStatusValues() []ImageUploadStatus {
103 return []ImageUploadStatus{ErrorImageFormat, ErrorImageSize, ErrorLimitExceed, ErrorRegionLimitExceed, ErrorSource, ErrorStorage, ErrorTagLimitExceed, ErrorUnknown, OK, OKDuplicate}
104 }
105
106
107 type OrderBy string
108
109 const (
110
111 Newest OrderBy = "Newest"
112
113 Oldest OrderBy = "Oldest"
114
115 Suggested OrderBy = "Suggested"
116 )
117
118
119 func PossibleOrderByValues() []OrderBy {
120 return []OrderBy{Newest, Oldest, Suggested}
121 }
122
View as plain text