This commit is contained in:
Johannes Stelzer 2023-01-12 10:09:19 +01:00
parent 15f4110696
commit ea298030f3
1 changed files with 3 additions and 2 deletions

View File

@ -180,8 +180,9 @@ class StableDiffusionHolder:
fp_config = 'configs/v2-inference-v.yaml' fp_config = 'configs/v2-inference-v.yaml'
else: else:
raise ValueError("auto detect of config failed. please specify fp_config manually!") raise ValueError("auto detect of config failed. please specify fp_config manually!")
assert os.path.isfile(fp_config), "Auto-init of the config file failed. Please specify manually."
assert os.path.isfile(fp_config), f"Your config file does not exist: {fp_config}" assert os.path.isfile(fp_config), f"Your config file does not exist: {fp_config}"