pix2pix-instruct-IE / README.md
sergeipetrov's picture
Duplicate from pimcore/IEP__image-to-image-instruct
f076f26 verified
|
raw
history blame
798 Bytes
metadata
tags:
  - vision
  - image-to-image
  - endpoints-template
inference: false
pipeline_tag: image-to-image
base_model: timbrooks/instruct-pix2pix
library_name: generic

Fork of timbrooks/instruct-pix2pix for an image-to-image Inference endpoint.

This repository implements a custom task for image-to-image with instructions for 🤗 Inference Endpoints. The code for the customized pipeline is in the handler.py.

To use deploy this model an Inference Endpoint you have to select Custom as task to use the handler.py file.

expected Request payload

{
  "image": encoded_image,
  "parameters": {
    "candidate_labels": "green, yellow, blue, white, silver"
  }
}

encoded_image is a base64 encoded image.