Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[BUG]: restrict_to_aoi not implemented

See original GitHub issue

restrict_by_aoi is defined as a boolean argument in the raster tiler but doesn’t appear to be implemented. I was thinking of implementing this but instead of making it a boolean, the portion of the raster that falls within the aoi would remain and the portion of the tile that falls outside the aoi would be filled with the mean of the training dataset. I think this type of filling would work since labels are not present outside of the aoi_boundary (by definition of how aoi_boundary should be used). Does this sound good @nrweir ?

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:1
  • Comments:6 (6 by maintainers)

github_iconTop GitHub Comments

yangsiyu007commented, Feb 15, 2020

I just wanted to say filling in with custom values (0 in particular) would be great to have as one of the options at least. Computing the mean can be time-consuming over a large area, and being able to mask the label raster with 0 where the imagery tile has no data would be useful (i.e. to not have these contribute to the loss during training).

nrweircommented, Jan 14, 2020

Ideally, we enable both: allow users to specify a fill value (which they could derive from the full-dataset mean) or solaris could derive the mean within the image itself. Would essentially need to provide an argument specifying either a value to fill with, or allow users to specifiy 'mean', in which case solaris will get the image’s mean value and use that. e.g. a new argument nodata_fill=None where the user can provide, for example, nodata_fill=50 (or whatever other specific value they want) or nodata_fill='mean' in which case solaris will get it from the image for them.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Unable to restrict API access to REST route with imported auth
Describe the bug. when i try to create or update a REST API path and i choose to “Restrict API access” to “Authenticated...
Read more >
Restrict API requests to only my own mobile app
I believe the best solution is to make requests to your API (from native code of course) with a custom header like "App-Version-Key"...
Read more >
Maps API requests fail if API restrictions are applied to API key ...
The ability to restrict API keys to specific APIs has been temporarily removed, as it turned out to be incompatible with the Maps...
Read more >
API security best practices | Google Maps Platform
Restrict your API keys · Digital signatures · Use separate API keys for each app · Delete unused API keys · Be careful...
Read more >
Restricting API access with API keys - Cloud Endpoints
This page describes how to restrict API access to those clients that have an ... At the top level of the file (not...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Post

No results found

github_iconTop Related Hashnode Post

No results found