Skip to content

How to generate geotif labels from a image with a trained model? #1470

Answered by calebrob6
lcoandrade asked this question in Q&A
Discussion options

You must be logged in to vote

I know, but when you do:

trainer.test(
    model=task,
    datamodule=datamodule
)

I'm pretttty sure the images are being divided by 255

and when you do:

test_dataset = datamodule.test_dataset
test_sampler = RandomGeoSampler(test_dataset, size=IMG_SIZE, length=SAMPLE_SIZE)
test_dataloader = DataLoader(test_dataset, sampler=test_sampler, collate_fn=stack_samples)

n = 0
for sample in test_dataloader:
    ...

I'm pretty sure the images are not being divided by 255.

Replies: 1 comment 22 replies

Comment options

You must be logged in to vote
22 replies
@calebrob6
Comment options

@calebrob6
Comment options

@lcoandrade
Comment options

@calebrob6
Comment options

Answer selected by lcoandrade
@lcoandrade
Comment options

@calebrob6
Comment options

@lcoandrade
Comment options

@lcoandrade
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants