Skip to content

Commit

Permalink
Use os.makedirs
Browse files Browse the repository at this point in the history
  • Loading branch information
Tony-Y committed Apr 28, 2024
1 parent 0f447a3 commit 259998a
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 259998a

Please sign in to comment.