https://github.com/alloc7260/runpod-serverless-stable-diffusion-custom-endpoint
generated from https://github.com/runpod-workers/worker-template
https://github.com/alloc7260/runpod-serverless-stable-diffusion-custom-endpoint
api runpod runpod-worker serverless stable-diffusion
Last synced: 12 months ago
JSON representation
generated from https://github.com/runpod-workers/worker-template
- Host: GitHub
- URL: https://github.com/alloc7260/runpod-serverless-stable-diffusion-custom-endpoint
- Owner: alloc7260
- Created: 2023-12-01T10:55:12.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2023-12-01T11:04:58.000Z (over 2 years ago)
- Last Synced: 2025-01-21T09:48:49.226Z (about 1 year ago)
- Topics: api, runpod, runpod-worker, serverless, stable-diffusion
- Language: Dockerfile
- Homepage:
- Size: 261 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
1. download any base model for Ex. => sd_xl_base_1.0.safetensors
2. if you have any checkpoint model then take it along with base model for Ex. => sdxl-base-10000-000009.safetensors (Lora checkpoint)
3. the directory structure will look like this
```
.
├── builder
│ ├── cache.py
│ ├── clone.sh
│ └── requirements.txt
├── Dockerfile
├── imgs
│ ├── create endpoint.png
│ └── create template.png
├── README.md
├── requesting-script.py
└── src
├── rp_handler.py
└── start.sh
```
4. make changes in files like `Dockerfile` and `start.sh` according to your model names
5. docker login
6. docker build -t alloc7260/sdxlbase1:v12 . # put your username insted of alloc7260
7. docker push alloc7260/sdxlbase1:v12 # put your username insted of alloc7260
8. go to runpod console
9. go to serverless tab
10. select custom template
11. create custom template using this public docker image

12. select endpoints
13. create endpoint by specifying created template name and instance details

14. get the endpoint id and put it in `requesting-script.py`
15. get your api key from settings tab and put it in `requesting-script.py`
16. pip install requests opencv-python numpy Pillow
17. tweak the parameters and run the script by `python3 requesting-script.py`