workspace.proto 2.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697
  1. // Copyright (c) 2020 PaddlePaddle Authors. All Rights Reserved.
  2. //
  3. // Licensed under the Apache License, Version 2.0 (the "License");
  4. // you may not use this file except in compliance with the License.
  5. // You may obtain a copy of the License at
  6. //
  7. // http://www.apache.org/licenses/LICENSE-2.0
  8. //
  9. // Unless required by applicable law or agreed to in writing, software
  10. // distributed under the License is distributed on an "AS IS" BASIS,
  11. // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  12. // See the License for the specific language governing permissions and
  13. // limitations under the License.
  14. syntax = "proto3";
  15. package suitebackend;
  16. message Dataset {
  17. string id = 1;
  18. string name = 2;
  19. string desc = 3;
  20. // 'classification': 分类数据
  21. // 'segmentation': 分割数据
  22. // 'detection_voc': 检测数据(仅用于检测)
  23. // 'detection_coco': 检测数据(用于检测,分割,实例分割)
  24. string type = 4;
  25. string path = 5;
  26. string create_time = 6;
  27. }
  28. message Project {
  29. string id = 1;
  30. string name = 2;
  31. string desc = 3;
  32. // 'classification'
  33. // 'segmentation'
  34. // 'segmentation'
  35. // 'instance_segmentation'
  36. string type = 4;
  37. string did = 5;
  38. string path = 6;
  39. string create_time = 7;
  40. }
  41. message Task {
  42. string id = 1;
  43. string name = 2;
  44. string desc = 3;
  45. string pid = 4;
  46. string path = 5;
  47. string create_time = 6;
  48. string parent_id = 7;
  49. }
  50. message PretrainedModel {
  51. string id = 1;
  52. string name = 2;
  53. string model = 3;
  54. string type = 4;
  55. // 所属项目id
  56. string pid = 5;
  57. string tid = 6;
  58. string create_time = 7;
  59. string path = 8;
  60. }
  61. message ExportedModel {
  62. string id = 1;
  63. string name = 2;
  64. string model = 3;
  65. string type = 4;
  66. // 所属项目id
  67. string pid = 5;
  68. string tid = 6;
  69. string create_time = 7;
  70. string path = 8;
  71. int32 exported_type = 9;
  72. }
  73. message Workspace {
  74. string version = 1;
  75. string path = 2;
  76. map<string, Dataset> datasets = 3;
  77. map<string, Project> projects = 4;
  78. map<string, Task> tasks = 5;
  79. int32 max_dataset_id = 6;
  80. int32 max_project_id = 7;
  81. int32 max_task_id = 8;
  82. string current_time = 9;
  83. int32 max_pretrained_model_id = 10;
  84. map<string, PretrainedModel> pretrained_models = 11;
  85. int32 max_exported_model_id = 12;
  86. map<string, ExportedModel> exported_models = 13;
  87. }