@eyepop.ai/eyepop 1.1.1 → 1.2.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 +29 -2
- package/dist/eyepop.index.d.ts +29 -2
- package/dist/eyepop.index.js +17 -0
- package/dist/eyepop.index.js.map +1 -1
- package/dist/eyepop.index.mjs +16 -0
- package/dist/eyepop.index.mjs.map +1 -1
- package/dist/eyepop.min.js +1 -1
- package/package.json +1 -1
package/dist/eyepop.index.d.mts
CHANGED
|
@@ -559,12 +559,16 @@ declare enum ModelStatus {
|
|
|
559
559
|
available = "available",
|
|
560
560
|
published = "published"
|
|
561
561
|
}
|
|
562
|
+
interface ModelMetrics {
|
|
563
|
+
cpr?: number[][3];
|
|
564
|
+
}
|
|
562
565
|
interface Model {
|
|
563
566
|
uuid: string;
|
|
564
567
|
name: string;
|
|
565
568
|
description?: string;
|
|
566
569
|
type: ModelType;
|
|
567
570
|
status: ModelStatus;
|
|
571
|
+
metrics?: ModelMetrics;
|
|
568
572
|
account_uuid: string;
|
|
569
573
|
created_at: Date;
|
|
570
574
|
updated_at: Date;
|
|
@@ -580,6 +584,27 @@ interface ModelUpdate {
|
|
|
580
584
|
name: string;
|
|
581
585
|
description?: string;
|
|
582
586
|
}
|
|
587
|
+
declare enum ModelTrainingStage {
|
|
588
|
+
waiting = "waiting",
|
|
589
|
+
scheduling = "scheduling",
|
|
590
|
+
preparing = "preparing",
|
|
591
|
+
training = "training",
|
|
592
|
+
exporting = "exporting"
|
|
593
|
+
}
|
|
594
|
+
interface ModelSample {
|
|
595
|
+
asset_uuid: string;
|
|
596
|
+
prediction: Prediction;
|
|
597
|
+
}
|
|
598
|
+
interface ModelTrainingProgress {
|
|
599
|
+
stage: ModelTrainingStage;
|
|
600
|
+
queue_length?: number;
|
|
601
|
+
started_at: Date;
|
|
602
|
+
finished_at?: Date;
|
|
603
|
+
metrics?: ModelMetrics;
|
|
604
|
+
samples?: ModelSample[];
|
|
605
|
+
remaining_seconds_min?: number;
|
|
606
|
+
remaining_seconds_max?: number;
|
|
607
|
+
}
|
|
583
608
|
declare enum ChangeType {
|
|
584
609
|
dataset_added = "dataset_added",
|
|
585
610
|
dataset_removed = "dataset_removed",
|
|
@@ -592,7 +617,8 @@ declare enum ChangeType {
|
|
|
592
617
|
model_added = "model_added",
|
|
593
618
|
model_removed = "model_removed",
|
|
594
619
|
model_modified = "model_modified",
|
|
595
|
-
model_status_modified = "model_status_modified"
|
|
620
|
+
model_status_modified = "model_status_modified",
|
|
621
|
+
model_progress = "model_progress"
|
|
596
622
|
}
|
|
597
623
|
interface ChangeEvent {
|
|
598
624
|
change_type: ChangeType;
|
|
@@ -637,6 +663,7 @@ declare class DataEndpoint extends Endpoint<DataEndpoint> {
|
|
|
637
663
|
listModels(): Promise<Model[]>;
|
|
638
664
|
createModel(dataset_uuid: string, dataset_version: number, data: ModelCreate): Promise<Model>;
|
|
639
665
|
getModel(model_uuid: string): Promise<Model>;
|
|
666
|
+
getModelTrainingProgress(model_uuid: string): Promise<ModelTrainingProgress>;
|
|
640
667
|
updateModel(model_uuid: string, data: ModelUpdate): Promise<Model>;
|
|
641
668
|
deleteModel(model_uuid: string): Promise<void>;
|
|
642
669
|
publishModel(model_uuid: string): Promise<Model>;
|
|
@@ -768,4 +795,4 @@ declare namespace EyePop {
|
|
|
768
795
|
function dataEndpoint(opts?: DataOptions): DataEndpoint;
|
|
769
796
|
}
|
|
770
797
|
|
|
771
|
-
export { AbstractJob, type Annotation, AnnotationType, type Asset, AssetStatus, type Auth0Options, type Authentication, type AutoAnnotateParams, type BaseComponent, type Box, type ChangeEvent, ChangeType, type ComponentFinderComponent, type Contour, type ContourFinderComponent, ContourType, DataEndpoint, type DataOptions, type DataSession, type Dataset, type DatasetCreate, type DatasetUpdate, type DatasetVersion, type DatasetVersionAssetStats, Endpoint, EndpointState, EyePop, type FileSource, type ForwardComponent, ForwardOperatorType, type InferenceComponent, InferenceType, type IngressEvent, type LiveMedia, type LiveSource, LoadFromJob, LoadLiveIngressJob, type Mask, type Model, type ModelCreate, ModelFormat, type ModelInstanceDef, ModelPrecisionType, ModelStatus, ModelType, type ModelUpdate, type OAuth2Auth, type OnChangeEvent, type Options, type PathSource, type Point2d, type Point3d, type Pop, type PopComponent, PopComponentType, type PopCrop, type PopForward, type PopForwardOperator, type PredictedClass, type PredictedKeyPoint, type PredictedKeyPoints, type PredictedLabel, type PredictedMesh, type PredictedObject, type Prediction, type ResultStream, type Roi, type SecretKeyAuth, Semaphore, type Session, type SessionAuth, type Source, type SourceParams, type SourcesEntry, Stream, type StreamSource, type StreamTime, type TracingComponent, TranscodeMode, TransientPopId, UploadJob, type UrlSource, UserReview, WebrtcBase, WebrtcWhep, WebrtcWhip, WorkerEndpoint, type WorkerOptions, type WorkerSession, EyePop as default };
|
|
798
|
+
export { AbstractJob, type Annotation, AnnotationType, type Asset, AssetStatus, type Auth0Options, type Authentication, type AutoAnnotateParams, type BaseComponent, type Box, type ChangeEvent, ChangeType, type ComponentFinderComponent, type Contour, type ContourFinderComponent, ContourType, DataEndpoint, type DataOptions, type DataSession, type Dataset, type DatasetCreate, type DatasetUpdate, type DatasetVersion, type DatasetVersionAssetStats, Endpoint, EndpointState, EyePop, type FileSource, type ForwardComponent, ForwardOperatorType, type InferenceComponent, InferenceType, type IngressEvent, type LiveMedia, type LiveSource, LoadFromJob, LoadLiveIngressJob, type Mask, type Model, type ModelCreate, ModelFormat, type ModelInstanceDef, type ModelMetrics, ModelPrecisionType, type ModelSample, ModelStatus, type ModelTrainingProgress, ModelTrainingStage, ModelType, type ModelUpdate, type OAuth2Auth, type OnChangeEvent, type Options, type PathSource, type Point2d, type Point3d, type Pop, type PopComponent, PopComponentType, type PopCrop, type PopForward, type PopForwardOperator, type PredictedClass, type PredictedKeyPoint, type PredictedKeyPoints, type PredictedLabel, type PredictedMesh, type PredictedObject, type Prediction, type ResultStream, type Roi, type SecretKeyAuth, Semaphore, type Session, type SessionAuth, type Source, type SourceParams, type SourcesEntry, Stream, type StreamSource, type StreamTime, type TracingComponent, TranscodeMode, TransientPopId, UploadJob, type UrlSource, UserReview, WebrtcBase, WebrtcWhep, WebrtcWhip, WorkerEndpoint, type WorkerOptions, type WorkerSession, EyePop as default };
|
package/dist/eyepop.index.d.ts
CHANGED
|
@@ -559,12 +559,16 @@ declare enum ModelStatus {
|
|
|
559
559
|
available = "available",
|
|
560
560
|
published = "published"
|
|
561
561
|
}
|
|
562
|
+
interface ModelMetrics {
|
|
563
|
+
cpr?: number[][3];
|
|
564
|
+
}
|
|
562
565
|
interface Model {
|
|
563
566
|
uuid: string;
|
|
564
567
|
name: string;
|
|
565
568
|
description?: string;
|
|
566
569
|
type: ModelType;
|
|
567
570
|
status: ModelStatus;
|
|
571
|
+
metrics?: ModelMetrics;
|
|
568
572
|
account_uuid: string;
|
|
569
573
|
created_at: Date;
|
|
570
574
|
updated_at: Date;
|
|
@@ -580,6 +584,27 @@ interface ModelUpdate {
|
|
|
580
584
|
name: string;
|
|
581
585
|
description?: string;
|
|
582
586
|
}
|
|
587
|
+
declare enum ModelTrainingStage {
|
|
588
|
+
waiting = "waiting",
|
|
589
|
+
scheduling = "scheduling",
|
|
590
|
+
preparing = "preparing",
|
|
591
|
+
training = "training",
|
|
592
|
+
exporting = "exporting"
|
|
593
|
+
}
|
|
594
|
+
interface ModelSample {
|
|
595
|
+
asset_uuid: string;
|
|
596
|
+
prediction: Prediction;
|
|
597
|
+
}
|
|
598
|
+
interface ModelTrainingProgress {
|
|
599
|
+
stage: ModelTrainingStage;
|
|
600
|
+
queue_length?: number;
|
|
601
|
+
started_at: Date;
|
|
602
|
+
finished_at?: Date;
|
|
603
|
+
metrics?: ModelMetrics;
|
|
604
|
+
samples?: ModelSample[];
|
|
605
|
+
remaining_seconds_min?: number;
|
|
606
|
+
remaining_seconds_max?: number;
|
|
607
|
+
}
|
|
583
608
|
declare enum ChangeType {
|
|
584
609
|
dataset_added = "dataset_added",
|
|
585
610
|
dataset_removed = "dataset_removed",
|
|
@@ -592,7 +617,8 @@ declare enum ChangeType {
|
|
|
592
617
|
model_added = "model_added",
|
|
593
618
|
model_removed = "model_removed",
|
|
594
619
|
model_modified = "model_modified",
|
|
595
|
-
model_status_modified = "model_status_modified"
|
|
620
|
+
model_status_modified = "model_status_modified",
|
|
621
|
+
model_progress = "model_progress"
|
|
596
622
|
}
|
|
597
623
|
interface ChangeEvent {
|
|
598
624
|
change_type: ChangeType;
|
|
@@ -637,6 +663,7 @@ declare class DataEndpoint extends Endpoint<DataEndpoint> {
|
|
|
637
663
|
listModels(): Promise<Model[]>;
|
|
638
664
|
createModel(dataset_uuid: string, dataset_version: number, data: ModelCreate): Promise<Model>;
|
|
639
665
|
getModel(model_uuid: string): Promise<Model>;
|
|
666
|
+
getModelTrainingProgress(model_uuid: string): Promise<ModelTrainingProgress>;
|
|
640
667
|
updateModel(model_uuid: string, data: ModelUpdate): Promise<Model>;
|
|
641
668
|
deleteModel(model_uuid: string): Promise<void>;
|
|
642
669
|
publishModel(model_uuid: string): Promise<Model>;
|
|
@@ -768,4 +795,4 @@ declare namespace EyePop {
|
|
|
768
795
|
function dataEndpoint(opts?: DataOptions): DataEndpoint;
|
|
769
796
|
}
|
|
770
797
|
|
|
771
|
-
export { AbstractJob, type Annotation, AnnotationType, type Asset, AssetStatus, type Auth0Options, type Authentication, type AutoAnnotateParams, type BaseComponent, type Box, type ChangeEvent, ChangeType, type ComponentFinderComponent, type Contour, type ContourFinderComponent, ContourType, DataEndpoint, type DataOptions, type DataSession, type Dataset, type DatasetCreate, type DatasetUpdate, type DatasetVersion, type DatasetVersionAssetStats, Endpoint, EndpointState, EyePop, type FileSource, type ForwardComponent, ForwardOperatorType, type InferenceComponent, InferenceType, type IngressEvent, type LiveMedia, type LiveSource, LoadFromJob, LoadLiveIngressJob, type Mask, type Model, type ModelCreate, ModelFormat, type ModelInstanceDef, ModelPrecisionType, ModelStatus, ModelType, type ModelUpdate, type OAuth2Auth, type OnChangeEvent, type Options, type PathSource, type Point2d, type Point3d, type Pop, type PopComponent, PopComponentType, type PopCrop, type PopForward, type PopForwardOperator, type PredictedClass, type PredictedKeyPoint, type PredictedKeyPoints, type PredictedLabel, type PredictedMesh, type PredictedObject, type Prediction, type ResultStream, type Roi, type SecretKeyAuth, Semaphore, type Session, type SessionAuth, type Source, type SourceParams, type SourcesEntry, Stream, type StreamSource, type StreamTime, type TracingComponent, TranscodeMode, TransientPopId, UploadJob, type UrlSource, UserReview, WebrtcBase, WebrtcWhep, WebrtcWhip, WorkerEndpoint, type WorkerOptions, type WorkerSession, EyePop as default };
|
|
798
|
+
export { AbstractJob, type Annotation, AnnotationType, type Asset, AssetStatus, type Auth0Options, type Authentication, type AutoAnnotateParams, type BaseComponent, type Box, type ChangeEvent, ChangeType, type ComponentFinderComponent, type Contour, type ContourFinderComponent, ContourType, DataEndpoint, type DataOptions, type DataSession, type Dataset, type DatasetCreate, type DatasetUpdate, type DatasetVersion, type DatasetVersionAssetStats, Endpoint, EndpointState, EyePop, type FileSource, type ForwardComponent, ForwardOperatorType, type InferenceComponent, InferenceType, type IngressEvent, type LiveMedia, type LiveSource, LoadFromJob, LoadLiveIngressJob, type Mask, type Model, type ModelCreate, ModelFormat, type ModelInstanceDef, type ModelMetrics, ModelPrecisionType, type ModelSample, ModelStatus, type ModelTrainingProgress, ModelTrainingStage, ModelType, type ModelUpdate, type OAuth2Auth, type OnChangeEvent, type Options, type PathSource, type Point2d, type Point3d, type Pop, type PopComponent, PopComponentType, type PopCrop, type PopForward, type PopForwardOperator, type PredictedClass, type PredictedKeyPoint, type PredictedKeyPoints, type PredictedLabel, type PredictedMesh, type PredictedObject, type Prediction, type ResultStream, type Roi, type SecretKeyAuth, Semaphore, type Session, type SessionAuth, type Source, type SourceParams, type SourcesEntry, Stream, type StreamSource, type StreamTime, type TracingComponent, TranscodeMode, TransientPopId, UploadJob, type UrlSource, UserReview, WebrtcBase, WebrtcWhep, WebrtcWhip, WorkerEndpoint, type WorkerOptions, type WorkerSession, EyePop as default };
|
package/dist/eyepop.index.js
CHANGED
|
@@ -8672,6 +8672,7 @@ __export(eyepop_exports, {
|
|
|
8672
8672
|
ModelFormat: () => ModelFormat,
|
|
8673
8673
|
ModelPrecisionType: () => ModelPrecisionType,
|
|
8674
8674
|
ModelStatus: () => ModelStatus,
|
|
8675
|
+
ModelTrainingStage: () => ModelTrainingStage,
|
|
8675
8676
|
ModelType: () => ModelType,
|
|
8676
8677
|
PopComponentType: () => PopComponentType,
|
|
8677
8678
|
Semaphore: () => Semaphore,
|
|
@@ -10776,6 +10777,14 @@ var ModelStatus = /* @__PURE__ */ ((ModelStatus2) => {
|
|
|
10776
10777
|
ModelStatus2["published"] = "published";
|
|
10777
10778
|
return ModelStatus2;
|
|
10778
10779
|
})(ModelStatus || {});
|
|
10780
|
+
var ModelTrainingStage = /* @__PURE__ */ ((ModelTrainingStage2) => {
|
|
10781
|
+
ModelTrainingStage2["waiting"] = "waiting";
|
|
10782
|
+
ModelTrainingStage2["scheduling"] = "scheduling";
|
|
10783
|
+
ModelTrainingStage2["preparing"] = "preparing";
|
|
10784
|
+
ModelTrainingStage2["training"] = "training";
|
|
10785
|
+
ModelTrainingStage2["exporting"] = "exporting";
|
|
10786
|
+
return ModelTrainingStage2;
|
|
10787
|
+
})(ModelTrainingStage || {});
|
|
10779
10788
|
var ChangeType = /* @__PURE__ */ ((ChangeType2) => {
|
|
10780
10789
|
ChangeType2["dataset_added"] = "dataset_added";
|
|
10781
10790
|
ChangeType2["dataset_removed"] = "dataset_removed";
|
|
@@ -10789,6 +10798,7 @@ var ChangeType = /* @__PURE__ */ ((ChangeType2) => {
|
|
|
10789
10798
|
ChangeType2["model_removed"] = "model_removed";
|
|
10790
10799
|
ChangeType2["model_modified"] = "model_modified";
|
|
10791
10800
|
ChangeType2["model_status_modified"] = "model_status_modified";
|
|
10801
|
+
ChangeType2["model_progress"] = "model_progress";
|
|
10792
10802
|
return ChangeType2;
|
|
10793
10803
|
})(ChangeType || {});
|
|
10794
10804
|
|
|
@@ -11121,6 +11131,11 @@ var DataEndpoint = class extends Endpoint {
|
|
|
11121
11131
|
method: "GET"
|
|
11122
11132
|
});
|
|
11123
11133
|
}
|
|
11134
|
+
async getModelTrainingProgress(model_uuid) {
|
|
11135
|
+
return this.request(`/models/${model_uuid}/progress`, {
|
|
11136
|
+
method: "GET"
|
|
11137
|
+
});
|
|
11138
|
+
}
|
|
11124
11139
|
async updateModel(model_uuid, data) {
|
|
11125
11140
|
return this.request(`/models/${model_uuid}`, {
|
|
11126
11141
|
method: "PATCH",
|
|
@@ -11207,6 +11222,7 @@ var DataEndpoint = class extends Endpoint {
|
|
|
11207
11222
|
case "model_modified" /* model_modified */:
|
|
11208
11223
|
case "model_removed" /* model_removed */:
|
|
11209
11224
|
case "model_status_modified" /* model_status_modified */:
|
|
11225
|
+
case "model_progress" /* model_progress */:
|
|
11210
11226
|
const event_handlers = this._dataset_uuid_to_event_handlers.get(change_event.dataset_uuid);
|
|
11211
11227
|
this._logger.debug("dispatchChangeEvent event_handlers=%s", event_handlers);
|
|
11212
11228
|
if (event_handlers !== void 0) {
|
|
@@ -11385,6 +11401,7 @@ var eyepop_default = EyePop;
|
|
|
11385
11401
|
ModelFormat,
|
|
11386
11402
|
ModelPrecisionType,
|
|
11387
11403
|
ModelStatus,
|
|
11404
|
+
ModelTrainingStage,
|
|
11388
11405
|
ModelType,
|
|
11389
11406
|
PopComponentType,
|
|
11390
11407
|
Semaphore,
|