mooch443 / trex

TRex, a fast multi-animal tracking system with markerless identification, and 2D estimation of posture and visual fields.
https://trex.run
GNU General Public License v3.0
81 stars 8 forks source link

Heatmap not working after update to 1.1.9 #184

Open piotrvidal opened 1 year ago

piotrvidal commented 1 year ago

Describe the bug Heatmap not showing up when activated in the "display" menu.

To Reproduce Steps to reproduce the behavior:

  1. Start program with command-line 'trex'
  2. Open an already converted video (a video converted with 1.1.9 version)
  3. Click on display > heatmap
  4. No heatmap appears

If possible, please also include the full terminal output as a file attachment: [10:13:58] Property('gui_show_heatmap') = true [10:13:58] Creating a grid of size 1x1 (for image of size 1280x720) [10:13:58] ------------------- [10:13:58] STATS (frame 0, []) Grid::clear: 0.000984ms Grid::fill: 0.949012ms Heatmap::update_data(): 1.3736ms

[10:13:58]

A grid of size 1x1 for image size 1280x720 seems weird?

Expected behavior (if it is not a simple crash) The heatmap appears over the video, like in 1.1.6 version.

Computer (please complete the following information):

piotrvidal commented 1 year ago

To add further info on this issue:

On 1.1.6, when activating the heatmap, the terminal outputs:

[06:33:31] Creating a grid of size 2048x2048 (for image of size 1280x720)

mooch443 commented 1 year ago

Took some time, but I added a fix to the development branch. You can try it out in the trex-beta channel (e.g. conda create -n beta -c trex-beta trex), if you like. Not sure if it is fixed since it seems to be particular to this resolution somehow, but let's hope that it is :-) Thanks for reporting!