Skip to content

Commit

Permalink
wrong to_download datasets list fix
Browse files Browse the repository at this point in the history
  • Loading branch information
NikolaiPetukhov committed Feb 28, 2024
1 parent e32f5f4 commit 510b3fe
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions train/src/dataset_cache.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ def download_project(
return

# get datasets to download and cached
to_download = [info for info in dataset_infos if sly.is_cached(project_info.id, info.name)]
cached = [info for info in dataset_infos if not sly.is_cached(project_info.id, info.name)]
to_download = [info for info in dataset_infos if not sly.is_cached(project_info.id, info.name)]
cached = [info for info in dataset_infos if sly.is_cached(project_info.id, info.name)]
if len(cached) == 0:
log_msg = "No cached datasets found"
else:
Expand Down

0 comments on commit 510b3fe

Please sign in to comment.