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

Auto_categorize not working #203

Open caberger1 opened 1 year ago

caberger1 commented 1 year ago

Hello,

I'm trying to load and apply pre-trained categories from a *_categories.npz file using auto_categorize=true. It loads the file okay, but then gets stuck during the application step with the following error:

Screenshot 2023-05-22 140553

Operating system: Windows 11 Terminal: Anaconda powershell

Minimum command:

trex -i F:/Acartia/Trex/test_crap/0512_TEST.pv -d F:/Acartia/Trex/test_crap -auto_categorize true

It will then just stay on the [Categorize] Applying X.xxxx%...... step forever

Oddly, it is ONLY the auto_categorize=true command that fails. If I load and apply categories using the GUI, it works fine. However, I'd really like do this using the command line because I will ultimately need to do it on a computing cluster. I run into the same error on both my local machine and the cluster (with -nowindow=true), and with both a CPU and GPU. I've also tried with and without auto_quit=true.

log file: output.log

Any help would be greatly appreciated!

caberger1 commented 1 year ago

Update: I tested on different versions and it works fine on Trex v1.1.6 and under, So the issue arose around 1.1.7/1.1.8.

mooch443 commented 1 year ago

Hey, sorry for the very late reply. I must have missed it after it was closed / thought it was done :-S Thanks for reporting this issue. Unfortunately the line in the python file does not seem to provide much of a context for dealing with this :-(

Would you be comfortable uploading the categories.npz file + video + settings?

Alternatively, or additionally, if you can, can you provide an output from v1.1.6? Also, with which version did you create the weights in the first place?

As for my own files, I am unable to reproduce this unfortunately. I can load + auto_categorize no problem with the example videos that I am using.

-Tristan