Skip to content

Parameters for roadmap #1

@00Sim

Description

@00Sim

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:

  1. Throughout plotter.cpp and data.cpp: Changed SNN->cnt_layers to SNN->h_cnt_layers[0]

  2. 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions