mirror of
https://github.com/Stability-AI/generative-models.git
synced 2026-02-02 20:34:27 +01:00
Fix checkpoint loading too
This commit is contained in:
@@ -178,6 +178,9 @@ class SamplingPipeline:
|
||||
|
||||
if model_path is None:
|
||||
model_path = pathlib.Path(__file__).parent.parent.resolve() / "checkpoints"
|
||||
if not os.path.exists(model_path):
|
||||
# This supports development installs where checkpoints is root level of the repo
|
||||
model_path = pathlib.Path(__file__).parent.parent.parent.resolve() / "checkpoints"
|
||||
if config_path is None:
|
||||
config_path = (
|
||||
pathlib.Path(__file__).parent.parent.resolve() / "configs/inference"
|
||||
|
||||
Reference in New Issue
Block a user