@eyepop.ai/eyepop 1.8.3 → 1.9.0
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.mjs
CHANGED
|
@@ -10941,6 +10941,11 @@ var ExportedBy = /* @__PURE__ */ ((ExportedBy2) => {
|
|
|
10941
10941
|
ExportedBy2["qc_ai_hub"] = "qc_ai_hub";
|
|
10942
10942
|
return ExportedBy2;
|
|
10943
10943
|
})(ExportedBy || {});
|
|
10944
|
+
var ArtifactType = /* @__PURE__ */ ((ArtifactType3) => {
|
|
10945
|
+
ArtifactType3["eyepop_bundle"] = "eyepop_bundle";
|
|
10946
|
+
ArtifactType3["weights_file"] = "weights_file";
|
|
10947
|
+
return ArtifactType3;
|
|
10948
|
+
})(ArtifactType || {});
|
|
10944
10949
|
var ModelTrainingStage = /* @__PURE__ */ ((ModelTrainingStage2) => {
|
|
10945
10950
|
ModelTrainingStage2["waiting"] = "waiting";
|
|
10946
10951
|
ModelTrainingStage2["scheduling"] = "scheduling";
|
|
@@ -11392,6 +11397,19 @@ var DataEndpoint = class extends Endpoint {
|
|
|
11392
11397
|
body: JSON.stringify(params)
|
|
11393
11398
|
});
|
|
11394
11399
|
}
|
|
11400
|
+
async downloadModelArtifacts(model_uuid, model_formats, device_name, artifact_type) {
|
|
11401
|
+
const artifactTypeQuery = artifact_type ? `artifact_type=${artifact_type}&` : "";
|
|
11402
|
+
const deviceNameQuery = device_name ? `device_name=${encodeURIComponent(device_name)}&` : "";
|
|
11403
|
+
let modelFormatQuery = "";
|
|
11404
|
+
if (model_formats) {
|
|
11405
|
+
for (const model_format of model_formats) {
|
|
11406
|
+
modelFormatQuery += `model_format=${model_format}&`;
|
|
11407
|
+
}
|
|
11408
|
+
}
|
|
11409
|
+
return this.request(`/exports/model_artifacts/?model_uuid=${model_uuid}&${artifactTypeQuery}${deviceNameQuery}${modelFormatQuery}`, {
|
|
11410
|
+
method: "GET"
|
|
11411
|
+
});
|
|
11412
|
+
}
|
|
11395
11413
|
addAccountEventHandler(eventHandler) {
|
|
11396
11414
|
this._account_event_handlers.push(eventHandler);
|
|
11397
11415
|
}
|
|
@@ -11626,6 +11644,7 @@ var index_default = EyePop;
|
|
|
11626
11644
|
export {
|
|
11627
11645
|
AbstractJob,
|
|
11628
11646
|
AnnotationType,
|
|
11647
|
+
ArtifactType,
|
|
11629
11648
|
AssetStatus,
|
|
11630
11649
|
ChangeType,
|
|
11631
11650
|
ContourType,
|