JustPaste.it

#############################################################################
#############################################################################
### This file contains the setup of the neuronal network for segmentation ###
#############################################################################
#############################################################################

from hbp_nrp_cle.brainsim import simulator as sim
from pyNN.connectors import Connector

... some lines ... then:


######################################################################################
### Create the neuron layers ((Retina,) LGN, V1, V2, V4, Boundary and Surface Segmentation Layers) ###
######################################################################################


# Neural LGN cells will receive input values from LGN
LGNBright = sim.Population(1*1*imageNumPixelRows*imageNumPixelColumns, cellType)
LGNDark = sim.Population(1*1*imageNumPixelRows*imageNumPixelColumns, cellType)

# Simple oriented neurons
V1Layer6P1 = sim.Population(1*numOrientations*numPixelRows*numPixelColumns, cellType)
V1Layer6P2 = sim.Population(1*numOrientations*numPixelRows*numPixelColumns, cellType)
V1Layer4P1 = sim.Population(1*numOrientations*numPixelRows*numPixelColumns, cellType)
V1Layer4P2 = sim.Population(1*numOrientations*numPixelRows*numPixelColumns, cellType)

# Complex cells
V1Layer23 = sim.Population(1*numOrientations*numPixelRows*numPixelColumns, cellType)
V1Layer23Pool = sim.Population(1*numOrientations*numPixelRows*numPixelColumns, cellType)
V1Layer23Inter1 = sim.Population(1*numOrientations*numPixelRows*numPixelColumns, cellType)
V1Layer23Inter2 = sim.Population(1*numOrientations*numPixelRows*numPixelColumns, cellType)

###### All subsequent areas have multiple segmentation representations

# Area V2
V2Layer23Inter1 = sim.Population(numSegmentationLayers*numOrientations*numPixelRows*numPixelColumns, cellType)
V2Layer23Inter2 = sim.Population(numSegmentationLayers*numOrientations*numPixelRows*numPixelColumns, cellType)
V2Layer6 = sim.Population(numSegmentationLayers*numOrientations*numPixelRows*numPixelColumns, cellType)
V2Layer4 = sim.Population(numSegmentationLayers*numOrientations*numPixelRows*numPixelColumns, cellType)
V2Layer23 = sim.Population(numSegmentationLayers*numOrientations*numPixelRows*numPixelColumns, cellType)
V2Layer23Pool = sim.Population(numSegmentationLayers*numOrientations*numPixelRows*numPixelColumns, cellType)

# Area V4
V4Brightness = sim.Population(numSegmentationLayers*1*imageNumPixelRows*imageNumPixelColumns, cellType)
V4BrightnessFlow = sim.Population(numSegmentationLayers*numBrightnessSpreadingSpeeds*numBrightnessFlows*imageNumPixelRows*imageNumPixelColumns, cellType)
V4InterBrightnessOut = sim.Population(numSegmentationLayers*numBrightnessSpreadingSpeeds*numBrightnessFlows*imageNumPixelRows*imageNumPixelColumns, cellType)
V4Darkness = sim.Population(numSegmentationLayers*1*imageNumPixelRows*imageNumPixelColumns, cellType)
V4DarknessFlow = sim.Population(numSegmentationLayers*numBrightnessSpreadingSpeeds*numBrightnessFlows*imageNumPixelRows*imageNumPixelColumns, cellType)
V4InterDarknessOut = sim.Population(numSegmentationLayers*numBrightnessSpreadingSpeeds*numBrightnessFlows*imageNumPixelRows*imageNumPixelColumns, cellType)

 


######################################################################
### Neurons layers are defined, now set up connexions between them ###
######################################################################

... some other lines