invoke-ai--invokeai
cddb07a176
docs / deploy (push) Has been cancelled
docs / changes (push) Has been cancelled
docs / check-and-build (push) Has been cancelled
build container image / cpu (push) Has been cancelled
build container image / cuda (push) Has been cancelled
build container image / rocm (push) Has been cancelled
frontend checks / frontend-checks (push) Has been cancelled
frontend tests / frontend-tests (push) Has been cancelled
lfs checks / lfs-check (push) Has been cancelled
python checks / python-checks (push) Has been cancelled
python tests / py3.12: macos-default (push) Has been cancelled
python tests / py3.11: windows-cpu (push) Has been cancelled
python tests / py3.12: windows-cpu (push) Has been cancelled
python tests / py3.11: linux-cpu (push) Has been cancelled
typegen checks / typegen-checks (push) Has been cancelled
uv lock checks / uv-lock-checks (push) Has been cancelled
openapi checks / openapi-checks (push) Has been cancelled
python tests / py3.11: macos-default (push) Has been cancelled
python tests / py3.12: linux-cpu (push) Has been cancelled
24 行
741 B
Bash
24 行
741 B
Bash
# generate an image
|
|
PROMPT="a photograph of an astronaut riding a horse"
|
|
OUT_DIR="outputs/txt2img-samples/test_regression_txt2img_v1_4"
|
|
SAMPLES_DIR="outputs/txt2img-samples/test_regression_txt2img_v1_4/samples"
|
|
python scripts/orig_scripts/txt2img.py \
|
|
--prompt "${PROMPT}" \
|
|
--outdir ${OUT_DIR} \
|
|
--plms \
|
|
--ddim_steps 50 \
|
|
--n_samples 1 \
|
|
--n_iter 1 \
|
|
--seed 42
|
|
|
|
# original output by CompVis/stable-diffusion
|
|
IMAGE1=".dev_scripts/images/v1_4_astronaut_rides_horse_plms_step50_seed42.png"
|
|
# new output
|
|
IMAGE2=`ls -A ${SAMPLES_DIR}/*.png | sort | tail -n 1`
|
|
|
|
echo ""
|
|
echo "comparing the following two images"
|
|
echo "IMAGE1: ${IMAGE1}"
|
|
echo "IMAGE2: ${IMAGE2}"
|
|
python .dev_scripts/diff_images.py ${IMAGE1} ${IMAGE2}
|