Skip to content

Commit

Permalink
Fix annoying indent error
Browse files Browse the repository at this point in the history
  • Loading branch information
sesevgen committed Nov 16, 2018
1 parent 7648ac1 commit 7a0e01b
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions miprometheus/problems/seq_to_seq/vqa/cog/cog.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@
import gzip
import json
import os
import tarfile
import numpy as np

from miprometheus.problems.seq_to_seq.vqa.vqa_problem import VQAProblem
Expand Down Expand Up @@ -285,14 +286,14 @@ def source_dataset(self, params):
elif self.dataset_type == 'hard':
self.download = self.CheckAndDownload(self.data_folder_child,
'https://storage.googleapis.com/cog-datasets/data_8_7_10.tar')
if self.download:
print('\nDownload complete. Extracting...')
tar = tarfile.open(os.path.expanduser('~/data/downloaded'))
tar.extractall(path=self.data_folder_main)
tar.close()
print('\nDone! Cleaning up.')
os.remove(os.path.expanduser('~/data/downloaded'))
print('\nClean-up complete! Dataset ready.')
if self.download:
print('\nDownload complete. Extracting...')
tar = tarfile.open(os.path.expanduser('~/data/downloaded'))
tar.extractall(path=self.data_folder_main)
tar.close()
print('\nDone! Cleaning up.')
os.remove(os.path.expanduser('~/data/downloaded'))
print('\nClean-up complete! Dataset ready.')

else:
self.download = self.CheckAndDownload(self.data_folder_child)
Expand Down

0 comments on commit 7a0e01b

Please sign in to comment.