opencap-core icon indicating copy to clipboard operation
opencap-core copied to clipboard

Bug ValueError: not enough values to unpack (expected 4, got 3)

Open RyougiChan opened this issue 8 months ago • 2 comments

We got this error when synchronizing keypoints, which invoked by the code below(in utilsChecker.py):

# Synchronize keypoints.
pointList, confList, nansInOutList,startEndFrameList = synchronizeVideoKeypoints(
    pointList, confList, confidenceThreshold=confidenceThreshold,
    filtFreqs=filtFreqs, sampleFreq=frameRate, visualize=False,
    maxShiftSteps=2*frameRate, CameraParams=CamParamList_selectedCams,
    cameras2Use=cameras2Use, 
    CameraDirectories=CameraDirectories_selectedCams, trialName=trialName)

We have found that in the function synchronizeVideoKeypoints, if the condition if not np.any(overlapInds_clean)(line 1015) is met, only 3 values are returned.

RyougiChan avatar Jun 03 '24 07:06 RyougiChan