asserts
This commit is contained in:
parent
15f4110696
commit
ea298030f3
|
@ -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}"
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue