forked from MindExMachina/smartgeometry
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
45 lines (36 loc) · 1.96 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
# todo: delete api key and put a placeholder
API_KEY=fdc8c597eb50cdb8c4ffe07a1c4d4936f62d7070
classify_fruits:
@curl -X POST --form "[email protected]" \
"https://gateway-a.watsonplatform.net/visual-recognition/api/v3/classify?api_key=$(API_KEY)&version=2016-05-20"
recognize_face:
@curl -X POST --form "[email protected]" \
"https://gateway-a.watsonplatform.net/visual-recognition/api/v3/detect_faces?api_key=$(API_KEY)&version=2016-05-20"
classify_circle:
@curl -X POST --form "[email protected]" \
--form "[email protected]" \
"https://gateway-a.watsonplatform.net/visual-recognition/api/v3/classify?api_key=$(API_KEY)&version=2016-05-20"
classify_square:
@curl -X POST --form "[email protected]" \
--form "[email protected]" \
"https://gateway-a.watsonplatform.net/visual-recognition/api/v3/classify?api_key=$(API_KEY)&version=2016-05-20"
create_dogs_classifier:
@curl -X POST \
--form "[email protected]" \
--form "[email protected]" \
--form "[email protected]" \
--form "[email protected]" \
--form "name=dogs" \
"https://gateway-a.watsonplatform.net/visual-recognition/api/v3/classifiers?api_key=$(API_KEY)&version=2016-05-20"
create_square_circle_classifier:
@curl -X POST \
--form "circle_positive_examples=@models/circle.zip" \
--form "square_positive_examples=@models/square.zip" \
--form "name=circle_or_square" \
"https://gateway-a.watsonplatform.net/visual-recognition/api/v3/classifiers?api_key=$(API_KEY)&version=2016-05-20"
training_status:
@curl -X GET \
"https://gateway-a.watsonplatform.net/visual-recognition/api/v3/classifiers/circle_or_square_138209706?api_key=$(API_KEY)&version=2016-05-20"
download_mlmodel:
@curl --output circle_or_square_138209706.mlmodel \
"https://gateway-a.watsonplatform.net/visual-recognition/api/v3/classifiers/circle_or_square_138209706/core_ml_model?api_key=$(API_KEY)&version=2016-05-20"