Skip to content

Commit

Permalink
refactor(model): fix field name inconsistency (#113)
Browse files Browse the repository at this point in the history
Because

- we need to keep naming convention strict in protobuf

This commit

- change `InstanceSegmentationObject.label` to `InstanceSegmentationObject.category` in `vdp.model.v1alpha`
  • Loading branch information
pinglin authored Nov 26, 2022
1 parent 2152274 commit 3f72eb2
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions vdp/model/v1alpha/instance_segmentation_output.proto
Original file line number Diff line number Diff line change
Expand Up @@ -7,20 +7,20 @@ import "google/api/field_behavior.proto";

import "vdp/model/v1alpha/common.proto";


// InstanceSegmentationObject corresponding to a instance segmentation object
message InstanceSegmentationObject {
// RLE
// Instance RLE segmentation mask
string rle = 1 [ (google.api.field_behavior) = OUTPUT_ONLY ];
// Instance category
string category = 2 [ (google.api.field_behavior) = OUTPUT_ONLY ];
// Instance score
float score = 2 [ (google.api.field_behavior) = OUTPUT_ONLY ];
// Bounding box object
BoundingBox bounding_box = 3 [ (google.api.field_behavior) = OUTPUT_ONLY ];
// Object label
string label = 4 [ (google.api.field_behavior) = OUTPUT_ONLY ];
float score = 3 [ (google.api.field_behavior) = OUTPUT_ONLY ];
// Instance bounding box
BoundingBox bounding_box = 4 [ (google.api.field_behavior) = OUTPUT_ONLY ];
}

// InstanceSegmentationOutput represents the output of instance segmentation task
// InstanceSegmentationOutput represents the output of instance segmentation
// task
message InstanceSegmentationOutput {
// A list of instance segmentation objects
repeated InstanceSegmentationObject objects = 1
Expand Down

0 comments on commit 3f72eb2

Please sign in to comment.