Giter VIP home page Giter VIP logo

Comments (4)

hanhanhan-kim avatar hanhanhan-kim commented on May 25, 2024

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.

lambdaloop avatar lambdaloop commented on May 25, 2024

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.

hanhanhan-kim avatar hanhanhan-kim commented on May 25, 2024

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.

lambdaloop avatar lambdaloop commented on May 25, 2024

I think this has actually been resolved, so I'm closing it now

from anipose.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.