Skip to content

Commit

Permalink
changed copy_from_cache
Browse files Browse the repository at this point in the history
  • Loading branch information
NikolaiPetukhov committed Feb 28, 2024
1 parent 173006a commit 0b99ef9
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions train/src/dataset_cache.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,10 +64,10 @@ def download_project(
# copy datasets from cache
total = sum([sly.get_cache_size(project_info.id, ds.name) for ds in dataset_infos])
with progress(message="Retreiving data from cache...", total=total) as pbar:
for ds_info in dataset_infos:
sly.copy_from_cache(
project_id=project_info.id,
dest_dir=g.project_dir,
dataset_name=ds_info.name,
progress_cb=pbar.update
)
dataset_names = [ds_info.name for ds_info in dataset_infos]
sly.copy_from_cache(
project_id=project_info.id,
dest_dir=g.project_dir,
dataset_names=dataset_names,
progress_cb=pbar.update
)

0 comments on commit 0b99ef9

Please sign in to comment.