Skip to content

Commit

Permalink
Fix max retries while downloading model file
Browse files Browse the repository at this point in the history
Fix max retries to download FlappingBird_model.h5.model file.
  • Loading branch information
Manik Jindal committed Dec 21, 2017
1 parent f86f071 commit 94e6582
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
#Convert image into Black and white
img_channels = 4 #We stack 4 frames

def pretrained_model_download(url, filename):
def pretrained_model_download(url, filename, max_retries=3):
'''Download the file unless it already exists, with retry. Throws if all retries fail.'''
if os.path.exists(filename):
print('Reusing locally cached: ', filename)
Expand Down

0 comments on commit 94e6582

Please sign in to comment.