cddb07a176
build container image / cpu (push) Waiting to run
build container image / cuda (push) Waiting to run
build container image / rocm (push) Waiting to run
docs / deploy (push) Blocked by required conditions
docs / changes (push) Waiting to run
docs / check-and-build (push) Blocked by required conditions
frontend tests / frontend-tests (push) Waiting to run
openapi checks / openapi-checks (push) Waiting to run
python tests / py3.12: macos-default (push) Waiting to run
python tests / py3.11: windows-cpu (push) Waiting to run
python tests / py3.12: windows-cpu (push) Waiting to run
python tests / py3.11: linux-cpu (push) Waiting to run
python tests / py3.12: linux-cpu (push) Waiting to run
typegen checks / typegen-checks (push) Waiting to run
uv lock checks / uv-lock-checks (push) Waiting to run
frontend checks / frontend-checks (push) Waiting to run
lfs checks / lfs-check (push) Waiting to run
python checks / python-checks (push) Waiting to run
python tests / py3.11: macos-default (push) Waiting to run
20 lines
602 B
Bash
20 lines
602 B
Bash
# generate an image
|
|
PROMPT_FILE=".dev_scripts/sample_command.txt"
|
|
OUT_DIR="outputs/img-samples/test_regression_txt2img_v1_4"
|
|
SAMPLES_DIR=${OUT_DIR}
|
|
python scripts/dream.py \
|
|
--from_file ${PROMPT_FILE} \
|
|
--outdir ${OUT_DIR} \
|
|
--sampler plms
|
|
|
|
# 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}
|