Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue with Tiling Code in Tutorial Section 2.8 of detectree2: RuntimeWarning and AttributeError #151

Closed
chenyuanyuan12138 opened this issue Oct 22, 2024 · 2 comments · Fixed by #152
Assignees
Labels
bug Something isn't working

Comments

@chenyuanyuan12138
Copy link

hen running the tiling code provided in Section 2.8 of the detectree2 tutorial, I encountered several issues:
1.RuntimeWarning: While calling tile_data(), I repeatedly got the following warnings:
RuntimeWarning: overflow encountered in reduce
RuntimeWarning: invalid value encountered in cast
2.AttributeError: Additionally, during the tiling process, I encountered the following error:AttributeError: overlapping_crowns might be empty or invalid.

微信图片_20241022093202

@PatBall1
Copy link
Owner

@chenyuanyuan12138 it is difficult to understand the error without the full error message. Would you please click where it says "5 frames" to expand the error message and copy and paste it here?

@PatBall1
Copy link
Owner

@chenyuanyuan12138 I've recreated the error myself and will work on a fix now. The bug came from an update I made to the tiling function in the latest update.

@PatBall1 PatBall1 linked a pull request Oct 22, 2024 that will close this issue
@PatBall1 PatBall1 added the bug Something isn't working label Oct 22, 2024
@PatBall1 PatBall1 self-assigned this Oct 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants