Skip to content

Commit 197fc43

Browse files
author
jkamelin
committed
hasher initialization fixed
1 parent 452ba6a commit 197fc43

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

tools/model_tools/src/openvino/model_zoo/download_engine/cache.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ class ChecksumSHA384(Checksum):
106106
RE_SHA384SUM = re.compile(r'[0-9a-fA-F]{96}')
107107

108108
def __init__(self, value):
109-
self.type = hashlib.sha384()
109+
self.type = hashlib.sha384
110110
self.value = value
111111

112112
@classmethod

tools/model_tools/src/openvino/model_zoo/download_engine/downloader.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ def _try_download(self, reporter, file, start_download, size, hasher):
8686
file.seek(0)
8787
file.truncate()
8888
progress.size = 0
89-
progress.hasher = hasher
89+
progress.hasher = hasher()
9090

9191
self._process_download(reporter, chunk_iterable, size, progress, file)
9292

0 commit comments

Comments
 (0)