From 57514556181b2233c61efd8f52c11a4f0b07835d Mon Sep 17 00:00:00 2001 From: Brandon Rising Date: Mon, 18 Mar 2024 23:58:33 -0400 Subject: [PATCH] Remove redundant embedding file read --- tests/backend/model_manager/model_manager_fixtures.py | 3 --- 1 file changed, 3 deletions(-) diff --git a/tests/backend/model_manager/model_manager_fixtures.py b/tests/backend/model_manager/model_manager_fixtures.py index 16194841b0..7b38c2fb38 100644 --- a/tests/backend/model_manager/model_manager_fixtures.py +++ b/tests/backend/model_manager/model_manager_fixtures.py @@ -301,9 +301,6 @@ 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( "https://huggingface.co/api/models/InvokeAI-test/textual_inversion_tests?blobs=True", TestAdapter(