forked from advimman/HiDT
-
Notifications
You must be signed in to change notification settings - Fork 2
/
swagger.yaml
61 lines (55 loc) · 1.55 KB
/
swagger.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
openapi: 3.0.1
info:
title: ainize-HiDT-swagger
description: |
High-Resolution Daytime Translation Without Domain Labels
---
How to use:
* Select a daytime
* Select a landscape image
* Execute and wait little time
contact:
name: Ainizer - Sangil Park
version: "0.1"
license:
name: "BSD 3-Clause License"
url: https://github.com/saic-mdal/HiDT/blob/master/LICENSE
servers:
- url: https://master-hi-dt-psi1104.endpoint.ainize.ai
paths:
/predict:
post:
requestBody:
required: true
description: "High-Resolution Daytime Translation Without Domain Labels"
content:
multipart/form-data:
schema:
type: object
properties:
daytime:
type: string
enum: [day1, day2, day3, day4, sunset1, sunset2, sunset3, sunset4,
bluehour1, bluehour2, night1, night2, night3, night4,
night5, night6]
source:
type: string
format: binary
inference_size:
type: string
enum: ['256','512','1024']
encoding:
files:
contentType: image/*
responses:
'200':
description: success
content:
images/*:
schema:
type: string
format: binary
'400':
description: Bad Request
'500':
description: Server side error