Introduction
Introduction Statistics Contact Development Disclaimer Help
Fix annna output when stable diffusion fails. Fix sd model. - annna - Annna the…
git clone git://bitreich.org/annna/ git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws6…
Log
Files
Refs
Tags
README
---
commit 60acb07430a8a4ac42a27ea51085461799c45f2d
parent 29233d1d1d40e10b7e9d6fc497cfb561f6b03bcb
Author: Annna Robert-Houdin <[email protected]>
Date: Wed, 1 Jan 2025 16:57:33 +0100
Fix annna output when stable diffusion fails. Fix sd model.
Diffstat:
M annna-message-common | 20 +++++++++++++-------
M stable-diffusion | 5 +++--
M stable-diffusion-emoji | 2 +-
3 files changed, 17 insertions(+), 10 deletions(-)
---
diff --git a/annna-message-common b/annna-message-common
@@ -54,13 +54,19 @@ case "${text}" in
then
annna-say -s "${server}" -c "${channel}" "${user}, sorry, goph…
else
- query=${text#**::} query=${query%%::*}
- if [ -n "${user}" ] && [ "${user}" != "annna-cmd" ];
- then
- annna-say -s "${server}" -c "${channel}" "${user}, $(s…
- else
- annna-say -s "${server}" -c "${channel}" "$(stable-dif…
- fi
+ {
+ query=${text#**::} query=${query%%::*}
+ emojiuri="$(stable-diffusion-emoji "${query}")"
+ if [ -n "${emojiuri}" ];
+ then
+ if [ -n "${user}" ] && [ "${user}" != "annna-c…
+ then
+ annna-say -s "${server}" -c "${channel…
+ else
+ annna-say -s "${server}" -c "${channel…
+ fi
+ fi
+ } &
fi
;;
*http*://*|*ytdl://*)
diff --git a/stable-diffusion b/stable-diffusion
@@ -9,10 +9,11 @@ fi
sdbase="/br/ai/stable-diffusion.cpp"
sdcmd="${sdbase}/build/bin/sd -t 16 --steps 20 -s -1 -H 512 -W 512 --cfg-scale…
-sdmodel="${SD_MODEL:-${sdbase}/models/v2-1_768-nonema-pruned-ggml-model-f16.bi…
+sdmodel="${SD_MODEL:-${sdbase}/models/epicphotogasm_x.f16.gguf}"
sdnegative='nipples, busty, nude, lowres, (worst quality, low quality, normal …
outputf="${1}"
shift 1
-${sdcmd} -m ${sdmodel} -o "${outputf}" -p "$@" -n "${sdnegative}" >/dev/null 2…
+${sdcmd} --type f16 -m ${sdmodel} -o "${outputf}" -p "$@" -n "${sdnegative}" >…
+#${sdcmd} -m ${sdmodel} -o "${outputf}" -p "$@" -n "${sdnegative}" -v
diff --git a/stable-diffusion-emoji b/stable-diffusion-emoji
@@ -36,7 +36,7 @@ emojiorig="${emojifilebase}.orig"
if [ ! -e "${emojidb}/${emojifile}" ];
then
- SD_MODEL="/br/ai/stable-diffusion.cpp/models/epicphotogasm_x-ggml-mode…
+ SD_MODEL="/br/ai/stable-diffusion.cpp/models/epicphotogasm_x.f16.gguf"…
stable-diffusion "${emojidb}/${emojifile}" "${emojiprompt}"
if [ -e "${emojidb}/${emojifile}" ];
then
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.