forked from gkswjdzz/ainized-detectron2
-
Notifications
You must be signed in to change notification settings - Fork 0
/
detectron2-gpu.yaml
199 lines (197 loc) · 6.44 KB
/
detectron2-gpu.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
openapi: 3.0.0
info:
title: Detectron2
version: 0.1.0
description: "## Detectron2 - PyTorch-based Object Detection Opensource Project by Facebook AI Research.\n[Detectron2](https://github.com/facebookresearch/detectron2) is Facebook AI Research's next generation software system that implements state-of-the-art object detection algorithms.\n\nIt is a ground-up rewrite of the previous version, [Detectron](https://github.com/facebookresearch/Detectron/).\n### Supported Algorithm:\n- Panoptic Segmentation\n- Instance Segmentation (Mask RCNN R-50-FPN model)\n- DensePose\n- Cascade RCNN\n"
contact:
name: API Support (Feature Request, Report Issue)
url: 'https://github.com/gkswjdzz/ainized-detectron2'
externalDocs:
url: http://cocodataset.org/#explore
description: 'Dataset Links - EXPLORE Sample Datasets'
paths:
/predictions:
post:
tags:
- Object Classification
summary: Getting the class and coordinates of the detected object
description: "[Sample Photo Download Link](http://farm8.staticflickr.com/7281/8741619051_55ff878e1e_z.jpg)"
requestBody:
content:
multipart/form-data:
schema:
type: object
properties:
file:
type: string
format: binary
preview:
type: boolean
example: true
default: true
description: please set preview to true when used in swagger ui
responses:
'200':
description: Result Json.
content:
application/json:
schema:
$ref: '#/components/schemas/Predictions'
/instancesegmentation:
post:
tags:
- Instance Segmentation
summary: Run Instance Segmentation (Mask R-CNN)
description: "Paper Link: [https://paperswithcode.com/paper/mask-r-cnn](https://paperswithcode.com/paper/mask-r-cnn)\n\n [Sample Photo Download Link](http://farm8.staticflickr.com/7281/8741619051_55ff878e1e_z.jpg)"
requestBody:
content:
multipart/form-data:
schema:
type: object
properties:
file:
type: string
format: binary
responses:
'200':
description: Result Image.
content:
image/*:
schema:
type: string
format: binary
'400':
description: Bad request
/densepose:
post:
tags:
- DensePose
summary: Run DensePose
description: "Paper Link: [https://paperswithcode.com/paper/densepose-dense-human-pose-estimation-in-the](https://paperswithcode.com/paper/densepose-dense-human-pose-estimation-in-the)\n\n [Sample Photo Download Link](http://farm8.staticflickr.com/7281/8741619051_55ff878e1e_z.jpg)"
requestBody:
content:
multipart/form-data:
schema:
type: object
properties:
file:
type: string
format: binary
responses:
'200':
description: Result Image.
content:
image/*:
schema:
type: string
format: binary
'400':
description: Bad request
/panopticsegmentation:
post:
tags:
- Panoptic Segmentation
summary: Run Panoptic Segmentation
description: "Paper Link: [https://arxiv.org/pdf/1901.02446.pdf](https://arxiv.org/pdf/1901.02446.pdf)\n\n [Sample Photo Download Link](http://farm8.staticflickr.com/7281/8741619051_55ff878e1e_z.jpg)"
requestBody:
content:
multipart/form-data:
schema:
type: object
properties:
file:
type: string
format: binary
responses:
'200':
description: Result Image.
content:
image/*:
schema:
type: string
format: binary
'400':
description: Bad request
/keypoint:
post:
tags:
- Person Keypoint Detection
summary: Run Person Keypoint Detection
description: "Paper Link: [https://paperswithcode.com/task/keypoint-detection](https://paperswithcode.com/task/keypoint-detection)\n\n [Sample Photo Download Link](http://farm8.staticflickr.com/7281/8741619051_55ff878e1e_z.jpg)"
requestBody:
content:
multipart/form-data:
schema:
type: object
properties:
file:
type: string
format: binary
responses:
'200':
description: Result Image.
content:
image/*:
schema:
type: string
format: binary
'400':
description: Bad request
tags:
- name: Object Classification
- name: Panoptic Segmentation
- name: Instance Segmentation
externalDocs:
url: 'https://paperswithcode.com/paper/mask-r-cnn'
- name: DensePose
externalDocs:
description: ''
url: >-
https://paperswithcode.com/paper/densepose-dense-human-pose-estimation-in-the
- name: Person Keypoint Detection
servers:
- url: 'https://ainized-detectron2-gpu.gkswjdzz.endpoint.ainize.ai'
security: []
components:
schemas:
Predictions:
type: object
additionalProperties:
$ref: '#/components/schemas/Prediction'
Prediction:
type: object
properties:
class:
type: string
description: estimated class of boundary box
score:
type: string
description: boundary box confidence score
left-up:
$ref: '#/components/schemas/Points-number'
right-down:
$ref: '#/components/schemas/Points-number'
Polygons:
$ref: '#/components/schemas/Points-integers'
Points-number:
type: object
properties:
x:
type: number
description: The x-coordinate.
y:
type: number
description: The y-coordinate.
Points-integers:
type: object
additionalProperties:
$ref: '#/components/schemas/Points-integer'
Points-integer:
type: object
properties:
x:
type: integer
description: The x-coordinate.
y:
type: integer
description: The y-coordinate.