Skip to content

Commit

Permalink
Add restart hint as helptext for known issue
Browse files Browse the repository at this point in the history
  • Loading branch information
carson-katri committed Sep 10, 2022
1 parent adb2456 commit 1f5f6c0
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion __init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -237,13 +237,19 @@ def draw(self, context):
warning_box = model_weights_box.box()
warning_box.label(text="Make sure the file is renamed to 'model.ckpt', not 'sd-v1-4.ckpt'", icon="ERROR")
model_weights_box.operator(OpenWeightsDirectory.bl_idname, icon="FOLDER_REDIRECT")

if weights_installed and dependencies_installed:
restart_box = layout.box()
restart_box.label(text="Restart Blender", icon="FILE_REFRESH")
restart_box.label(text="After installing Blender may need a restart.")

if dependencies_installed and weights_installed:
is_valid_box = layout.box()
is_valid_box.label(text="Validate Installation", icon="EXPERIMENTAL")
if is_install_valid is not None:
if is_install_valid:
is_valid_box.label(text="Install validation succeeded.", icon="CHECKMARK")
is_valid_box.label(text="If nothing happens on your first generation, try restarting.")
else:
is_valid_box.label(text="Install validation failed.", icon="ERROR")
else:
Expand Down Expand Up @@ -510,7 +516,7 @@ def perform():
# how strongly the prompt influences the image (7.5) (must be >1)
cfg_scale=self.cfgscale,
# path to an initial image - its dimensions override width and height
init_img=scene.init_img.filepath if scene.init_img is not None else None,
init_img=scene.init_img.filepath if scene.init_img is not None and self.use_init_img else None,

fit=self.fit,
# strength for noising/unnoising init_img. 0.0 preserves image exactly, 1.0 replaces it completely
Expand Down

0 comments on commit 1f5f6c0

Please sign in to comment.