diff options
-rw-r--r-- | html/footer.html | 2 | ||||
-rw-r--r-- | modules/sd_hijack_optimizations.py | 2 | ||||
-rw-r--r-- | modules/ui.py | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/html/footer.html b/html/footer.html index 1ce13295..69b2372c 100644 --- a/html/footer.html +++ b/html/footer.html @@ -1,5 +1,5 @@ <div>
- <a href="/docs">API</a>
+ <a href="{api_docs}">API</a>
•
<a href="https://github.com/AUTOMATIC1111/stable-diffusion-webui">Github</a>
•
diff --git a/modules/sd_hijack_optimizations.py b/modules/sd_hijack_optimizations.py index 3c71e6b5..53e27ade 100644 --- a/modules/sd_hijack_optimizations.py +++ b/modules/sd_hijack_optimizations.py @@ -602,7 +602,7 @@ def sdp_attnblock_forward(self, x): q, k, v = (rearrange(t, 'b c h w -> b (h w) c') for t in (q, k, v))
dtype = q.dtype
if shared.opts.upcast_attn:
- q, k = q.float(), k.float()
+ q, k, v = q.float(), k.float(), v.float()
q = q.contiguous()
k = k.contiguous()
v = v.contiguous()
diff --git a/modules/ui.py b/modules/ui.py index 3315cc17..e2e3b6da 100644 --- a/modules/ui.py +++ b/modules/ui.py @@ -1501,7 +1501,7 @@ def create_ui(): gr.Audio(interactive=False, value=os.path.join(script_path, "notification.mp3"), elem_id="audio_notification", visible=False)
footer = shared.html("footer.html")
- footer = footer.format(versions=versions_html())
+ footer = footer.format(versions=versions_html(), api_docs="/docs" if shared.cmd_opts.api else "https://github.com/AUTOMATIC1111/stable-diffusion-webui/wiki/API")
gr.HTML(footer, elem_id="footer")
settings.add_functionality(demo)
|