Skip to content

Commit

Permalink
Add template for milliontreesUnlabeledDataset
Browse files Browse the repository at this point in the history
  • Loading branch information
henrykironde committed Nov 20, 2024
1 parent d59814a commit 3dde1a3
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions milliontrees/datasets/unlabeled/milliontrees_unlabeled_dataset.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
from torch.utils.data import Dataset

class milliontreesUnlabeledDataset(Dataset):
"""Base class for unlabeled MillionTrees datasets."""

def __init__(self, root_dir, download, split_scheme):
self.root_dir = root_dir

def initialize_data_dir(self, root_dir, download):
"""Initialize the data directory."""
return root_dir

@property
def data_dir(self):
"""The path to the data directory."""
return self._data_dir

0 comments on commit 3dde1a3

Please sign in to comment.