Introduction
Introduction Statistics Contact Development Disclaimer Help
SECRET - annna - Annna the nice friendly bot.
git clone git://bitreich.org/annna/ git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws6…
Log
Files
Refs
Tags
README
---
commit acfa0c2bb53482408032150ed6744624d8c431d8
parent c1e44c02e8b97671d804717360a290c92ce2d5cb
Author: Annna Robert-Houdin <[email protected]>
Date: Tue, 22 Jul 2025 20:06:21 +0200
SECRET
Diffstat:
M stable-diffusion | 64 ++++++++++++++++++++++++++++-…
1 file changed, 59 insertions(+), 5 deletions(-)
---
diff --git a/stable-diffusion b/stable-diffusion
@@ -8,12 +8,69 @@ then
"$(basename "${0}")" >&2
exit 1
fi
+
+outputf="${1}"
+shift 1
+prompt="$@"
+
sdnegative='nipples, busty, nude, lowres, (worst quality, low quality, normal …
+sdthreads=16
+
sdwidth=512
+case "${prompt}" in
+*width=*)
+ sdwidth="$(printf "${prompt}\n" \
+ | sed 's, ,\n,g' \
+ | grep "^width=" \
+ | sed 's,.*=,,')"
+ prompt="$(printf "${prompt}\n" \
+ | sed 's, ,\n,g' \
+ | grep -v "^width=" \
+ | paste -sd ' ')"
+ ;;
+esac
+
sdheight=512
-sdsteps=20
-sdthreads=16
+case "${prompt}" in
+*height=*)
+ sdheight="$(printf "${prompt}\n" \
+ | sed 's, ,\n,g' \
+ | grep "^height=" \
+ | sed 's,.*=,,')"
+ prompt="$(printf "${prompt}\n" \
+ | sed 's, ,\n,g' \
+ | grep -v "^height=" \
+ | paste -sd ' ')"
+ ;;
+esac
+
+sdsteps=512
+case "${prompt}" in
+*steps=*)
+ sdsteps="$(printf "${prompt}\n" \
+ | sed 's, ,\n,g' \
+ | grep "^steps=" \
+ | sed 's,.*=,,')"
+ prompt="$(printf "${prompt}\n" \
+ | sed 's, ,\n,g' \
+ | grep -v "^steps=" \
+ | paste -sd ' ')"
+ ;;
+esac
+
sdscale=8
+case "${prompt}" in
+*scale=*)
+ sdscale="$(printf "${prompt}\n" \
+ | sed 's, ,\n,g' \
+ | grep "^scale=" \
+ | sed 's,.*=,,')"
+ prompt="$(printf "${prompt}\n" \
+ | sed 's, ,\n,g' \
+ | grep -v "^scale=" \
+ | paste -sd ' ')"
+ ;;
+esac
function local_sd() {
outputf="${1}"
@@ -64,9 +121,6 @@ function remote_sd() {
ollama-gpu rm "/tmp/${ofilename}"
}
-outputf="${1}"
-shift 1
-prompt="$@"
remote_sd "${outputf}" "${prompt}"
[ ! -s "${outputf}" ] && local_sd "${outputf}" "${prompt}"
[ ! -s "${outputf}" -a -f "${outputf}" ] && rm -f "${outputf}"
You are viewing proxied material from bitreich.org. The copyright of proxied material belongs to its original authors. Any comments or complaints in relation to proxied material should be directed to the original authors of the content concerned. Please see the disclaimer for more details.