An api in dataiku for image data

tjh
tjh Registered Posts: 20 ✭✭✭✭
Since it seems to be possible now to train neural networks in dataiku, also convolutional networks for images (?), it feels natural to ask if it is possible to deploy these models via api call? This means that the api should be able to receive an image as payload ...

Answers

  • jereze
    jereze Alpha Tester, Dataiker Alumni Posts: 190 ✭✭✭✭✭✭✭✭
    Hi,

    You should be able to deploy a model with images as inputs on the API node. For example, sending the base64 content of the image file.

    I'll see if one of our data scientists who has already done so can share a little more information here.

    Jeremy
  • tjh
    tjh Registered Posts: 20 ✭✭✭✭
    It would be great if you could add this information to this discussion. Thanks !
  • tjh
    tjh Registered Posts: 20 ✭✭✭✭
    @Jeremy. Any news on this?
  • UserBird
    UserBird Dataiker, Alpha Tester Posts: 535 Dataiker
    Hi.
    1.Push your model as usual on the API Node
    2.Then when passing the payload, first transform your image in a base64 using img64 = base64.b64encode(myimage.read())
    3. Then use the REST API as usual by passing the img64 in your payload.
Setup Info
    Tags
      Help me…