Skip to content

Commit

Permalink
Adding datamodule
Browse files Browse the repository at this point in the history
  • Loading branch information
jordancaraballo committed Oct 2, 2024
1 parent e8b937d commit 7335902
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
16 changes: 8 additions & 8 deletions above_shrubs/pipelines/chm_pipeline.py
Original file line number Diff line number Diff line change
Expand Up @@ -144,14 +144,14 @@ def train(self):
max_epochs = 50
fast_dev_run = False

datamodule = CHMDataModule(
train_data_dir=self.conf.train_data_dir,
train_label_dir=self.conf.train_label_dir,
test_data_dir=self.conf.test_data_dir,
test_label_dir=self.conf.test_label_dir,
batch_size=16,
num_workers=8,
)
#datamodule = CHMDataModule(
# train_data_dir=self.conf.train_data_dir,
# train_label_dir=self.conf.train_label_dir,
# test_data_dir=self.conf.test_data_dir,
# test_label_dir=self.conf.test_label_dir,
# batch_size=16,
# num_workers=8,
#)

# Set main data loader
#chm_train_dataset = CHMDataset(
Expand Down
4 changes: 2 additions & 2 deletions requirements/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Arguments to pass to the image
ARG VERSION_DATE=24.09
ARG VERSION_DATE=24.01
ARG FROM_IMAGE=nvcr.io/nvidia/pytorch

# Import RAPIDS container as the BASE Image (cuda base image)
Expand All @@ -17,7 +17,7 @@ RUN apt-get update && \
# Pip
RUN pip --no-cache-dir install --ignore-installed omegaconf \
#terratorch \
pytorch-lightning \
#pytorch-lightning \
#Lightning \
transformers \
datasets \
Expand Down

0 comments on commit 7335902

Please sign in to comment.