Browse Source

업데이트 'download_sample.py'

Hio-Been Han 3 years ago
parent
commit
3bdb706376
1 changed files with 2 additions and 2 deletions
  1. 2 2
      download_sample.py

+ 2 - 2
download_sample.py

@@ -8,7 +8,7 @@ print('Target directory ... => [%s%s]'%(dir_origin,dir_dataset))
 
 #!rm -rf /content/dataset/
 import requests
-def download_sample( dataset_to_download = range(1,7), dir_dataset = dir_dataset ):
+def download( dataset_to_download = range(1,7), dir_dataset = dir_dataset ):
   # Check directory
   if not path.isdir('%s%s'%(dir_origin,dir_dataset)):
     mkdir('%s%s'%(dir_origin,dir_dataset))
@@ -37,7 +37,7 @@ def download_sample( dataset_to_download = range(1,7), dir_dataset = dir_dataset
 # Initiate downloading
 dataset_to_download = [2] # Partial download to prevent long download time
 #dataset_to_download = [1,2,3,4,5,6] # Download of whole dataset
-download_sample(dataset_to_download)
+download(dataset_to_download)
 print('\n============= Download finished ==================\n\n')
 
 # List up 'dataset/' directory