From 76f6943f06d81c0066ed1709929947bfeef7c358 Mon Sep 17 00:00:00 2001 From: Roman Donchenko Date: Thu, 27 Jun 2024 14:53:51 +0300 Subject: [PATCH] Remove the "classifier" compatibility alias I adjusted the Roboflow/HF function code to not produce this value anymore, so this alias is no longer needed. --- cvat-core/src/core-types.ts | 2 +- cvat-core/src/ml-model.ts | 2 -- 2 files changed, 1 insertion(+), 3 deletions(-) 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; }