Closed lisadiez closed 1 year ago
Hi, Lisa!
This seems like a problem with the automatic arena segmentation. Could you post your deepof.data.Project()
definition and a screenshot of one of your videos?
That will surely help us debug :)
Best! Lucas
Hi Lucas,
Here is the definition:
my_project = deepof.data.Project(
project_path=os.path.join("/Users/lisadiez/Downloads/deepof"),
video_path=os.path.join("/Users/lisadiez/Downloads/deepof/Videos/"),
table_path=os.path.join("/Users/lisadiez/Downloads/deepof/Tables/"), # Where your .npy files are stored
project_name="deepof_project",
arena="polygonal-autodetect",
rename_bodyparts=['nose', 'spine1', 'spine2', 'spine3', 'spine4', 'spine5'],
animal_ids=['female', 'male', 'pup1', 'pup2', 'pup3', 'pup4'],
table_format=".npy",
video_scale=380, # Set to the arena
)
And here is a screenshot of a video (and the area I selected):
Thank you!! Let me know if you need anything else
Hi! The call seems correct, but I think this is unfortunately a bad edge case for the automatic detection pipeline as currently implemented (I would bet DeepOF is recognizing the object in the center instead of the blurrier arena surroundings in this case). A tedious solution would be to set arena to "polygonal-autodetect", but you'll need to draw it for all videos. We'll add a function to just copy and paste the selected arena across videos in a few days, which should hopefully be of use here :)
We'll let you know!
Best! Lucas
Hello!
Just wondering whether this function has been implemented yet, as I am facing a similar issue (wrong arena being detected when using polygonal-autodetect).
Hi, @2909ft, hi @lisadiez!
It took a bit longer than expected, but we finally released a new version incorporating several novelties, among which is the requested option. When detecting arenas, now you can carry the first manual tag to the rest of the videos pressing just one button :) the details are in the new documentation (under arena detection
). Hope this helps! Feel free to reopen if you have any further issues :)
Best, Lucas
Hello!
Thank you so much for your quick Sleap integration :)
I'm trying to create the project and ran into the following error after selecting the polygonal arena corners:
Thanks for your help! Lisa