Skip to content

Commit

Permalink
Update validate_models.py
Browse files Browse the repository at this point in the history
  • Loading branch information
NIXBLACK11 authored Nov 14, 2023
1 parent 023eab2 commit 3944556
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions laser_encoders/validate_models.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,11 +80,11 @@ def download_laser2(self):
files = ["laser2.pt", "laser2.spm", "laser2.cvocab"]
for file_name in files:
file_path = os.path.join(self.model_dir, file_name)
if os.path.exists(file_path):
return False
else:
if not os.path.exists(file_path):
return True

return False


CACHE_DIR = "/home/user/.cache/models" # Change this to the desired cache directory

Expand Down

0 comments on commit 3944556

Please sign in to comment.