It should look like this:
what errors do you have in your console?
Episode 10 (Doesnât work):
As I click âEpisode 10: Topology Topologyâ the terminal output does not change at all.
Episode 11 (works fine, stating here for comparison. Only a few minor issues listed):
For your ready info, when I clicked âEpisode 11: Temporal Memory Part 1 Sequencerâ, I get following text, and visualisation works fine:
{uâboostStrengthâ: 1,
uâcolumnDimensionsâ: [1024],
uâdutyCyclePeriodâ: 1000,
uâglobalInhibitionâ: True,
uâinputDimensionsâ: [100],
uâlocalAreaDensityâ: 0,
uâminPctOverlapDutyCycleâ: 0.001,
uânumActiveColumnsPerInhAreaâ: 20,
uâpotentialPctâ: 0.85,
uâpotentialRadiusâ: 100,
uâstimulusThresholdâ: 1,
uâsynPermActiveIncâ: 0.05,
uâsynPermConnectedâ: 0.1,
uâsynPermInactiveDecâ: 0.008,
uâwrapAroundâ: True}
_conjureActiveColumns: 6.79492950439e-05 seconds
_conjurePotentialPools: 0.0749340057373 seconds
_conjureConnectedSynapses: 0.00297904014587 seconds
_conjurePermanences: 0.00664615631104 seconds
Saving SP db350db1 to memoryâŚ
127.0.0.1:46026 - - [05/Feb/2018 23:16:35] âHTTP/1.1 POST /_sp/â - 200 OK
{uâactivationThresholdâ: 10,
uâcellsPerColumnâ: 16,
uâcolumnDimensionsâ: [1024],
uâconnectedPermanenceâ: 0.5,
uâinitialPermanenceâ: 0.21,
uâmaxNewSynapseCountâ: 20,
uâmaxSegmentsPerCellâ: 255,
uâmaxSynapsesPerSegmentâ: 255,
uâminThresholdâ: 10,
uâpermanenceDecrementâ: 0.02,
uâpermanenceIncrementâ: 0.1,
uâpredictedSegmentDecrementâ: 0}
Created TM db350db1
_conjureActiveCells: 8.10623168945e-06 seconds
127.0.0.1:46028 - - [05/Feb/2018 23:16:35] âHTTP/1.1 POST /_tm/â - 200 OK
Visualisation is not as neat as your video though, also not the controls. Transparency level of the cell gets very high, as soon as I click the play button. Screenshot attached.
As for the 3d controls, do you use any keys other than WASDQE? How do you pitch and yaw?
PS: I am presenting HTM theory in the morning to my colleagues, I am preparing the notes and visualisations therefore. Kindly help!
Not the terminal output, the browser console output.
Use the arrow keys, too. I use a combination of both (arrows for strafe).
The page is blank with only the text: Ep10/Choose Gif
Do I need to download these images from somewhere first?
Chrome screenshot below:
No, but I need to see what errors are occurring in your browser. Look up what browser you have and how to show the âweb consoleâ logs.
I use google chrome. I opened DevTools/console using ctrl+shift+J as per: Chrome DevTools - Chrome for Developers
I see the following:
Tone.min.js:7 [Deprecation] GainNode.gain.value setter smoothing is deprecated and will be removed in M64, around January 2018. Please use setTargetAtTime() instead if smoothing is needed. See Chrome Platform Status for more details.
(anonymous) @ Tone.min.js:7
s._initAudioContext @ Tone.min.js:7
(anonymous) @ Tone.min.js:7
t @ Tone.min.js:1
(anonymous) @ Tone.min.js:7
(anonymous) @ Tone.min.js:1
(anonymous) @ Tone.min.js:1
Tone.min.js:7 * Tone.js r9 *
Kindly let me know how do I generate the log by which you can best help me out. (My apologies, but I have never done java script/web debugging, so I am not sure how do I proceed next.)
Thatâs strange. I donât see any errors. But I also donât see anything loaded. What does this URL show you?
I get the following:
Tone.min.js:7 [Deprecation] GainNode.gain.value setter smoothing is deprecated and will be removed in M64, around January 2018. Please use setTargetAtTime() instead if smoothing is needed. See Chrome Platform Status for more details.
(anonymous) @ Tone.min.js:7
Tone.min.js:7 * Tone.js r9 *
cell-viz-1.1.2.bundle.js:20388 THREE.WebGLRenderer 81
As I click somewhere, I additionally get:
clicked: 6, 6, 1 == column 78
topology.js:254 Uncaught TypeError: Cannot read property â78â of undefined
at updateCellRepresentations (topology.js:254)
at spClicked (topology.js:407)
at cellClicked (topology.js:412)
at HTMLCanvasElement.onDocumentMouseDown (topology.js:433)
at HTMLCanvasElement.dispatch (jquery.min.js:5)
at HTMLCanvasElement.y.handle (jquery.min.js:5)
I canât replicate this, so in order to help you out, youâre going to have to help me debug.
Go to http://localhost:8001/client/ep10/choose-gif.html and open up your web console again. Go to the âsourcesâ tab and find the source file at client/ep10/choose-gif.js
, then put a breakpoint here:
Then refresh the page and inspect the resp
object. Does it contain stuff like this?
That highlighted js
folder contains it.
I donât see it.
Entire structure for your ready info, perhaps you see some missing files that I need to generate or something?
Click on your âElementsâ tab, does it not look like this? It should link /static/js/ep10/choose-gif.js
:
Yes, I do have that line under âElementsâ.
However, I do not see /static/js/lib/grid-cells/* ( = 3 js files) + dat.gui.min.js + d3is.org/d3.v4.min.js
Screenshot below
You should not see those grid cell files. Keep looking for the choose-gif.js in your source tab. It has to be there, or else there will be an error somewhere.
Ok, I navigated using the line and I now see that js file.
I added the breakpoint, but Resp Object looks empty?
Screenshot:
So when you hit http://localhost:8001/_gifList
in your browser, are there any errors from the NodeJS terminal window?
I get a page with only the following text. Nothing in the console tab (ctrl+shift+J):
{âgifsâ:}
The gif data should be loaded from here: https://github.com/htm-community/htm-school-viz/tree/master/static/data/gifData
In your local environment, you should look to make sure this path leads to something: