Skip to content

Commit

Permalink
modify condition in download_weights for testing
Browse files Browse the repository at this point in the history
  • Loading branch information
developer0hye committed Oct 15, 2023
1 parent fb4c4d1 commit 75e8ae0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion onepose/utils/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ def update_to(self, b=1, bsize=1, tsize=None):

def download_weights(url: str, filename: str, hash: str) -> None:
if os.path.exists(filename):
if calc_file_hash(filename) == hash:
if calc_file_hash(filename) == hash or hash == 'test':
print(f'{filename} is already downloaded.')
return True
os.remove(filename)
Expand Down

0 comments on commit 75e8ae0

Please sign in to comment.