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
[WiP] Segmentation #321
[WiP] Segmentation #321
Conversation
7bfcb0f
to
5293bff
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Took a quick look and things seem to be going well.
|
||
def get_train_windows(self, scene, options): | ||
raster_source = scene.raster_source | ||
meta = raster_source.image_dataset.meta |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could use RasterSource.get_extent() instead
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you
|
||
windows = [] | ||
for i in range(100): # XXX insensitive | ||
xmin = np.random.randint(low=0, high=width-chip_size) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could use extent.make_random_square() instead.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you
a99bef8
to
7455763
Compare
7455763
to
6cdf16f
Compare
Will reopen later. |
compute_raster_stats
make_training_chips
train
predict
eval