# 2D Object Recognition Project

**URL:** <https://discourse.numenta.org/t/2d-object-recognition-project/5465>\
**Category:** Applications\
**Created:** [February 17, 2019, 2:55am UTC](https://discourse.numenta.org/t/2d-object-recognition-project/5465 "2019-02-17T02:55:10Z")\
**Posts on this page:** 1\
**Showing post:** 70

<div class="post-metadata">

**Author:** ![Zbysekz](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.numenta.org/zbysekz/32/4299_2.png) [@Zbysekz](https://discourse.numenta.org/u/Zbysekz)\
**Post date:** [August 21, 2019, 12:35pm UTC](https://discourse.numenta.org/t/2d-object-recognition-project/5465/70 "2019-08-21T12:35:00Z")

</div>

I have used the grid cell encoder output as the direct representation of the LL (Location layer) and wired up to the secondary distal input of the SL(Sensor layer).

I got this result:

 ![a](https://canada1.discourse-cdn.com/flex030/uploads/numenta/original/2X/4/4ac16b24c9294153ba506761edb4ed5f02eb2510.gif)

And there is anomaly spike always on [7,4] when goes to the RIGHT  
and on [4,4] when goes to the LEFT.

My first tought was that it is because of [Repeating inputs problem](https://discourse.numenta.org/t/exploring-the-repeating-inputs-problem/5498) so i call tm.reset() when agent comes to the same place where he started ( [3,4] ).

So then i got anomaly of 1.0 always the next step after the reset(). Is that expected?  
When i ignore the 1.0 after each reset anomaly looks like that:  
 ![obrazek](https://canada1.discourse-cdn.com/flex030/uploads/numenta/original/2X/b/b3fc0e34a4171b02de5ae369c0b9eb8c32818b20.png)  
Anomaly always at [7,4] when going to the RIGHT.

The dimensions of the SL,LL and other parameters are really roughly set-up… any recommendations for the dimensions of the layers?

Also about the LL - now its just agent position encoded by GCE, but as i understand, it should be SP with GCE on its proximal input right? And i shouldn’t encode agent position but rather his movement. (incremental) and keep the actual position de facto inside the LL.

code is on this [branch](https://github.com/Zbysekz/htm-2d-object-modeling/tree/gridCells)  
Thanks for any help or recommendations

---

_[View the full topic](https://discourse.numenta.org/t/2d-object-recognition-project/5465)._
