docker build -t style-transfer .
docker run -t style-transfer
First of all, you should download sample-base-image.jpg and sample-style-image.jpg.
- Try on ainized sample service
curl -X POST "https://style-transfer-gpu.pengin7384.endpoint.ainize.ai/transfer" -H "accept: images/*" -H "Content-Type: multipart/form-data" -F "[email protected];type=image/jpeg" -F "[email protected];type=image/jpeg" -o result.jpg
- Try on your localhost
curl -X POST "http://localhost:80/transfer" -H "accept: images/*" -H "Content-Type: multipart/form-data" -F "[email protected];type=image/jpeg" -F "[email protected];type=image/jpeg" -o localhost-result.jpg