Comments (4)
Update:
When I try with numpy==1.17.2
, the error disappears when I run anipose filter-3d
. When I then run anipose label-3d-filter
, however, I get the following new error:
(anipose-3d) hank-x299@hank-x299:/mnt/2TB/Dropbox/datasets/for_anipose/dalotiapose$ anipose label-3d-filter
Labeling videos in 3D...
/mnt/2TB/Dropbox/datasets/for_anipose/dalotiapose/test_6_no_motor/videos-3d-filtered/dal_liom__2020_02_06_15_59.avi
Traceback (most recent call last):
File "/home/hank-x299/anaconda3/envs/anipose-3d/bin/anipose", line 8, in <module>
sys.exit(cli())
File "/home/hank-x299/anaconda3/envs/anipose-3d/lib/python3.6/site-packages/click/core.py", line 764, in __call__
return self.main(*args, **kwargs)
File "/home/hank-x299/anaconda3/envs/anipose-3d/lib/python3.6/site-packages/click/core.py", line 717, in main
rv = self.invoke(ctx)
File "/home/hank-x299/anaconda3/envs/anipose-3d/lib/python3.6/site-packages/click/core.py", line 1137, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/home/hank-x299/anaconda3/envs/anipose-3d/lib/python3.6/site-packages/click/core.py", line 956, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/home/hank-x299/anaconda3/envs/anipose-3d/lib/python3.6/site-packages/click/core.py", line 555, in invoke
return callback(*args, **kwargs)
File "/home/hank-x299/anaconda3/envs/anipose-3d/lib/python3.6/site-packages/click/decorators.py", line 64, in new_func
return ctx.invoke(f, obj, *args, **kwargs)
File "/home/hank-x299/anaconda3/envs/anipose-3d/lib/python3.6/site-packages/click/core.py", line 555, in invoke
return callback(*args, **kwargs)
File "/home/hank-x299/anaconda3/envs/anipose-3d/lib/python3.6/site-packages/anipose/anipose.py", line 255, in label_3d_filter
label_videos_3d_filtered_all(config)
File "/home/hank-x299/anaconda3/envs/anipose-3d/lib/python3.6/site-packages/anipose/common.py", line 168, in fun
return process_all(config, process_session, **args)
File "/home/hank-x299/anaconda3/envs/anipose-3d/lib/python3.6/site-packages/anipose/common.py", line 153, in process_all
output[past_folders] = process_session(config, path, **args)
File "/home/hank-x299/anaconda3/envs/anipose-3d/lib/python3.6/site-packages/anipose/label_videos_3d.py", line 191, in process_session
visualize_labels(config, fname, out_fname, params['fps'])
File "/home/hank-x299/anaconda3/envs/anipose-3d/lib/python3.6/site-packages/anipose/label_videos_3d.py", line 82, in visualize_labels
low, high = np.percentile(all_points_flat[check], [5, 95], axis=0)
File "/home/hank-x299/anaconda3/envs/anipose-3d/lib/python3.6/site-packages/numpy/lib/function_base.py", line 3707, in percentile
a, q, axis, out, overwrite_input, interpolation, keepdims)
File "/home/hank-x299/anaconda3/envs/anipose-3d/lib/python3.6/site-packages/numpy/lib/function_base.py", line 3826, in _quantile_unchecked
interpolation=interpolation)
File "/home/hank-x299/anaconda3/envs/anipose-3d/lib/python3.6/site-packages/numpy/lib/function_base.py", line 3405, in _ureduce
r = func(a, **kwargs)
File "/home/hank-x299/anaconda3/envs/anipose-3d/lib/python3.6/site-packages/numpy/lib/function_base.py", line 3941, in _quantile_ureduce_func
x1 = take(ap, indices_below, axis=axis) * weights_below
File "/home/hank-x299/anaconda3/envs/anipose-3d/lib/python3.6/site-packages/numpy/core/fromnumeric.py", line 189, in take
return _wrapfunc(a, 'take', indices, axis=axis, out=out, mode=mode)
File "/home/hank-x299/anaconda3/envs/anipose-3d/lib/python3.6/site-packages/numpy/core/fromnumeric.py", line 56, in _wrapfunc
return getattr(obj, method)(*args, **kwds)
IndexError: cannot do a non-empty take from an empty axes.
I suspect there is something funny with my .csv
in pose-3d-filtered
? I've attached it here.
Thank you!
from anipose.
Hello @hanhanhan-kim ,
Thank you for filing this issue! I apologize that it took so long for me to get to it!
I'm not sure what the error is exactly with the 3D filter, but generally I suggest to constrained optimization filter. In the future (soon!), it will just become the default 3D filter.
For now, instead of enabling the 3D filter, just run triangulation as before and add parameters for constrained optimization as per this issue response:
#7 (comment)
Let me know if that makes sense!
I apologize again for the confusing structure of the 3D filtering. I will rearrange Anipose to become more intuitive in the coming weeks!
from anipose.
Hi @lambdaloop ,
Thanks for getting back to me! I appreciate the fix--my 3d pose videos do look better, but still not great, hahaha--I imagine there might be some issues on my end . . . .
I look forward to seeing the upgrades and fixes you have planned for anipose! :)
from anipose.
I think this has actually been resolved, so I'm closing it now
from anipose.
Related Issues (20)
- Reverse triangulation HOT 3
- Error with Anipose Label-3d command HOT 6
- label-3d video upside down HOT 4
- Issue with 'anipose calibrate' step during hand tutorial
- Why does the command anipose label-3d-filter only display 3d annotated videos? ... But there is no result output. HOT 2
- Issue with anipose analyze: 'device_spec' HOT 4
- Triangulation Gaps in Unfilled Demo
- ERROR in using Anipose Analyze
- Calibrate delivering widely different results from the same detections HOT 8
- anipose calibrate HOT 4
- Error in Calibration HOT 2
- How to Utilize GPU for Anipose HOT 1
- Anipose Label-3D 'traitsui.toolkits'
- Anipose tutorial
- error in anipose filter command if turn [filter] parameter for 'True' HOT 4
- anipose label-3d slows down after the first video
- How to use Sleap 2D coordinates output with Anipose HOT 2
- draw-calibration returns a different pattern HOT 1
- I encountered the following problem when performing the anipose filter step. It was still running successfully a month ago
- I encountered the following situation when running anipose angles. If there are no these parameters, an error will be reported. HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from anipose.