Skip to content

Commit

Permalink
Remove the "classifier" compatibility alias (#8096)
Browse files Browse the repository at this point in the history
I adjusted the Roboflow/HF function code to not produce this value
anymore, so this alias is no longer needed.
  • Loading branch information
SpecLad committed Jun 28, 2024
1 parent 6d49b89 commit ab7ce81
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 1 addition & 1 deletion cvat-core/src/core-types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 0 additions & 2 deletions cvat-core/src/ml-model.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit ab7ce81

Please sign in to comment.