-
Notifications
You must be signed in to change notification settings - Fork 67
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
error in anipose filter command if turn [filter] parameter for 'True' #127
Comments
I encountered the same problem as you, have you solved it? |
Hi, I found this problem would disappear when you have a well labeled video set. I guess this might somehow be due to some low-likelihood points causing NA value in |
Okay, I understand, I'll try again. Thank you for your reply. |
Hi, I just confirmed my previous assumption, I found I failed to filter only one .h5 file from all 3 in
Overall, my filter section looks like below:
And everything works ok. So this error seems come from bad value in raw pose-2d file. I havent evaluated side-effect caused by lower score_threshold but I am working on this. Hope good news! |
A quick update on this one: Downgrade the SciPy version to 1.9/1.10 may solve the issue. This "Value Error" only happens with SciPy 1.11 or later versions |
Hi, I try to leverage Viterbi filter algorithm that was embeded in this package by add some parameters in config.toml file as below:
[filter] enabled = true type = "viterbi" score_threshold = 0.6 medfilt = 17 offset_threshold = 15 spline = true multiprocess = true
but when I typed down filter command in terminal, this issue happended:
Filtering tracked points... C:\Users\Admin\Desktop\CXC\DLC_projects\anipose\TreDet-ske leton\2024-01-13\pose-2d-filtered\867_1_seg1-vid01-camA.h5 0it [00:02, ?it/s] multiprocessing.pool.RemoteTraceback: """ Traceback (most recent call last): File "C:\Users\Admin\anaconda3\envs\DLC\lib\multiprocess ing\pool.py", line 125, in worker result = (True, func(*args, **kwds)) File "c:\users\admin\desktop\cxc\dlc_projects\anipose\an ipose-master\anipose\filter_pose.py", line 121, in viterbi _path_wrapper pts_new, scs_new = viterbi_path(pts, scs, max_offset, thres_dist) File "c:\users\admin\desktop\cxc\dlc_projects\anipose\an ipose-master\anipose\filter_pose.py", line 47, in viterbi_ path return __callback(*args, **kwargs) File "C:\Users\Admin\anaconda3\envs\DLC\lib\site-packages\click\decorators.py", line 84, in new_f unc return ctx.invoke(f, obj, *args, **kwargs) File "C:\Users\Admin\anaconda3\envs\DLC\lib\site-packages\click\core.py", line 760, in invoke return __callback(*args, **kwargs) File "c:\users\admin\desktop\cxc\dlc_projects\anipose\anipose-master\anipose\anipose.py", line 14 9, in filter filter_pose_all(config) File "c:\users\admin\desktop\cxc\dlc_projects\anipose\anipose-master\anipose\common.py", line 168 , in fun return process_all(config, process_session, **args) File "c:\users\admin\desktop\cxc\dlc_projects\anipose\anipose-master\anipose\common.py", line 153 , in process_all output[past_folders] = process_session(config, path, **args) File "c:\users\admin\desktop\cxc\dlc_projects\anipose\anipose-master\anipose\filter_pose.py", lin e 387, in process_session points, scores = filter_fun(config, all_points, metadata['bodyparts']) File "c:\users\admin\desktop\cxc\dlc_projects\anipose\anipose-master\anipose\filter_pose.py", lin e 175, in filter_pose_viterbi for jix, pts_new, scs_new in tqdm(results, ncols=70): File "C:\Users\Admin\anaconda3\envs\DLC\lib\site-packages\tqdm\std.py", line 1182, in __iter__ for obj in iterable: File "C:\Users\Admin\anaconda3\envs\DLC\lib\multiprocessing\pool.py", line 873, in next raise value ValueError: data must be finite, check for nan or inf values
The text was updated successfully, but these errors were encountered: