Skip to content

woomurf/ainize-run-style-transfer

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

36 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Ainize-run-style-transfer

Run on Ainize

Docker build

docker build -t style-transfer .

Docker run

docker run -t style-transfer

How to request using cURL

First of all, you should download sample-base-image.jpg and sample-style-image.jpg.

  1. 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
  1. 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

References

  1. Neural style transfer

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 84.7%
  • Dockerfile 15.3%