Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

dfdf55 data_prep_mnist.py #2

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 2 additions & 14 deletions data_utils/data_prep_mnist.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,19 +20,7 @@
dir_list = [['0','1'],['2','3'],['4','5'],['6','7'],['8', '9']]


#dictionary mapping the digits to the task directory
#images belonging to '0' and '1' map to Task_5 directory
#images belonging to '2' and '3' map to Task_6 directory
#and so on
task_dict = {'0': '5', '1': '5',
'2': '6', '3': '6',
'4': '7', '5': '7',
'6': '8', '7': '8',
'8': '9', '9': '9'}


#path to the data file, already been created
path_to_file = "../Data"
#di
path_to_zip_file = "./mnist_jpgfiles.zip"

#need to use it since G-Drive requires 2 GET Requests for larger files
Expand Down Expand Up @@ -100,4 +88,4 @@

total_time = time.time() - since

print ("This process took {} minutes and {} seconds to execute".format(total_time//60, total_time%60))
print ("This process took {} minutes and {} seconds to execute".format(total_time//60, total_time%60))