-
Notifications
You must be signed in to change notification settings - Fork 388
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
Normalize flag in WindowSamplingConfig #2245
Comments
Thanks for the issue and the PR! Can you say a bit more about your use case? Do you want to, say, feed in from rastervision.core.data import CastTransformerConfig
raster_source = RasterioSourceConfig(..., transformers=[CastTransformerConfig(to_dtype='float32')]) |
For my use case I indeed use transformers for my I have custom transformers for my specific data and I don't want the data to be "normalized" (this happens in |
Right, I understand. What I meant was that that normalization only happens if the data is an unsigned integer type, so if the data is already type-casted to a float type (via the That said, I think exposing
Please also remember to sign the CLA. |
🚀 Feature
When creating a
SemanticSegmentation**GeoDataConfig**
(maybe other use-cases than segmentaion too ? my experience is limited to this one), thescene_to_dataset
creates aGeoDataset
based on options from the sampling config. AsWindowSamplingConfig
has nonormalize
flag, the created dataset can only be created withnormalize=True
; which is undesired.The requested feature is to create the
normalize
flag in theWindowSamplingConfig
class and passing it down where required.Motivation
When creating a
SemanticSegmentation**GeoDataConfig**
, I want my dataset to be sampled without built-in normalization.Pitch
The class
WindowSamplingConfig
should have the additionalnormalize
pydantic field.Alternatives
Creating my own custom class similar to
SemanticSegmentationGeoDataConfig
but with the enforcesnormalize
flag set to false.The text was updated successfully, but these errors were encountered: