@eyepop.ai/eyepop 1.1.0 → 1.2.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.d.mts +19 -1
- package/dist/eyepop.index.d.ts +19 -1
- package/dist/eyepop.index.js +15 -3
- package/dist/eyepop.index.js.map +1 -1
- package/dist/eyepop.index.mjs +14 -3
- 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
|
@@ -580,6 +580,23 @@ interface ModelUpdate {
|
|
|
580
580
|
name: string;
|
|
581
581
|
description?: string;
|
|
582
582
|
}
|
|
583
|
+
declare enum ModelTrainingStage {
|
|
584
|
+
waiting = "waiting",
|
|
585
|
+
scheduling = "scheduling",
|
|
586
|
+
preparing = "preparing",
|
|
587
|
+
training = "training",
|
|
588
|
+
exporting = "exporting"
|
|
589
|
+
}
|
|
590
|
+
interface ModelTrainingProgress {
|
|
591
|
+
stage: ModelTrainingStage;
|
|
592
|
+
queue_length?: number;
|
|
593
|
+
started_at: Date;
|
|
594
|
+
finished_at?: Date;
|
|
595
|
+
best_cpr?: number[][3];
|
|
596
|
+
sample_asset_uuids?: string[];
|
|
597
|
+
remaining_seconds_min?: number;
|
|
598
|
+
remaining_seconds_max?: number;
|
|
599
|
+
}
|
|
583
600
|
declare enum ChangeType {
|
|
584
601
|
dataset_added = "dataset_added",
|
|
585
602
|
dataset_removed = "dataset_removed",
|
|
@@ -637,6 +654,7 @@ declare class DataEndpoint extends Endpoint<DataEndpoint> {
|
|
|
637
654
|
listModels(): Promise<Model[]>;
|
|
638
655
|
createModel(dataset_uuid: string, dataset_version: number, data: ModelCreate): Promise<Model>;
|
|
639
656
|
getModel(model_uuid: string): Promise<Model>;
|
|
657
|
+
getModelTrainingProgress(model_uuid: string): Promise<ModelTrainingProgress>;
|
|
640
658
|
updateModel(model_uuid: string, data: ModelUpdate): Promise<Model>;
|
|
641
659
|
deleteModel(model_uuid: string): Promise<void>;
|
|
642
660
|
publishModel(model_uuid: string): Promise<Model>;
|
|
@@ -768,4 +786,4 @@ declare namespace EyePop {
|
|
|
768
786
|
function dataEndpoint(opts?: DataOptions): DataEndpoint;
|
|
769
787
|
}
|
|
770
788
|
|
|
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 };
|
|
789
|
+
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, 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
|
@@ -580,6 +580,23 @@ interface ModelUpdate {
|
|
|
580
580
|
name: string;
|
|
581
581
|
description?: string;
|
|
582
582
|
}
|
|
583
|
+
declare enum ModelTrainingStage {
|
|
584
|
+
waiting = "waiting",
|
|
585
|
+
scheduling = "scheduling",
|
|
586
|
+
preparing = "preparing",
|
|
587
|
+
training = "training",
|
|
588
|
+
exporting = "exporting"
|
|
589
|
+
}
|
|
590
|
+
interface ModelTrainingProgress {
|
|
591
|
+
stage: ModelTrainingStage;
|
|
592
|
+
queue_length?: number;
|
|
593
|
+
started_at: Date;
|
|
594
|
+
finished_at?: Date;
|
|
595
|
+
best_cpr?: number[][3];
|
|
596
|
+
sample_asset_uuids?: string[];
|
|
597
|
+
remaining_seconds_min?: number;
|
|
598
|
+
remaining_seconds_max?: number;
|
|
599
|
+
}
|
|
583
600
|
declare enum ChangeType {
|
|
584
601
|
dataset_added = "dataset_added",
|
|
585
602
|
dataset_removed = "dataset_removed",
|
|
@@ -637,6 +654,7 @@ declare class DataEndpoint extends Endpoint<DataEndpoint> {
|
|
|
637
654
|
listModels(): Promise<Model[]>;
|
|
638
655
|
createModel(dataset_uuid: string, dataset_version: number, data: ModelCreate): Promise<Model>;
|
|
639
656
|
getModel(model_uuid: string): Promise<Model>;
|
|
657
|
+
getModelTrainingProgress(model_uuid: string): Promise<ModelTrainingProgress>;
|
|
640
658
|
updateModel(model_uuid: string, data: ModelUpdate): Promise<Model>;
|
|
641
659
|
deleteModel(model_uuid: string): Promise<void>;
|
|
642
660
|
publishModel(model_uuid: string): Promise<Model>;
|
|
@@ -768,4 +786,4 @@ declare namespace EyePop {
|
|
|
768
786
|
function dataEndpoint(opts?: DataOptions): DataEndpoint;
|
|
769
787
|
}
|
|
770
788
|
|
|
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 };
|
|
789
|
+
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, 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";
|
|
@@ -10957,9 +10966,6 @@ var DataEndpoint = class extends Endpoint {
|
|
|
10957
10966
|
if (!baseUrl || !client) {
|
|
10958
10967
|
return Promise.reject("endpoint not connected");
|
|
10959
10968
|
}
|
|
10960
|
-
if (!disableAuth && this.options().useCookie) {
|
|
10961
|
-
disableAuth = true;
|
|
10962
|
-
}
|
|
10963
10969
|
let response = await this.fetchWithRetry(async () => {
|
|
10964
10970
|
const session = await this.session();
|
|
10965
10971
|
const headers = {
|
|
@@ -11124,6 +11130,11 @@ var DataEndpoint = class extends Endpoint {
|
|
|
11124
11130
|
method: "GET"
|
|
11125
11131
|
});
|
|
11126
11132
|
}
|
|
11133
|
+
async getModelTrainingProgress(model_uuid) {
|
|
11134
|
+
return this.request(`/models/${model_uuid}/progress`, {
|
|
11135
|
+
method: "GET"
|
|
11136
|
+
});
|
|
11137
|
+
}
|
|
11127
11138
|
async updateModel(model_uuid, data) {
|
|
11128
11139
|
return this.request(`/models/${model_uuid}`, {
|
|
11129
11140
|
method: "PATCH",
|
|
@@ -11388,6 +11399,7 @@ var eyepop_default = EyePop;
|
|
|
11388
11399
|
ModelFormat,
|
|
11389
11400
|
ModelPrecisionType,
|
|
11390
11401
|
ModelStatus,
|
|
11402
|
+
ModelTrainingStage,
|
|
11391
11403
|
ModelType,
|
|
11392
11404
|
PopComponentType,
|
|
11393
11405
|
Semaphore,
|