-
Notifications
You must be signed in to change notification settings - Fork 26
Description
Hello,
Thank you for the great work! I am trying to look at spike outputs from the cuSNN-samples roadmap data using what I believe are the parameters from the paper. The SSConv layer spikes work great and look like the paper results, but the MSConv layer's spikes are very very sparse (just a few spikes if any at all).
This was tested using the MSConv-test file and pretrained weights for roadmap data. Are these the correct parameters (from main.cpp)?
const std::string dataset_dir = "../data/roadmap";
const int inp_size[] = {2, 264, 320}
const float inp_scale[] = {2.f, 2.f}; // (height, width)
// simulation settings
const int runs = 1000000;
const float sim_time = 150.f; // ms
const float sim_step = 1.f; // ms
const float sim_int = 1.f; // sim_steps input integration
const float scale_ets = 1.f;
const bool openGL = true;
const bool load_model = true;
const bool store_model_it = true;
const bool record_activity = false;
const bool data_augmentation = true;
const int store_model_it_gap = -1;
std::vector<int> kernels_display_idx = {0, 128};
std::string weights_dir = "../weights/roadmap";
std::string snapshots_dir = "../cuSNN_snapshots";
// neuron and synapse models
float neuron_refrac = 1.f; // ms
float synapse_trace_init = 0.15f;
bool inhibition = true;
bool drop_delays = false;
float drop_delays_th = 0.5f;
The original code is the same except for a few changes as I was getting compile errors:
-
Throughout plotter.cpp and data.cpp: Changed
SNN->cnt_layerstoSNN->h_cnt_layers[0] -
Line 683: Changed
float value = this->SNN->h_layers[l]->h_kernels[kernel]->h_node_posttrace[node_index];
to
float value = this->SNN->h_layers[l]->h_kernels[kernel]->h_node_train[node_index];
Thanks!
Simin