Comments (5)
Hi Yuan,
You are right that the filtfilt was the problem. I added a simple masking in that section of the code (in the CAPTURE repo) to address this. I pushed the change to the capture demo and included the fix below. Did this work?
frames_to_mask = union(find(isnan(marker_velocity(ll,:,4))),find(isinf(marker_velocity(ll,:,4))));
marker_velocity(ll,frames_to_mask,4) = 0;
abs_velocity_antialiased(ll,:) = filtfilt(f1,f2, marker_velocity(ll,:,4));
marker_velocity(ll,frames_to_mask,4) = nan;
abs_velocity_antialiased(ll,frames_to_mask) = nan;
from dannce.
Can you please describe in more detail what exactly you are trying to run (i.e. the exact command) and with what data? and what version of Matlab are you using?
from dannce.
Hi, thank you very much for your reply!!
i just try to run the script of preprocess_dannce.mat as the demo page shows:
filename_in = 'predictions.mat';
filename_out = 'predictions_preprocessed.mat';
species_name = 'mouse'
preprocess_dannce(filename_in,filename_out,species_name, ' ')
the error is reported as below:
Error using filtfilt
Expected input to be finite.
Error in filtfilt>efiltfilt (line 114)
validateattributes(x,{'double'},{'finite','nonempty'},'filtfilt');
Error in filtfilt (line 89)
y=efiltfilt(b,a,x);
Error in compute_preprocessed_mocapstruct (line 44)
abs_velocity_antialiased(ll,:) = filtfilt(f1,f2, marker_velocity(ll,:,4));
Error in preprocess_ratception_struct_demo (line 43)
ratception_struct_temppreproc =
compute_preprocessed_mocapstruct(ratception_struct_temp,preprocessing_parameters);
Error in preprocess_dannce (line 107)
ratception_struct = preprocess_ratception_struct_demo(datahere,preprocessing_parameters,params);
############################################################################################
i think it is cased by the calculation of abs_velocity_antialiased value as it has infinite values.
So i wonder whether it is possible to ask how to fix the issue of infinite values? or is there any suggestions? thank you so so much for all!!! @spoonsso
from dannce.
Hi Jesse, thank you so so much for your update. yes!! it works smoothly !!! thanks a lot!
from dannce.
cool! Let us know if you need any other help.
from dannce.
Related Issues (20)
- multiple camera caliration HOT 2
- COM prediction values are NaN HOT 3
- Could not load weights for finetune (likely because you are finetuning a previously finetuned network). Attempting to finetune from a full finetune model file. HOT 18
- Zero training/validation errors but completely wrong in labeled images. HOT 2
- How to train DANNCE with more than 6 cameras? HOT 1
- COM deviate a lot from animal HOT 2
- When running dannce-predict demo script, GPU usage is at 0% HOT 1
- Integration of DANNCE and CAPTURE HOT 1
- Could not find enough inliers in imagePoints and worldPoints HOT 2
- n_views error HOT 1
- dannce-predict loss very small, but result same like normal but shift HOT 6
- Re-train network with new labeled frames HOT 1
- Multi animal COM HOT 2
- how to use rats16.mat skeleton for CAPTURE_demo analysis HOT 1
- calibration HOT 1
- OOM error HOT 2
- File "E:\anaconda\envs\tfnew_25\lib\site-packages\tensorflow\python\framework\ops.py", line 6649, in __init__ raise ValueError("name for name_scope must be a string.") HOT 1
- ValueError: name for name_scope must be a string when doing dannce-predict. HOT 1
- ValueError: bad marshal data (unknown type code) when dannce-predict HOT 1
- frames_with_good_tracking
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 dannce.