Regarding compute_ang_vel.m missing perframe feature file

11 views
Skip to first unread message

Divyansh Rana

unread,
10:42 AM (11 hours ago) 10:42 AM
to JAABA
Hi Everyone,
I was using JAABA for training a classifier using outputs from flytracker. Some context - I have fruit flies videos (4x3 chambers) and I want to make a lunging classifier. For that when I am wanting to load the output from Flytracker to JAABA I select the target as "eyrun_flies" but JAABA while computing the missing perframe features gives me an error of compute_ang_vel.m file being missing. 

Any updates on this as to how we can overcome or mitigate this issue. I saw at some webpage that we need to rename some of the perframe files but which ones to specifically target is my concern.

Regards,
Divyansh Rana

Divyansh Rana

unread,
11:02 AM (10 hours ago) 11:02 AM
to JAABA
If however I am using flies it does work but using eyrun_flies as target it pops up this error. I have a pretrained classifier that I want to use but due to the target mismatch that classifier isn't working here. Any idea how can this be fixed? Maybe renaming or something?
Screenshot 2026-03-23 at 11.00.48 AM.png

Alice Robie

unread,
11:31 AM (10 hours ago) 11:31 AM
to Divyansh Rana, JAABA
The ang_vel perframe feature should be computed by FlyTracker directly. It sounds like you didn't select 'save JAABA folders and its perframe features sub-option when you ran the FlyTracker. 
You can either rerun the the FlyTracker with these options selected or if you are a capable coder you can check whether these features exist in the *-feat.mat file and use writeJAABA function to create this files without running FlyTracker. 
Alice Robie 

--
You received this message because you are subscribed to the Google Groups "JAABA" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jaaba+un...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/jaaba/73392bf5-d612-4902-816a-0ed70e510c50n%40googlegroups.com.

Divyansh Rana

unread,
11:39 AM (10 hours ago) 11:39 AM
to JAABA
Thanks for the reply. I did use the saveJAABAfolders while computing and also saved the perframe features alongside through FlyTracker.Screenshot 2026-03-23 at 11.37.17 AM.png
But when I include it in JAABA, I select the target type as eyrun_flies and it gives me the above error but if I just select flies it is able to compute other features and works. However for my experiment and trained classifier I need eyrun_flies as target type. I did use the options of savetoJAABA and save perfumes as well still I get into this error as above. I saw in one of the threads though in the JAABA-master folder we need to change names of certain perframe files to mitigate this issue, specifically which ones is my concern.

Alice Robie

unread,
5:09 PM (4 hours ago) 5:09 PM
to Divyansh Rana, JAABA
It sounds like you already have a trained lunge classifier and you're trying to apply this to new data? The most important thing in that case will be to have the features computed in the same way that it was done for the training data of the classifier. 
Can you tell me more about where the trained lunge classifier came from? Is this something you trained, from a publication, or from the lab you're working in?  
If you load the classifier like this in matlab load('path-to-your-lunge-classifer.jab','-mat') then type x.featureLexiconName, what is returned? And if you type x.featureLexicon.perframe what is returned? 
Can you share with me this jab file, a training expdir and an expdir that you are trying to classify?

There is a incompatibility between the perframe features in the JAABA eyrun target type and what is output by FlyTracker currently. Eyrun provided a patch for the .xml file as discussed in an earlier JAABA google groups thread, but it is important to understand the state of your jab file and data before using that fix.  

Alternatively, you should be able to create a new jab project with the flies or wingedfly target type, import the movies and labels from the lunge classifier (if you have access to those directories) and recreate a fairly similar classifier that you can use with the current output of FlyTracker. 

-Alice Robie 



Reply all
Reply to author
Forward
0 new messages