Skip to content

Togo 2020 #157

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

Open
wants to merge 21 commits into
base: master
Choose a base branch
from
Open

Togo 2020 #157

wants to merge 21 commits into from

Conversation

gabrieltseng
Copy link

@gabrieltseng gabrieltseng commented Jul 1, 2025

@gabrieltseng gabrieltseng requested a review from yawenzzzz July 3, 2025 20:53
Copy link
Collaborator

@yawenzzzz yawenzzzz left a comment

Choose a reason for hiding this comment

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

LGTM! Just minor comments regarding the start and end time, and hashing method.

@gabrieltseng
Copy link
Author

Performance is quite a bit worse than LP on the same labels in the Helios dataset....

int(dst_geometry.shp.y),
)
else:
bounds = (
Copy link
Collaborator

Choose a reason for hiding this comment

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

This looks like it is copied from Yawen's previous code that had bug; dst_geometry.shp.x/y is the center so the window is offset, and after cropping to center 8x8 depending on the configured window size it may no longer contain the labeled point at all.

Copy link
Collaborator

Choose a reason for hiding this comment

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

Yawen put fixed function here that you could use:
https://github.com/allenai/rslearn_projects/blob/master/rslp/utils/windows.py

I don't think the docstring is too informative, maybe can fix it to make it clear that it is calculating bounds for a certain window size centered at the centroid of the given geometry (and then use shp.centroid.x/y instead of shp.x/y which won't work if shp is not point).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants