Skip to content

Commit

Permalink
fixed random weights bug
Browse files Browse the repository at this point in the history
  • Loading branch information
Ryan Zotti authored and Ryan Zotti committed Sep 12, 2016
1 parent 68f4726 commit a2cc433
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 4 deletions.
2 changes: 0 additions & 2 deletions evaluate_mlp.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,6 @@ def max_pool_2x2(x):
correct_prediction = tf.equal(tf.argmax(y,1), tf.argmax(y_,1))
accuracy = tf.reduce_mean(tf.cast(correct_prediction, tf.float32))

sess.run(tf.initialize_all_variables())

npzfile = np.load("/Users/ryanzotti/Documents/repos/Self_Driving_RC_Car/final_processed_data_3_channels.npz")

# training data
Expand Down
2 changes: 0 additions & 2 deletions mlp_drive.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,6 @@ def max_pool_2x2(x):
correct_prediction = tf.equal(tf.argmax(y,1), tf.argmax(y_,1))
accuracy = tf.reduce_mean(tf.cast(correct_prediction, tf.float32))

sess.run(tf.initialize_all_variables())

fourcc = cv2.VideoWriter_fourcc(*'jpeg')
out = cv2.VideoWriter('output.mov', fourcc, 20.0, (320, 240))
stream = urllib.request.urlopen('http://192.168.0.35/webcam.mjpeg')
Expand Down

0 comments on commit a2cc433

Please sign in to comment.