-
Notifications
You must be signed in to change notification settings - Fork 16
Computer vision initial services #389
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
Open
javiermtorres
wants to merge
8
commits into
main
Choose a base branch
from
378-initial-computer-vision
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
9432f85
Initial image processing interfaces
javiermtorres 91bd77a
Align with current interfaces
javiermtorres 3bfecee
WIP
javiermtorres bb229ab
Separate config per input type and task type
javiermtorres 03b84b5
Reorganize traits
javiermtorres a24581d
Fix inference for image classification
javiermtorres bfdc5f4
Complete e2e process (but not yet correct)
javiermtorres b2a082f
Fixed image order (channel grouped to separate channels); still wip
javiermtorres File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,21 @@ | ||
| syntax = "proto3"; | ||
|
|
||
| package encoderfile.image_classification; | ||
|
|
||
| import "proto/metadata.proto"; | ||
| import "proto/image_types.proto"; | ||
|
|
||
| service ImageClassificationInference { | ||
| rpc Predict(ImageClassificationRequest) returns (ImageClassificationResponse); | ||
| rpc GetModelMetadata(encoderfile.metadata.GetModelMetadataRequest) returns (encoderfile.metadata.GetModelMetadataResponse); | ||
| } | ||
|
|
||
| message ImageClassificationRequest { | ||
| repeated encoderfile.image_types.ImageInput inputs = 1; | ||
| map<string, string> metadata = 11; | ||
| } | ||
|
|
||
| message ImageClassificationResponse { | ||
| repeated encoderfile.image_types.ImageLabels labels = 1; | ||
| map<string, string> metadata = 11; | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,30 @@ | ||
| syntax = "proto3"; | ||
|
|
||
| package encoderfile.image_segmentation; | ||
|
|
||
| import "proto/token.proto"; | ||
| import "proto/metadata.proto"; | ||
|
|
||
| service ImageSegmentation { | ||
| rpc Predict(ImageSegmentationRequest) returns (ImageSegmentationResponse); | ||
| rpc GetModelMetadata(encoderfile.metadata.GetModelMetadataRequest) returns (encoderfile.metadata.GetModelMetadataResponse); | ||
| } | ||
|
|
||
| message ImageSegmentationRequest { | ||
| repeated encoderfile.image_types.ImageInput images = 1; | ||
| map<string, string> metadata = 11; | ||
| } | ||
|
|
||
| message ImageSegment { | ||
| encoderfile.image_types.ImageLabelScore label = 1; | ||
| bytes mask = 2; | ||
| } | ||
|
|
||
| message ImageSegments { | ||
| repeated ImageSegment segments = 1; | ||
| } | ||
|
|
||
| message ImageSegmentationResponse { | ||
| repeated ImageSegments segments_batch = 1; | ||
| map<string, string> metadata = 11; | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,16 @@ | ||
| syntax = "proto3"; | ||
|
|
||
| package encoderfile.image_types; | ||
|
|
||
| message ImageInput { | ||
| bytes image = 1; | ||
| } | ||
|
|
||
| message ImageLabelScore { | ||
| string label = 1; | ||
| optional float score = 2; | ||
| } | ||
|
|
||
| message ImageLabels { | ||
| repeated ImageLabelScore labels = 1; | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,33 @@ | ||
| syntax = "proto3"; | ||
|
|
||
| package encoderfile.object_detection; | ||
|
|
||
| import "proto/token.proto"; | ||
| import "proto/metadata.proto"; | ||
|
|
||
| service ObjectDetection { | ||
| rpc Predict(ObjectDetectionRequest) returns (ObjectDetectionResponse); | ||
| rpc GetModelMetadata(encoderfile.metadata.GetModelMetadataRequest) returns (encoderfile.metadata.GetModelMetadataResponse); | ||
| } | ||
|
|
||
| message ObjectDetectionRequest { | ||
| repeated encoderfile.image_types.ImageInput inputs = 1; | ||
| map<string, string> metadata = 11; | ||
| } | ||
|
|
||
| message ImageBoundingBox { | ||
| encoderfile.image_types.ImageLabelScore label = 1; | ||
| xmin int32 = 2; | ||
| xmax int32 = 3; | ||
| ymin int32 = 4; | ||
| ymax int32 = 5; | ||
| } | ||
|
|
||
| message ImageBoundingBoxes { | ||
| repeated ImageBoundingBox box = 1; | ||
| } | ||
|
|
||
| message ObjectDetectionResponse { | ||
| repeated ImageBoundingBoxes boxes = 1; | ||
| map<string, string> metadata = 11; | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
merge in latest changes, we changed
encoderfile-runtime/main.rsin the gpu update and model type dispatch is now happening elsewhere