← 输入框|github.com|刷新
Skip to content

Avoid infinite loop in mine() when there are no overlapping tracklets - #2525

Merged
MMathisLab merged 1 commit into
mainfrom
tracklet_overlap
Mar 1, 2024
Merged

MMathisLab merged 1 commit into
mainfrom
tracklet_overlap

Conversation

@jeylau

@jeylau jeylau commented Feb 19, 2024

Copy link
Copy Markdown
Contributor

No description provided.

@jeylau jeylau added the bug fix label Feb 19, 2024
@jeylau
jeylau requested a review from yeshaokai February 19, 2024 13:32

def mine(self, n_samples):
if not self._lu_overlap:
raise ValueError("No overlapping tracklets found.")

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe add more information suggesting it's because only one animal is found from the assembly?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We cannot be certain about it though: very sparse (bad) tracklets could also cause that. This warning if nm_animal==1 could be shown much higher up before creating a tracklet dataset. What do you think?

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good point! Then I don't have other questions

@MMathisLab
MMathisLab requested a review from yeshaokai February 19, 2024 14:22
@MMathisLab
MMathisLab self-requested a review March 1, 2024 12:51
@MMathisLab
MMathisLab merged commit 2662092 into main Mar 1, 2024
@MMathisLab
MMathisLab deleted the tracklet_overlap branch March 1, 2024 12:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants