Skip to content

Commit

Permalink
Merge pull request #19 from Tony-Y/emnist_mkdirs
Browse files Browse the repository at this point in the history
Use os.makedirs
  • Loading branch information
Tony-Y authored Apr 29, 2024
2 parents f742c06 + ffd2618 commit cf8b85b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions examples/emnist/download.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
from torchvision.datasets.utils import download_url, makedir_exist_ok
from torchvision.datasets.utils import download_url
import os

raw_folder = '.data/EMNIST/raw'

url = 'https://biometrics.nist.gov/cs_links/EMNIST/gzip.zip'
md5 = "58c8d27c78d21e728a6bc7b3cc06412e"

makedir_exist_ok(raw_folder)
os.makedirs(raw_folder, exist_ok=True)

# download files
print('Downloading zip archive')
Expand Down

0 comments on commit cf8b85b

Please sign in to comment.