mirror of
https://github.com/easydiffusion/easydiffusion.git
synced 2025-01-23 06:39:50 +01:00
Can feed a custom image
This commit is contained in:
parent
6c0c6c50e8
commit
6dac5341db
@ -1,7 +1,12 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
IMAGE_NAME="r8.im/stability-ai/stable-diffusion@sha256:06eb78b36068500c616a7f33c15e6fa40404f8e14b5bfad57ebe0c7fe0f6bdf1"
|
IMAGE_NAME=$1
|
||||||
|
|
||||||
|
if [ -z "$IMAGE_NAME" ]; then
|
||||||
|
IMAGE_NAME="r8.im/stability-ai/stable-diffusion@sha256:06eb78b36068500c616a7f33c15e6fa40404f8e14b5bfad57ebe0c7fe0f6bdf1"
|
||||||
|
fi
|
||||||
|
|
||||||
|
echo "Using docker image $IMAGE_NAME"
|
||||||
docker run --name sd -d -p 5000:5000 --gpus all $IMAGE_NAME
|
docker run --name sd -d -p 5000:5000 --gpus all $IMAGE_NAME
|
||||||
|
|
||||||
uvicorn main:app --reload
|
uvicorn main:app --reload
|
Loading…
Reference in New Issue
Block a user