mirror of
https://github.com/invoke-ai/InvokeAI.git
synced 2026-04-23 03:00:31 -04:00
increase sha256 chunksize when calculating model hash
- Thanks to @abdBarho, who discovered that increasing the chunksize dramatically decreases the amount of time to calculate the hash.
This commit is contained in:
@@ -1162,7 +1162,7 @@ class ModelManager(object):
|
||||
return self.device.type == "cuda"
|
||||
|
||||
def _diffuser_sha256(
|
||||
self, name_or_path: Union[str, Path], chunksize=4096
|
||||
self, name_or_path: Union[str, Path], chunksize=16777216
|
||||
) -> Union[str, bytes]:
|
||||
path = None
|
||||
if isinstance(name_or_path, Path):
|
||||
|
||||
Reference in New Issue
Block a user