Skip to content

Commit

Permalink
File cleanup for v.1.0.0-alpha
Browse files Browse the repository at this point in the history
  • Loading branch information
AdamDHines committed Aug 15, 2023
1 parent 326829c commit e93d47c
Show file tree
Hide file tree
Showing 44 changed files with 16 additions and 3,049 deletions.
Binary file modified .DS_Store
Binary file not shown.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
weights/
__pycache__/
src/__pycache__/
765 changes: 0 additions & 765 deletions VPRTempo-Saliency.py

This file was deleted.

13 changes: 6 additions & 7 deletions VPRTempo.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
import pickle
import os
import torch
import blitnet
import gc
import math
import timeit
Expand All @@ -38,8 +39,6 @@
sys.path.append('./output')

import numpy as np
import BlitnetDense as blitnet
import blitnet_ensemble as ensemble
import validation as validate
import matplotlib.pyplot as plt

Expand All @@ -58,8 +57,8 @@ def __init__(self):
'''
USER SETTINGS
'''
self.trainingPath = '/home/adam/data/hpc/' # training datapath
self.testPath = '/home/adam/data/testing_data/' # testing datapath
self.trainingPath = '/Users/adam/data/train/' # training datapath
self.testPath = '/Users/adam/data/test/' # testing datapath
self.number_training_images =1000 # alter number of training images
self.number_testing_images = 100# alter number of testing images
self.number_modules = 40 # number of module networks
Expand Down Expand Up @@ -120,7 +119,7 @@ def __init__(self):

# Print network details
print('////////////')
print('VPRTempo - Temporally Encoded Visual Place Recognition v0.1')
print('VPRTempo - Temporally Encoded Visual Place Recognition v1.0.0-alpha')
print('Queensland University of Technology, Centre for Robotics')
print('\\\\\\\\\\\\\\\\\\\\\\\\')
print('Theta: '+str(self.theta_max))
Expand Down Expand Up @@ -327,7 +326,7 @@ def train_start():
net['fire_rate'][fLayer][x][:,i] = self.f_rate[0]+fstep*(i+1)

# create the excitatory and inhibitory connections
idx = blitnet.addWeights(net,iLayer,fLayer,[-1,0,1],[self.p_exc,self.p_inh],self.n_init, False)
idx = blitnet.addWeights(net,iLayer,fLayer,[-1,0,1],[self.p_exc,self.p_inh],self.n_init)
weight = []
weight.append(idx-1)
weight.append(idx)
Expand Down Expand Up @@ -372,7 +371,7 @@ def train_start():
oLayer = blitnet.addLayer(net,[self.number_modules,1,self.output_layer],0.0,0.0,0.0,0.0,0.0,False)

# Add excitatory and inhibitory connections
idx = blitnet.addWeights(net,fLayer,oLayer,[-1.0,0.0,1.0],[1.0,1.0],self.n_init,False)
idx = blitnet.addWeights(net,fLayer,oLayer,[-1.0,0.0,1.0],[1.0,1.0],self.n_init)
weight.append(idx)

# Output spikes for spike forcing (final layer)
Expand Down
Binary file removed __pycache__/VPRTempo.cpython-37.pyc
Binary file not shown.
Binary file added output/.DS_Store
Binary file not shown.
Binary file added src/.DS_Store
Binary file not shown.
Loading

0 comments on commit e93d47c

Please sign in to comment.