-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmakefile
58 lines (47 loc) · 1.23 KB
/
makefile
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
HOST := localhost:9091
GET_CAPTION := caption_service.v1.CaptionService/get_caption
IMG_PATH := test/images
SERVICE := caption_service
include ../../shared/makefile
### Examples ###
# Full image examples
req_animal:
grpcurl -plaintext -d '{"image":{"path":"$(IMG_PATH)/animal.jpg"}}' $(HOST) $(GET_CAPTION)
req_obj:
grpcurl -plaintext -d '{"image":{"path":"$(IMG_PATH)/object.jpg"}}' $(HOST) $(GET_CAPTION)
req_human:
grpcurl -plaintext -d '{"image":{"path":"$(IMG_PATH)/human.jpg"}}' $(HOST) $(GET_CAPTION)
# Cropped examples (currently the test data equals the returned bounding box from the motif service)
req_animal_crop:
grpcurl -plaintext -d '{ \
"image":{ \
"path":"$(IMG_PATH)/animal.jpg" \
}, \
"crop": { \
"x": 219, \
"y": 65, \
"width": 680, \
"height": 655 \
}}' $(HOST) $(GET_CAPTION)
req_obj_crop:
grpcurl -plaintext -d '{ \
"image":{ \
"path":"$(IMG_PATH)/object.jpg" \
}, \
"crop": { \
"x": 428, \
"y": 195, \
"width": 286, \
"height": 463 \
}}' $(HOST) $(GET_CAPTION)
req_human_crop:
grpcurl -plaintext -d '{ \
"image":{ \
"path":"$(IMG_PATH)/human.jpg" \
}, \
"crop": { \
"x": 208, \
"y": 176, \
"width": 537, \
"height": 371 \
}}' $(HOST) $(GET_CAPTION)