ValueError in dataset transform function #1631
Unanswered
roybenhayun
asked this question in
Q&A
Replies: 1 comment
-
Can you provide code to reproduce this issue? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
just a minor question..
usually we give the dataset a transform function i.e.,
ds = Sentinel2(eo_root, transforms=sentinel2_preprocess_image)
.the code in the transform function was based on examples and has
del sample["bbox"]
.I noticed that when this deletion is not included, getting
ValueError: A frozen dataclass was passed to
apply_to_collectionbut this is not allowed.
the documentation for transform in dataset says only
could you please clarify why this ValueError is happening and if anything else is required in the transform function?
Beta Was this translation helpful? Give feedback.
All reactions