Open DorianBattivelli opened 11 months ago
Hi @DorianBattivelli!
(i) there is a tool for visualizing ROI features described HERE which should include distances to ROI centers. It should show, for each frame, how far the animals are from the center of each ROI. Let me know how it runs on your end.
(ii) It kind of depends on the noise. The very best way (but also the most time-consuming) is to improve the tracking model, and annotate frames where the model gets the body-parts wrong.
@sronilsson thank you for the quick answer. I'm now trying the ROI feature option. I keep you update about the outcome.
Other point: I'm facing issue when trying to run "visualize distance" as reported here:
Can you identify the error?
Yep thanks for reporting this error @DorianBattivelli I appreciate it - I will see if I can replicate.
Ok, I fixed the last bug: I had to select a resolution. Still I'm facing a problem when selecting only "create last frame" SimBA prompt returns that corresponding plot is saved in "line plot" folder, but no file is there. Saving works only when I select "create frames" . Is that expected?
@DorianBattivelli - which version of SimBA are you running? There shouldn't be a "As input" option and I can't see it in the latest version.
No - last frame
should create a single image called something like MyVideoName_final_img.png
located in /project_folder/frames/output/line_plot
.
Ah hang on, I could replicate the error when the directory /project_folder/frames/output/line_plot
doesn't exist and trying to write the file there, let me see if I can insert a fix.
I'm using SimBA 1.75.3 on Windows 10
... or it turns out the file isn't saved when "multi-processed" is ticked.
Yes in my case I ticked "multi-processed"
Yes, it turns out I forgot to pass save_img=True
, when multiprocessing. It only stored the final image in memory..
How does it look in version 1.75.4? Thanks again.
But there should not be any "As input" option which is a little confusing that you see that...
It works! No "as input" in the list, and file saved with "create last frame" even with multi-processed ticked, thank you :)
Tha is for letting me know! Also let me know how the ROI features runs or if there are any issues.
O, I realized that the issue for saving persists when I try to generate the last frame for "all the videos" instead of once at a time
Ah, thank you! Let's fix that.
It should be fixed in 1.75.5 but please let me know, and please let me know if you see any other bugs.
Thanks for the fix, I'll try it soon. Meantime, another error/issue I face: I tried to visualize features for one video, but the prompt returns:
And indeed, on this specific video, Up-HT is not present, but it is for other videos. Is that mandatory to have exactly the same ROIs for all videos of this project to be able to run this command?
It appears so! I could remove the requirement. But - the reason it is required is that the function mainly targets people who want to create features from ROIs for building classifiers. In this scenario, it is not possible to create some ROI-based features for some videos, and skip them for other videos.
I can remove it and print a warning instead.
Yes it would be nice ;) thank you
Also I was wondering, when ploting paths, would that be possible to set an option allowing to choose a frame from the video as background instead of a plain color?
Ah thats a good point. Yes I can insert that. I have to do the ROI feature plotting first. It will take a little longer because I realized you can't choose which body-parts to use in the pop-up menu, it says you have to analyze body-parts first which is not particularly good...
Not sure to understand, in the path-plot menu, I can choose the BP to plote
Oh no, I mean the ROI feature plotting
, where you visualize the distances between ROIs and the animals.
Ah I see, instead I suggested frame background for the paths visualisation plots, would this be possible?
yes, that's possible we should include it, I let you know when done, but I can't get to it today.
Amazing thank you !
@DorianBattivelli - before I go on, is this the sort of thing you are looking for:
You can select to use video
as background. If you select video
, you also get the option to set the opacity of the background (set it to a lower value if you want to make it a little less salient).
Right now it takes the first frame of the video as default, do you need an option to take a different frame?
The output looks something like this (I have a troubleshooting project with your name, but I have most likely I mixed up which tracking files belong to which videos).
... or is that you want the entire video (updating frames) as background ?
@DorianBattivelli - before I go on, is this the sort of thing you are looking for:
You can select to use
video
as background. If you selectvideo
, you also get the option to set the opacity of the background (set it to a lower value if you want to make it a little less salient).Right now it takes the first frame of the video as default, do you need an option to take a different frame?
The output looks something like this (I have a troubleshooting project with your name, but I have most likely I mixed up which tracking files belong to which videos).
This is the solution I need, if it's also possible to select a precise frame it's perfect
And by any chance if it's also possible to specify a precise colore for traces from rgb palette it becomes paradise
Haha sounds good - something like this also, where you fill in the rgb values if set to Custom
and option to set the exact frame index? Hang on, have to write some unit tests through... so users can't insert color crazy number,1999, -123
etc.
... this pop-up menu and methods is getting a life on its on, needs its own documentation page soon lol.
I included it in the latest version. Let me know if you get any errors or if anything is unclear though.
Wo, it is really amazing, thank you very much :)
Hello,
I'm using SimBA 1.75.3 on Windows 10, from ma-DLC data.
I have some doubts about the accuracy of the quantification of distances.
1) Is there a way to visualise live the quantification of distance? When using thee "visualize ROI" function, I do not see the distance, but only thee different ROIs.
2) For now I'm using the smoothing function to reeducxe noise/signal ratio. Do you suggest other tools / strategy?
Thank you