Mercurial > hg > orthanc-stone
annotate Applications/StoneWebViewer/WebAssembly/DeepLearningWorker.proto @ 2065:15f2e52835a1 deep-learning
removed OpenGLTextureArray::DownloadedArray()
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Thu, 04 May 2023 16:59:28 +0200 |
parents | d4e769a0961f |
children |
rev | line source |
---|---|
2055
d4e769a0961f
automating invokation of protobuf in deep-learning
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
1 syntax = "proto2"; |
d4e769a0961f
automating invokation of protobuf in deep-learning
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
2 option optimize_for = LITE_RUNTIME; |
d4e769a0961f
automating invokation of protobuf in deep-learning
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
3 |
d4e769a0961f
automating invokation of protobuf in deep-learning
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
4 package OrthancStone.Messages; |
d4e769a0961f
automating invokation of protobuf in deep-learning
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
5 |
d4e769a0961f
automating invokation of protobuf in deep-learning
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
6 enum RequestType { |
d4e769a0961f
automating invokation of protobuf in deep-learning
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
7 PARSE_MODEL = 1; |
d4e769a0961f
automating invokation of protobuf in deep-learning
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
8 LOAD_IMAGE = 2; |
d4e769a0961f
automating invokation of protobuf in deep-learning
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
9 EXECUTE_STEP = 3; |
d4e769a0961f
automating invokation of protobuf in deep-learning
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
10 } |
d4e769a0961f
automating invokation of protobuf in deep-learning
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
11 |
d4e769a0961f
automating invokation of protobuf in deep-learning
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
12 enum ResponseType { |
d4e769a0961f
automating invokation of protobuf in deep-learning
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
13 INITIALIZED = 1; |
d4e769a0961f
automating invokation of protobuf in deep-learning
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
14 PARSED_MODEL = 2; |
d4e769a0961f
automating invokation of protobuf in deep-learning
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
15 LOADED_IMAGE = 3; |
d4e769a0961f
automating invokation of protobuf in deep-learning
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
16 STEP_DONE = 4; |
d4e769a0961f
automating invokation of protobuf in deep-learning
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
17 } |
d4e769a0961f
automating invokation of protobuf in deep-learning
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
18 |
d4e769a0961f
automating invokation of protobuf in deep-learning
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
19 message ParseModelRequest { |
d4e769a0961f
automating invokation of protobuf in deep-learning
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
20 required bytes content = 1; |
d4e769a0961f
automating invokation of protobuf in deep-learning
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
21 } |
d4e769a0961f
automating invokation of protobuf in deep-learning
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
22 |
d4e769a0961f
automating invokation of protobuf in deep-learning
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
23 message ParseModelResponse { |
d4e769a0961f
automating invokation of protobuf in deep-learning
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
24 required uint32 number_of_steps = 1; |
d4e769a0961f
automating invokation of protobuf in deep-learning
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
25 } |
d4e769a0961f
automating invokation of protobuf in deep-learning
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
26 |
d4e769a0961f
automating invokation of protobuf in deep-learning
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
27 message LoadImageRequest { |
d4e769a0961f
automating invokation of protobuf in deep-learning
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
28 required string sop_instance_uid = 1; |
d4e769a0961f
automating invokation of protobuf in deep-learning
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
29 required uint32 frame_number = 2; |
d4e769a0961f
automating invokation of protobuf in deep-learning
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
30 required uint32 height = 3; |
d4e769a0961f
automating invokation of protobuf in deep-learning
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
31 required uint32 width = 4; |
d4e769a0961f
automating invokation of protobuf in deep-learning
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
32 repeated float values = 5 [packed=true]; |
d4e769a0961f
automating invokation of protobuf in deep-learning
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
33 } |
d4e769a0961f
automating invokation of protobuf in deep-learning
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
34 |
d4e769a0961f
automating invokation of protobuf in deep-learning
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
35 message SegmentationMask { |
d4e769a0961f
automating invokation of protobuf in deep-learning
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
36 required string sop_instance_uid = 1; |
d4e769a0961f
automating invokation of protobuf in deep-learning
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
37 required uint32 frame_number = 2; |
d4e769a0961f
automating invokation of protobuf in deep-learning
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
38 required uint32 height = 3; |
d4e769a0961f
automating invokation of protobuf in deep-learning
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
39 required uint32 width = 4; |
d4e769a0961f
automating invokation of protobuf in deep-learning
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
40 repeated bool values = 5 [packed=true]; |
d4e769a0961f
automating invokation of protobuf in deep-learning
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
41 } |
d4e769a0961f
automating invokation of protobuf in deep-learning
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
42 |
d4e769a0961f
automating invokation of protobuf in deep-learning
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
43 message StepResponse { |
d4e769a0961f
automating invokation of protobuf in deep-learning
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
44 required bool done = 1; |
d4e769a0961f
automating invokation of protobuf in deep-learning
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
45 required float progress = 2; |
d4e769a0961f
automating invokation of protobuf in deep-learning
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
46 optional SegmentationMask mask = 3; |
d4e769a0961f
automating invokation of protobuf in deep-learning
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
47 } |
d4e769a0961f
automating invokation of protobuf in deep-learning
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
48 |
d4e769a0961f
automating invokation of protobuf in deep-learning
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
49 message Request { |
d4e769a0961f
automating invokation of protobuf in deep-learning
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
50 required RequestType type = 1; |
d4e769a0961f
automating invokation of protobuf in deep-learning
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
51 |
d4e769a0961f
automating invokation of protobuf in deep-learning
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
52 optional ParseModelRequest parse_model = 2; |
d4e769a0961f
automating invokation of protobuf in deep-learning
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
53 optional LoadImageRequest load_image = 3; |
d4e769a0961f
automating invokation of protobuf in deep-learning
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
54 } |
d4e769a0961f
automating invokation of protobuf in deep-learning
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
55 |
d4e769a0961f
automating invokation of protobuf in deep-learning
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
56 message Response { |
d4e769a0961f
automating invokation of protobuf in deep-learning
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
57 required ResponseType type = 1; |
d4e769a0961f
automating invokation of protobuf in deep-learning
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
58 |
d4e769a0961f
automating invokation of protobuf in deep-learning
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
59 optional ParseModelResponse parse_model = 2; |
d4e769a0961f
automating invokation of protobuf in deep-learning
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
60 optional StepResponse step = 3; |
d4e769a0961f
automating invokation of protobuf in deep-learning
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
61 } |