This commit is contained in:
Brandon Rising
2024-03-15 14:26:05 -04:00
committed by Brandon
parent f78ed3a952
commit 1f3c35ee90
3 changed files with 11 additions and 10 deletions

View File

@ -33,12 +33,12 @@ from invokeai.backend.model_manager.config import (
from invokeai.backend.model_manager.load import ModelCache, ModelConvertCache
from invokeai.backend.util.logging import InvokeAILogger
from tests.backend.model_manager.model_metadata.metadata_examples import (
HFTestLoraMetadata,
RepoCivitaiModelMetadata1,
RepoCivitaiVersionMetadata1,
RepoHFMetadata1,
RepoHFMetadata1_nofp16,
RepoHFModelJson1,
HFTestLoraMetadata,
)
from tests.fixtures.sqlite_database import create_mock_sqlite_database
@ -298,7 +298,7 @@ def mm2_session(embedding_file: Path, diffusers_dir: Path) -> Session:
headers={"Content-Type": "application/json; charset=utf-8", "Content-Length": len(RepoHFMetadata1)},
),
)
with open(embedding_file, "rb") as f:
data = f.read() # file is small - just 15K
sess.mount(