Open Thanh-Binh opened 1 year ago
Long time! How's going on your side? New stuff?
I think you are right. I vaguely remember there was a reason to use a inverse matrix (IIRC some semantic reason, not mathematical). But I can't recall now. Let me do some experiments and see if it there's a difference. But mathematically it should change nothing since inv(rotate(theta))
is just rotate(-theta)
. Thank you
No, every call to gridCell2d()
with the same parameters will result in the same tensor. The scale/rotation of the modules are controlled by the seed
parameter and has a default value of 42. As long as you didn't change seed, the encoding result shouldn't change.
auto t1 = encoder::gridCell2d({2, 2});
auto t2 = encoder::gridCell2d({2, 2});
assert((t1 == t2).all() == true);
for 1. theoretically OK, but practically? for 2.: OK
Hi Martin, this week I have time to look at your codes, and found somethings in "GridCell2d.hpp" that seem to be not-correct (sorry, if I am wrong!):
The correct formular should be:
What do you think? Thanks