'Index was out of range' #2057
Unanswered
AgolovaUCL
asked this question in
Q&A
Replies: 2 comments
-
Your model is likely not finding any instance in the image and the list is returned as empty. You should place a condition that drops lists with count 0 before indexing the 0th element. |
Beta Was this translation helpful? Give feedback.
0 replies
-
Thank you so much! This solved the issue. I applied an Expression Condition with it.Count != 0
…________________________________
From: brunocruz ***@***.***>
Sent: 20 November 2024 14:19
To: bonsai-rx/bonsai ***@***.***>
Cc: Golova, Sophia ***@***.***>; Author ***@***.***>
Subject: Re: [bonsai-rx/bonsai] 'Index was out of range' (Discussion #2057)
⚠ Caution: External sender
Your model is likely not finding any instance in the image and the list is returned as empty. You should place a condition that drops lists with count 0 before indexing the 0th element.
—
Reply to this email directly, view it on GitHub<#2057 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/A5XPZKQDDLHBU72NZRGZPNL2BSK6RAVCNFSM6AAAAABR7SCOW2VHI2DSMVQWIX3LMV43URDJONRXK43TNFXW4Q3PNVWWK3TUHMYTCMZSGM2TCMQ>.
You are receiving this because you authored the thread.Message ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi, I'm running Sleap on Bonsai and I'm running:
FileCapture >> Grayscale >> PredictPoses >> Index
I get the following error: Index was out of range. Must be non-negative and less than the size of the collection.
This is despite my index being 0. Does anyone know how to fix this?
Thank you!
Beta Was this translation helpful? Give feedback.
All reactions