diff --git a/cvat-core/src/core-types.ts b/cvat-core/src/core-types.ts index e72e32041f00..0edb2dce84cf 100644 --- a/cvat-core/src/core-types.ts +++ b/cvat-core/src/core-types.ts @@ -38,7 +38,7 @@ export interface SerializedModel { labels_v2?: MLModelLabel[]; version?: number; description?: string; - kind?: ModelKind | 'classifier'; + kind?: ModelKind; type?: string; return_type?: ModelReturnType; owner?: any; diff --git a/cvat-core/src/ml-model.ts b/cvat-core/src/ml-model.ts index e632328d6250..663728d7b16d 100644 --- a/cvat-core/src/ml-model.ts +++ b/cvat-core/src/ml-model.ts @@ -40,8 +40,6 @@ export default class MLModel { } public get kind(): ModelKind { - // compatibility alias; TODO: remove this - if (this.serialized.kind === 'classifier') return ModelKind.DETECTOR; return this.serialized.kind; }