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
As described in https://github.com/catalystneuro/neuroconv/issues/915, I would need to pass over a name value to PoseEstimation to support multiple DLC pose estimations in the same nwb file.
I am currently fixing it by piping an optional dictionary of additional kwargs from the args in this way:
def_write_pes_to_nwbfile(
nwbfile,
animal,
df_animal,
scorer,
video, # Expects this to be a tuple; first index is string path, second is the image shape as "0, width, 0, height"paf_graph,
timestamps,
exclude_nans,
**optional_kwargs,
):
...
pe=PoseEstimation(
pose_estimation_series=pose_estimation_series,
description="2D keypoint coordinates estimated using DeepLabCut.",
original_videos=[video[0]],
# TODO check if this is a mandatory arg in ndx-pose (can skip if video is not found_dimensions=[list(map(int, video[1].split(",")))[1::2]],
scorer=scorer,
source_software="DeepLabCut",
source_software_version=deeplabcut_version,
nodes=[pes.nameforpesinpose_estimation_series],
edges=paf_graphifpaf_graphelseNone,
**optional_kwargs,
)
If you would be open to support this fix, I can submit a new PR or add this solutions as well to #23, as you prefer!
The text was updated successfully, but these errors were encountered:
vigji
changed the title
Add optional parameters to
Add optional parameters to PoseEstimationJun 18, 2024
As described in
https://github.com/catalystneuro/neuroconv/issues/915
, I would need to pass over aname
value toPoseEstimation
to support multiple DLC pose estimations in the samenwb
file.I am currently fixing it by piping an optional dictionary of additional kwargs from the args in this way:
If you would be open to support this fix, I can submit a new PR or add this solutions as well to #23, as you prefer!
The text was updated successfully, but these errors were encountered: