Skip to content

Commit

Permalink
fix oss down broken
Browse files Browse the repository at this point in the history
  • Loading branch information
HowcanoeWang committed Aug 19, 2024
1 parent aed46b0 commit 215ffb8
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion easyidp/data.py
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,10 @@ def download(self, dataset_name, output):
import oss2

self.tqdm_bar = None
oss2.resumable_download(self.bucket, dataset_name+'.zip', output, progress_callback=self.tqdm_progress_bar)
oss2.resumable_download(self.bucket, dataset_name+'.zip', output,
multiget_threshold=30000*1024,
part_size=10000*1024,
progress_callback=self.tqdm_progress_bar)

# 下载完成后关闭进度条
if self.tqdm_bar:
Expand Down

0 comments on commit 215ffb8

Please sign in to comment.