Skip to content
Discussion options

You must be logged in to vote

So I have found the problem while watching @paolo-fraccaro 's workshop on youtube (https://www.youtube.com/watch?v=CB3FKtmuPI8).
There are quite a few mismatches between the notebook he is showing and the one that can be downloaded from terratorch/examples/tutorial/prithvi_v2_eo_300_tl_unet_burnscars.ipynb

The most important mismatch and the reason why I was getting NaN as a loss is inside:
datamodule = terratorch.datamodules.GenericNonGeoSegmentationDataModule(
...
no_data_replace = 0,
no_label_replace = -1,

)

If this is included, then the script works!

Replies: 6 comments 2 replies

Comment options

You must be logged in to vote
1 reply
@Atmoboran
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@Atmoboran
Comment options

Answer selected by Atmoboran
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants