From 3bb50926afa38de1911b64509aa9ed8d71576320 Mon Sep 17 00:00:00 2001 From: Brandon Rising Date: Thu, 7 Mar 2024 15:25:20 -0500 Subject: [PATCH] Testing different file chunk sizes --- invokeai/backend/model_manager/hash.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/invokeai/backend/model_manager/hash.py b/invokeai/backend/model_manager/hash.py index c379b5ee77..9ab73cc650 100644 --- a/invokeai/backend/model_manager/hash.py +++ b/invokeai/backend/model_manager/hash.py @@ -166,7 +166,7 @@ class ModelHash: """Hashes a file using a hashlib algorithm.""" hasher = hashlib.new(algorithm) with open(file_path, "rb") as f: - for chunk in iter(lambda: f.read(128 * 1024), b""): + for chunk in iter(lambda: f.read(8 * 1024), b""): hasher.update(chunk) return hasher.hexdigest()