@eyepop.ai/eyepop 1.4.0 → 1.5.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/eyepop.index.d.mts +17 -8
- package/dist/eyepop.index.d.ts +17 -8
- package/dist/eyepop.index.js +22 -4
- package/dist/eyepop.index.js.map +1 -1
- package/dist/eyepop.index.mjs +22 -4
- package/dist/eyepop.index.mjs.map +1 -1
- package/dist/eyepop.min.js +1 -1
- package/package.json +1 -1
package/dist/eyepop.index.mjs
CHANGED
|
@@ -11070,8 +11070,8 @@ var DataEndpoint = class extends Endpoint {
|
|
|
11070
11070
|
method: "GET"
|
|
11071
11071
|
});
|
|
11072
11072
|
}
|
|
11073
|
-
async updateDataset(dataset_uuid, data) {
|
|
11074
|
-
return this.request(`/datasets/${dataset_uuid}`, {
|
|
11073
|
+
async updateDataset(dataset_uuid, data, start_auto_annotate = true) {
|
|
11074
|
+
return this.request(`/datasets/${dataset_uuid}?start_auto_annotate=${start_auto_annotate}`, {
|
|
11075
11075
|
method: "PATCH",
|
|
11076
11076
|
body: JSON.stringify(data)
|
|
11077
11077
|
});
|
|
@@ -11093,6 +11093,19 @@ var DataEndpoint = class extends Endpoint {
|
|
|
11093
11093
|
method: "POST"
|
|
11094
11094
|
});
|
|
11095
11095
|
}
|
|
11096
|
+
async analyzeDatasetVersion(dataset_uuid, dataset_version) {
|
|
11097
|
+
const versionQuery = dataset_version ? `&dataset_version=${dataset_version}` : "";
|
|
11098
|
+
return this.request(`/datasets/${dataset_uuid}/analyze?${versionQuery}`, {
|
|
11099
|
+
method: "POST"
|
|
11100
|
+
});
|
|
11101
|
+
}
|
|
11102
|
+
async autoAnnotateDatasetVersion(dataset_uuid, dataset_version, max_assets) {
|
|
11103
|
+
const versionQuery = dataset_version ? `&dataset_version=${dataset_version}` : "";
|
|
11104
|
+
const maxAssetsQuery = max_assets ? `&max_assets=${max_assets}` : "";
|
|
11105
|
+
return this.request(`/datasets/${dataset_uuid}/auto_annotate?${versionQuery}${maxAssetsQuery}`, {
|
|
11106
|
+
method: "POST"
|
|
11107
|
+
});
|
|
11108
|
+
}
|
|
11096
11109
|
async deleteDatasetVersion(dataset_uuid, dataset_version) {
|
|
11097
11110
|
return this.request(`/datasets/${dataset_uuid}/delete?dataset_version=${dataset_version}`, {
|
|
11098
11111
|
method: "POST"
|
|
@@ -11203,8 +11216,8 @@ var DataEndpoint = class extends Endpoint {
|
|
|
11203
11216
|
method: "GET"
|
|
11204
11217
|
});
|
|
11205
11218
|
}
|
|
11206
|
-
async createModel(dataset_uuid, dataset_version, data) {
|
|
11207
|
-
return this.request(`/models?dataset_uuid=${dataset_uuid}&dataset_version=${dataset_version}`, {
|
|
11219
|
+
async createModel(dataset_uuid, dataset_version, data, start_training = true) {
|
|
11220
|
+
return this.request(`/models?dataset_uuid=${dataset_uuid}&dataset_version=${dataset_version}&start_training=${start_training}`, {
|
|
11208
11221
|
method: "POST",
|
|
11209
11222
|
body: JSON.stringify(data)
|
|
11210
11223
|
});
|
|
@@ -11230,6 +11243,11 @@ var DataEndpoint = class extends Endpoint {
|
|
|
11230
11243
|
method: "DELETE"
|
|
11231
11244
|
});
|
|
11232
11245
|
}
|
|
11246
|
+
async trainModel(model_uuid) {
|
|
11247
|
+
return this.request(`/models/${model_uuid}/train`, {
|
|
11248
|
+
method: "POST"
|
|
11249
|
+
});
|
|
11250
|
+
}
|
|
11233
11251
|
async publishModel(model_uuid) {
|
|
11234
11252
|
return this.request(`/models/${model_uuid}/publish`, {
|
|
11235
11253
|
method: "POST"
|