Skip to content

OOM issue when training centered_instance model #1889

Answered by roomrys
ssfrz asked this question in Help!
Discussion options

You must be logged in to vote

Hi @ssfrz,

I have an update!

So, your default crop size was set to Auto - which is great - SLEAP will automatically find the maximum instance width for you and use that for the crop size.

I was debugging your data and found the code where the crop size was changed from None (an auto crop size) to 9999195:

max_length = 0.0
for inst in labels.user_instances:
pts = inst.points_array
pts *= input_scaling
max_length = np.maximum(max_length, np.nanmax(pts[:, 0]) - np.nanmin(pts[:, 0]))
max_length = np.maximum(max_length, np.nanmax(pts[:, 1]) - np.nanmin(pts[:, 1]))
max_length = np.maximum(

Replies: 2 comments 3 replies

Comment options

You must be logged in to vote
1 reply
@ssfrz
Comment options

Comment options

You must be logged in to vote
2 replies
@ssfrz
Comment options

@roomrys
Comment options

Answer selected by ssfrz
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help!
Labels
None yet
2 participants