add an error check when loading UniPC support to hopefully block the issue spam

apparently everybody updates their extensions but nobody updates the WebUI. Relates to #22 #23 #24 #25 #26
This commit is contained in:
Alex "mcmonkey" Goodwin
2023-03-27 12:50:18 -07:00
parent 7a9f2694f4
commit 8f18058bf6
+5 -1
View File
@@ -12,8 +12,12 @@
import gradio as gr
import torch, traceback
import dynthres_unipc, dynthres_core
import dynthres_core
from modules import scripts, script_callbacks, sd_samplers, sd_samplers_compvis, sd_samplers_kdiffusion, sd_samplers_common
try:
import dynthres_unipc
except Exception as e:
print(f"\n\n======\nError! UniPC sampler support failed to load! Is your WebUI up to date?\n(Error: {e})\n======")
######################### Data values #########################
VALID_MODES = ["Constant", "Linear Down", "Cosine Down", "Half Cosine Down", "Linear Up", "Cosine Up", "Half Cosine Up", "Power Up", "Power Down"]