Skip to content

Commit

Permalink
Changed sp_viewer.py to disable dithering when converting images
Browse files Browse the repository at this point in the history
from grayscale to black and white.

Changed exampleView.py to save a screenshot of the results.
  • Loading branch information
Jim Bridgewater committed Jun 6, 2014
1 parent 1f744ca commit e1aa9ff
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion exampleView.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ def main():
potentialRadius = 10000, # Ensures 100% potential pool
potentialPct = 1, # Neurons can connect to 100% of input
globalInhibition = True,
numActiveColumnsPerInhArea = 3, # Only one feature active at a time
numActiveColumnsPerInhArea = 1, # Only one feature active at a time
# All input activity can contribute to feature output
stimulusThreshold = 0,
synPermInactiveDec = 0.1,
Expand Down
4 changes: 2 additions & 2 deletions sp_viewer.py
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ def run(self):

# Update the network
self.sp.compute(patch, True, activeArray)

# Draw column activations
self._drawColumnActivity(activeArray)

Expand All @@ -115,7 +115,7 @@ def run(self):

# Slow things down for viewing
time.sleep(self.replayDelay)

# Display our perms after each epoch
self._drawPermanences()

Expand Down

0 comments on commit e1aa9ff

Please sign in to comment.