Closed EricThomson closed 4 years ago
The freely-swimming fish tracking can be computationally quite demanding, especially at the resolution you have (1300x1300 px), so if the processor is slightly older and not optimized for single core performance (same-generation Xeons usually are worse compared to the i7-i9 series), this can happen. There is a parameter in fish tracking called bg_downsample, which makes a part of the fish tracking procedure run on a lower-resolution image, usually enough to find the fish if set to 2, or even 3. Setting it to 2 improves the processing speed ~3 times.
Increasing bg_downsample
worked -- useful to know going forward as we order computers for this -- thank you!
I am running a simple protocol to track fish, without showing any stimuli. Below 80Hz, the tracking and acquisition are in sync: when I go above 80 video capture, the tracking rate stays at 80. Someone else using Stytra in our lab uses them together at 150Hz.
My cpu seems to be running pretty hot during this: I have a Xeon Quad Core W-2102 (2.9 GHz). Am I hitting a known cpu-induced limit, or perhaps doing something silly in my code?
Code: