-
URL
/neural-art
-
Method:
POST
-
Data Params
content=[url-of-the-content-image]
style=[url-of-the-style-image]
num_iterations=[num-of-forward-passes]
maxsize=[max-image-size]
-
Success Response:
- Code: 200
Content:{ result_url : <result-image-url> }
- Code: 200
-
Error Response:
- Code: 400 BAD_REQUEST
Content:{ "error" }
- Code: 400 BAD_REQUEST
-
Sample Call:
curl -d "content=http://s3.amazonaws.com/factmag-images/wp-content/uploads/2017/02/cefa0d0aa7cd199d3a4b6202f7f300db.jpg&style=https://upload.wikimedia.org/wikipedia/commons/thumb/e/ea/Van_Gogh_-_Starry_Night_-_Google_Art_Project.jpg/1280px-Van_Gogh_-_Starry_Night_-_Google_Art_Project.jpg&num_iterations=1000&maxsize=700" http://<ip>:8080/neural-art
-
URL
/fast-style-transfer
-
Method:
POST
-
Data Params
content=[url-of-the-content-image]
checkpoint=[la_muse|rain_princess|scream|udnie|wave|wreck]
maxsize=[max-image-size]
-
Success Response:
- Code: 200
Content:{ result_url : <result-image-url> }
- Code: 200
-
Error Response:
- Code: 400 BAD_REQUEST
Content:{ "error" }
- Code: 400 BAD_REQUEST
-
Sample Call:
curl -d "content=https://scstylecaster.files.wordpress.com/2016/05/hot-surfer-guys-feat.jpg&checkpoint=scream.ckpt&maxsize=600" http://<ip>:8080/fast-style-transfer