diff --git a/invokeai/backend/install/model_install_backend.py b/invokeai/backend/install/model_install_backend.py index e6e400ca70..76ae991979 100644 --- a/invokeai/backend/install/model_install_backend.py +++ b/invokeai/backend/install/model_install_backend.py @@ -7,7 +7,7 @@ import warnings from dataclasses import dataclass, field from pathlib import Path from tempfile import TemporaryDirectory -from typing import List, Dict, Callable, Union, Set +from typing import List, Dict, Callable, Union, Set, Optional import requests from diffusers import DiffusionPipeline @@ -400,7 +400,7 @@ class ModelInstall(object): attributes.update(dict(config=str(legacy_conf))) return attributes - def relative_to_root(self, path: Path, root: None) -> Path: + def relative_to_root(self, path: Path, root: Optional[Path] = None) -> Path: root = root or self.config.root_path if path.is_relative_to(root): return path.relative_to(root) diff --git a/invokeai/frontend/install/model_install.py b/invokeai/frontend/install/model_install.py index f552ac9077..4d47e9a333 100644 --- a/invokeai/frontend/install/model_install.py +++ b/invokeai/frontend/install/model_install.py @@ -650,7 +650,7 @@ def process_and_execute( ): # need to reinitialize config in subprocess config = InvokeAIAppConfig.get_config() - config.parse_args() + config.parse_args(['--root',opt.root]) # set up so that stderr is sent to conn_out if conn_out: diff --git a/invokeai/version/invokeai_version.py b/invokeai/version/invokeai_version.py index 33f0563bca..f383961423 100644 --- a/invokeai/version/invokeai_version.py +++ b/invokeai/version/invokeai_version.py @@ -1 +1 @@ -__version__ = "3.0.1post1" +__version__ = "3.0.1post2"