if args.device:
    device_no = args.device
else:
    device_no =0

if args.input_filename:
    input_filename = args.input_filename
else:
    input_filename = 'test_files/fly_large.h5'

if args.output_filename:
    output_filename = args.output_filename
else:
    output_filename = "rec"

cuda.init()
context1 = cuda.Device(device_no).make_context()
atexit.register(cuda.Context.pop)

Mx = 40

vtem.VTEM_Gabor_IAF(input_filename, 'spikes.h5', 
                    2*np.pi*10, h5input=True)
vtdm.decode_video('spikes.h5', 'dsw.h5', 'dirich.h5'
          , 0, 1, 0.01, Mx, rnn=True, alpha=5000, steps=4000, 
          dtype = np.float32, stitching=True, stitch_interval =0.2,
          spatial_stitching = True, spatial_interval = [80,80],
          output=output_filename, output_format=1, write_blocks=True)

Beispiel #2
0
args = parser.parse_args()

if args.device:
    device_no = args.device
else:
    device_no =0

if args.input_filename:
    input_filename = args.input_filename
else:
    input_filename = 'test_files/fly_small.avi'

if args.output_filename:
    output_filename = args.output_filename
else:
    output_filename = "rec"

cuda.init()
context1 = cuda.Device(device_no).make_context()
atexit.register(cuda.Context.pop)

Mx = 40

vtem.VTEM_Gabor_IAF(input_filename, 'spikes.h5', 
                          2*np.pi*10, h5input=False)
vtdm.decode_video('spikes.h5', 'dsw.h5', 'dirich.h5',
          0, 0.15, 0.01, Mx, rnn=True, alpha=5000, steps=4000, 
          dtype = np.float32, output=output_filename, output_format=0)

Beispiel #3
0
if args.output_filename:
    output_filename = args.output_filename
else:
    output_filename = "rec"

cuda.init()
context1 = cuda.Device(device_no).make_context()
atexit.register(cuda.Context.pop)

Mx = 40

vtem.VTEM_Gabor_IAF(input_filename, 'spikes.h5', 2 * np.pi * 10, h5input=True)
vtdm.decode_video('spikes.h5',
                  'dsw.h5',
                  'dirich.h5',
                  0,
                  1,
                  0.01,
                  Mx,
                  rnn=True,
                  alpha=5000,
                  steps=4000,
                  dtype=np.float32,
                  stitching=True,
                  stitch_interval=0.2,
                  spatial_stitching=True,
                  spatial_interval=[80, 80],
                  output=output_filename,
                  output_format=0,
                  write_blocks=True)
Beispiel #4
0
if args.device:
    device_no = args.device
else:
    device_no =0

if args.input_filename:
    input_filename = args.input_filename
else:
    input_filename = 'test_files/fly_small.avi'

if args.output_filename:
    output_filename = args.output_filename
else:
    output_filename = "rec"

cuda.init()
context1 = cuda.Device(device_no).make_context()
atexit.register(cuda.Context.pop)

Mx = 40

vtem.VTEM_Gabor_IAF(input_filename, 'spikes.h5', 
                          2*np.pi*10, h5input=False)

vtdm.decode_video('spikes.h5', 'dsw.h5', 'dirich.h5'
          , 0, 1, 0.01, Mx, rnn=True, alpha=5000, steps=4000, 
          dtype = np.float32, stitching=True, stitch_interval=0.2 , 
          output=output_filename, output_format=1)


Beispiel #5
0
if args.input_filename:
    input_filename = args.input_filename
else:
    input_filename = 'test_files/fly_small.avi'

if args.output_filename:
    output_filename = args.output_filename
else:
    output_filename = "rec"

cuda.init()
context1 = cuda.Device(device_no).make_context()
atexit.register(cuda.Context.pop)

Mx = 40

vtem.VTEM_Gabor_IAF(input_filename, 'spikes.h5', 2 * np.pi * 10, h5input=False)
vtdm.decode_video('spikes.h5',
                  'dsw.h5',
                  'dirich.h5',
                  0,
                  0.15,
                  0.01,
                  Mx,
                  rnn=True,
                  alpha=5000,
                  steps=4000,
                  dtype=np.float32,
                  output=output_filename,
                  output_format=0)
Beispiel #6
0
    input_filename = 'test_files/fly_small.avi'

if args.output_filename:
    output_filename = args.output_filename
else:
    output_filename = "rec"

cuda.init()
context1 = cuda.Device(device_no).make_context()
atexit.register(cuda.Context.pop)

Mx = 40

vtem.VTEM_Gabor_IAF(input_filename, 'spikes.h5', 2 * np.pi * 10, h5input=False)

vtdm.decode_video('spikes.h5',
                  'dsw.h5',
                  'dirich.h5',
                  0,
                  1,
                  0.01,
                  Mx,
                  rnn=True,
                  alpha=5000,
                  steps=4000,
                  dtype=np.float32,
                  stitching=True,
                  stitch_interval=0.2,
                  output=output_filename,
                  output_format=1)