Skip to content

Commit

Permalink
fixed two params (#108)
Browse files Browse the repository at this point in the history
  • Loading branch information
VMarsocci authored Oct 23, 2024
1 parent 4d3c736 commit 102c575
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pangaea/datasets/fivebillionpixels.py
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ def __init__(
self.auto_download = auto_download

self._image_dir = sorted(
glob(os.path.join(self._base_dir, self.split, "imgs", "*.tif"))
glob(os.path.join(self._base_dir, self.split, "images", "*.tif"))
)
self._label_dir = sorted(
glob(os.path.join(self._base_dir, self.split, "labels", "*.tif"))
Expand Down
2 changes: 1 addition & 1 deletion pangaea/run.py
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,7 @@ def main(cfg: DictConfig) -> None:
)
# resume training if model_checkpoint is provided
if cfg.ckpt_dir is not None:
trainer.load_model(cfg.resume_from)
trainer.load_model(cfg.ckpt_dir)

trainer.train()

Expand Down

0 comments on commit 102c575

Please sign in to comment.