further removal of Paths

This commit is contained in:
Lincoln Stein 2023-08-14 14:43:08 -04:00 committed by Kent Keirsey
parent 141d438517
commit 5190a4c282
3 changed files with 4 additions and 5 deletions

View File

@ -267,12 +267,11 @@ async def convert_model(
logger = ApiDependencies.invoker.services.logger
try:
logger.info(f"Converting model: {model_name}")
dest = pathlib.Path(convert_dest_directory) if convert_dest_directory else None
ApiDependencies.invoker.services.model_manager.convert_model(
model_name,
base_model=base_model,
model_type=model_type,
convert_dest_directory=dest,
convert_dest_directory=convert_dest_directory,
)
model_raw = ApiDependencies.invoker.services.model_manager.list_model(
model_name, base_model=base_model, model_type=model_type

View File

@ -577,7 +577,7 @@ class ModelManagerService(ModelManagerServiceBase):
alpha: float = 0.5,
interp: Optional[MergeInterpolationMethod] = None,
force: bool = False,
merge_dest_directory: Optional[Path] = Field(
merge_dest_directory: Optional[str] = Field(
default=None, description="Optional directory location for merged model"
),
) -> AddModelResult:

View File

@ -31,7 +31,7 @@ class ModelMerger(object):
def merge_diffusion_models(
self,
model_paths: List[Path],
model_paths: List[str],
alpha: float = 0.5,
interp: Optional[MergeInterpolationMethod] = None,
force: bool = False,
@ -75,7 +75,7 @@ class ModelMerger(object):
alpha: float = 0.5,
interp: Optional[MergeInterpolationMethod] = None,
force: bool = False,
merge_dest_directory: Optional[Path] = None,
merge_dest_directory: Optional[str] = None,
**kwargs,
) -> AddModelResult:
"""