Artistic Style Transfer

Neural Style Transfer from famous classic paintings and custom visual effects

Request parameters

Description
Parameter’s name Parameter’s type Description
out_filters string Optional. Comma separated list of model outputs to return.
image image Input image
style string Style
curl-form
curl -X POST \
    -H 'Authorization: Bearer YOUR_USER_TOKEN' \
    -H 'Content-Type: multipart/form-data' \
    -F "out_filters=output" \
    -F "image=image_value" \
    -F "style=style_value" \
    https://cloud.kibernetika.io/api/v0.2/workspace/kuberlab-demo/serving/mstyles-1-0-21/form-data
curl-json
curl -X POST \
    -H 'Authorization: Bearer YOUR_USER_TOKEN' \
    -H 'Content-Type: application/json' \
    -d '
      {
        "image": "base64_encoded_image_contents",
        "style": "style_value"
      }
    '
    https://cloud.kibernetika.io/api/v0.2/workspace/kuberlab-demo/serving/mstyles-1-0-21/proxy
python
import kclient
from kclient.utils import client, request


cl = client.with_bearer_token("YOUR_USER_TOKEN")
serving_api = kclient.api.serving_api.ServingApi(cl)

data = request.make(data={
    "style": "[pencil[https://storage.googleapis.com/edwindemo/styles-256/pencil.jpg] mosaic[https://storage.googleapis.com/edwindemo/styles-256/mosaic.jpg] picasso[https://storage.googleapis.com/edwindemo/styles-256/picasso_selfport1907.jpg] robert[https://storage.googleapis.com/edwindemo/styles-256/robert.jpg] candy[https://storage.googleapis.com/edwindemo/styles-256/candy.jpg] scream[https://storage.googleapis.com/edwindemo/styles-256/the_scream.jpg] composition[https://storage.googleapis.com/edwindemo/styles-256/composition_vii.jpg] shipwreck[https://storage.googleapis.com/edwindemo/styles-256/shipwreck.jpg] rain[https://storage.googleapis.com/edwindemo/styles-256/rain_princess.jpg] mosaic1[https://storage.googleapis.com/edwindemo/styles-256/mosaic_ducks_massimo.jpg] escher[https://storage.googleapis.com/edwindemo/styles-256/escher_sphere.jpg] udnie[https://storage.googleapis.com/edwindemo/styles-256/udnie.jpg] wave[https://storage.googleapis.com/edwindemo/styles-256/wave.jpg] woman[https://storage.googleapis.com/edwindemo/styles-256/woman-with-hat-matisse.jpg] la_muse[https://storage.googleapis.com/edwindemo/styles-256/la_muse.jpg] seated[https://storage.googleapis.com/edwindemo/styles-256/seated-nude.jpg] strip[https://storage.googleapis.com/edwindemo/styles-256/strip.jpg] feathers[https://storage.googleapis.com/edwindemo/styles-256/feathers.jpg] starry[https://storage.googleapis.com/edwindemo/styles-256/starry_night.jpg] stars2[https://storage.googleapis.com/edwindemo/styles-256/stars2.jpg] frida[https://storage.googleapis.com/edwindemo/styles-256/frida_kahlo.jpg]]",
}, files={
    "image": "/path/to/image_file",
})
resp = serving_api.serving_proxy(data, "kuberlab-demo", "mstyles-1-0-21")

Response format

{
  "output": "base64_encoded_image"
}