Skip to content

Commit

Permalink
fix TF runner to actually work with new model
Browse files Browse the repository at this point in the history
remove additional model
  • Loading branch information
SippieCup committed Apr 20, 2020
1 parent 83edaae commit a8f0313
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 7 deletions.
4 changes: 1 addition & 3 deletions models/dmonitoring_model.current
Git LFS file not shown
3 changes: 0 additions & 3 deletions models/supercombo.keras.new

This file was deleted.

4 changes: 4 additions & 0 deletions selfdrive/controls/controlsd.py
Original file line number Diff line number Diff line change
Expand Up @@ -470,6 +470,10 @@ def controlsd_thread(sm=None, pm=None, can_sock=None):

passive = passive or not openpilot_enabled_toggle

# Passive if internet needed
internet_needed = params.get("Offroad_ConnectivityNeeded", encoding='utf8') is not None
passive = passive or internet_needed

# Pub/Sub Sockets
if pm is None:
pm = messaging.PubMaster(['sendcan', 'controlsState', 'carState', 'carControl', 'carEvents', 'carParams'])
Expand Down
2 changes: 1 addition & 1 deletion selfdrive/modeld/models/driving.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
// gate this here
#define TEMPORAL
#define DESIRE
//#define TRAFFIC_CONVENTION
#define TRAFFIC_CONVENTION

#ifdef QCOM
#include <eigen3/Eigen/Dense>
Expand Down
3 changes: 3 additions & 0 deletions selfdrive/modeld/runners/tfmodel.cc
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,9 @@ void TFModel::execute(float *net_input_buf, int buf_size) {
if (rnn_input_buf != NULL) {
pwrite(rnn_input_buf, rnn_state_size);
}
if (traffic_convention_input_buf != NULL) {
pwrite(traffic_convention_input_buf, traffic_convention_size);
}
pread(output, output_size);
}

0 comments on commit a8f0313

Please sign in to comment.