You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Thanks for providing this great toolbox. Given that this may take ~3 hours for every subject, I have a suggestion to reduce this time by 50%. I see that this function, sampleMuscleQuantities.m is the most time consuming one. Lots of users may use generic models as reference, e.g. modified Rajagopal model in my case. My suggestion is to store the sample muscle quantities of the reference model once forever and use it for each subject.
First, collate the sample quantities of all muscles into one struct using Mus_ref_all.(curr_mus_name) = sampleMuscleQuantities(osimModel_ref,curr_mus,'all',N_eval); instaed of the following line of code and save the Mus_ref_all variable as a MAT file. Then, load the file before the loop and use Mus_ref = Mus_ref_all.(curr_mus_name); instead of:
Thank you. Another suggestion in this regard would be to add an option to optimize the muscles of only one leg, in case of using identical scaled factors for both legs. This will reduce additional 50%!
Hi,
Thanks for providing this great toolbox. Given that this may take ~3 hours for every subject, I have a suggestion to reduce this time by 50%. I see that this function, sampleMuscleQuantities.m is the most time consuming one. Lots of users may use generic models as reference, e.g. modified Rajagopal model in my case. My suggestion is to store the sample muscle quantities of the reference model once forever and use it for each subject.
First, collate the sample quantities of all muscles into one struct using
Mus_ref_all.(curr_mus_name) = sampleMuscleQuantities(osimModel_ref,curr_mus,'all',N_eval);
instaed of the following line of code and save theMus_ref_all
variable as a MAT file. Then, load the file before the loop and useMus_ref = Mus_ref_all.(curr_mus_name);
instead of:MuscleParamOptimizer/MATLAB_tool/MuscleParOptTool/optimMuscleParams.m
Line 82 in cd3f134
The good point is that this file is readable in Python as well. Here is an example (N_eval=5):
Rajagopal2015_passiveCal_hipAbdMoved.zip
Best - Mohammadreza
The text was updated successfully, but these errors were encountered: