-
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
trainer.test results not reproduced when loading from a checkpoint #1640
Comments
OK think I know what is going on - I updated my Note: this is NOT the case |
Ah, @roybenhayun reported the same bug but we couldn't figure out why it wasn't working. Now we know! |
opened #1645 for checkpoints saving not working as expected in 0.5.0 |
I had some suspicion the pre-processing may not be getting applied on the test run and I think I have confirmed that. I created a module with no normalisation: class EuroSATDataModule(NonGeoDataModule):
"""LightningDataModule implementation for the EuroSAT dataset.
Uses the train/val/test splits from the dataset.
.. versionadded:: 0.2
"""
mean = torch.zeros(13)
std = torch.ones(13)
def __init__(
self, batch_size: int = 64, num_workers: int = 0, **kwargs: Any
) -> None:
"""Initialize a new EuroSATDataModule instance.
Args:
batch_size: Size of each mini-batch.
num_workers: Number of workers for parallel data loading.
**kwargs: Additional keyword arguments passed to
:class:`~torchgeo.datasets.EuroSAT`.
"""
super().__init__(EuroSAT, batch_size, num_workers, **kwargs) And now the test results are reproduced |
Did we ever figure out what's wrong with this? Was this fixed by #1647 or is there a different issue? |
Description
As title: in my train notebook:
Then in predict notebook, loading from checkpoint:
This is Eurosat 10 class, so basically results are random guess
Steps to reproduce
In train notebook:
In predict notebook:
Version
0.5.0
The text was updated successfully, but these errors were encountered: