|
Download README.md from pimcore/IEP__image-upscaling-2x: direct link, hf CLI and curl.
- Browser
- Download file 1.07 kB
-
https://huggingface.co/pimcore/IEP__image-upscaling-2x/resolve/main/README.md
- Command line
-
hf download hf://pimcore/IEP__image-upscaling-2x/README.md
-
curl -L -o README.md https://huggingface.co/pimcore/IEP__image-upscaling-2x/resolve/main/README.md
1.07 kB
| tags: | |
| - vision | |
| - image-to-image | |
| - endpoints-template | |
| - super-resolution | |
| inference: false | |
| pipeline_tag: image-to-image | |
| base_model: caidas/swin2SR-classical-sr-x2-64 | |
| library_name: generic | |
| # Fork of [caidas/swin2SR-classical-sr-x2-64](https://huggingface.co/caidas/swin2SR-classical-sr-x2-64) for a `image-to-image` Inference endpoint. | |
| > Inspired by https://huggingface.co/sergeipetrov/swin2SR-classical-sr-x2-64-IE | |
| This repository implements a `custom` task for `image-to-image` for 🤗 Inference Endpoints to allow image up scaling by doubling image resolution. | |
| 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 to be labeled as binary. | |
| #### CURL | |
| ``` | |
| curl URL \ | |
| -X POST \ | |
| --data-binary @car.png \ | |
| -H "Content-Type: image/png" | |
| ``` | |
| #### Python | |
| ```python | |
| requests.post(ENDPOINT_URL, headers={"Content-Type": "image/png"}, data=open("car.png", 'rb').read()).json() | |
| ``` |