Skip to content

Commit

Permalink
Fixed json file saving
Browse files Browse the repository at this point in the history
  • Loading branch information
bill-lotter committed Aug 29, 2016
1 parent c2f412b commit 7728ca1
Showing 1 changed file with 1 addition and 12 deletions.
13 changes: 1 addition & 12 deletions kitti_train.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,16 +76,5 @@

if save_model:
json_string = model.to_json()
with open(f, "w") as f:
with open(json_file, "w") as f:
f.write(json_string)


# will remove this
import matplotlib
matplotlib.use('Agg')
import matplotlib.pyplot as plt
plt.plot(history.history['loss'])
plt.plot(history.history['val_loss'])
plt.xlabel('Epoch')
plt.ylabel('Loss')
plt.savefig('error_curve.png')

0 comments on commit 7728ca1

Please sign in to comment.