Skip to content

Commit

Permalink
Update collecting-data-for-larger-fpv-model.py
Browse files Browse the repository at this point in the history
  • Loading branch information
Sentdex authored May 27, 2017
1 parent b42bc9c commit e068e2d
Showing 1 changed file with 12 additions and 8 deletions.
20 changes: 12 additions & 8 deletions collecting-data-for-larger-fpv-model.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,14 +67,18 @@ def keys_to_output(keys):
return output


file_name = 'training_data.npy'

if os.path.isfile(file_name):
print('File exists, loading previous data!')
training_data = list(np.load(file_name))
else:
print('File does not exist, starting fresh!')
training_data = []

starting_value = 486

while True:
file_name = 'training_data-{}.npy'.format(starting_value)

if os.path.isfile(file_name):
print('File exists, moving along',starting_value)
starting_value += 1
else:
print('File does not exist, starting fresh!',starting_value)
break


def main():
Expand Down

0 comments on commit e068e2d

Please sign in to comment.