Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix automatic tag annotation support #7839

Merged
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
### Fixed
omerferhatt marked this conversation as resolved.
Show resolved Hide resolved

- Wrong object type and shape used when a user runs detector online to classify images
(https://github.com/cvat-ai/cvat/pull/7839)
omerferhatt marked this conversation as resolved.
Show resolved Hide resolved
3 changes: 2 additions & 1 deletion cvat-core/src/lambda-manager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
import serverProxy from './server-proxy';
import { ArgumentError } from './exceptions';
import MLModel from './ml-model';
import { RQStatus, ShapeType } from './enums';
import { ObjectType, RQStatus, ShapeType } from './enums';

export interface ModelProvider {
name: string;
Expand All @@ -22,6 +22,7 @@ export interface InteractorResults {

export interface DetectedShape {
type: ShapeType;
objectType?: ObjectType;
rotation?: number;
attributes: { name: string; value: string }[];
label: string;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1244,7 +1244,7 @@ export class ToolsControlComponent extends React.PureComponent<Props, State> {

const objectData = {
label: jobLabel,
objectType: ObjectType.SHAPE,
objectType: data.objectType || ObjectType.SHAPE,
frame,
occluded: false,
rotation: [
Expand Down