Elvenson/diffuser_inference
1
1---2license: creativeml-openrail-m3tags:4- stable-diffusion5- stable-diffusion-diffusers6- endpoints-template7 8extra_gated_prompt: |-9 This model is open access and available to all, with a CreativeML OpenRAIL-M license further specifying rights and usage.10 The CreativeML OpenRAIL License specifies: 11 12 1. You can't use the model to deliberately produce nor share illegal or harmful outputs or content 13 2. CompVis claims no rights on the outputs you generate, you are free to use them and are accountable for their use which must not go against the provisions set in the license14 3. You may re-distribute the weights and use the model commercially and/or as a service. If you do, please be aware you have to include the same use restrictions as the ones in the license and share a copy of the CreativeML OpenRAIL-M to all your users (please read the license entirely and carefully)15 Please read the full license carefully here: https://huggingface.co/spaces/CompVis/stable-diffusion-license16 17extra_gated_heading: Please read the LICENSE to access this model18---19# Stable Diffusion v1-5 Custom Inference20This repo is for running diffusion custom inference endpoints with `prompts` and an optional `image` as inputs (Unlike normal text-to-image inference). To 21achieve this goal, this repo implements a `handler.py` script. For more information regarding custom inference, please visit 22this [link](https://huggingface.co/docs/inference-endpoints/guides/custom_handler).23For more information about the model, license and limitations please check the original [model card](https://huggingface.co/runwayml/stable-diffusion-v1-5)24or diffusion [documentation](https://huggingface.co/docs/diffusers/index).25 26### Local test custom handler27To test custom inference locally, please run the following command:28```commandline29 python local_request.py --prompts="whale in the universe" --image="test_image.jpg"30``` 31**Note**: `--image` parameter is optional.32 33 34 