Skip to content

Commit

Permalink
remove subsample from oc22 dataset
Browse files Browse the repository at this point in the history
  • Loading branch information
misko committed Jul 29, 2024
1 parent 235965f commit 65b5a6f
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/fairchem/core/datasets/oc22_lmdb_dataset.py
Original file line number Diff line number Diff line change
Expand Up @@ -111,11 +111,8 @@ def __init__(self, config, transform=None) -> None:
if self.train_on_oc20_total_energies:
with open(config["oc20_ref"], "rb") as fp:
self.oc20_ref = pickle.load(fp)
self.subsample = aii(self.config.get("subsample", False), bool)

def __len__(self) -> int:
if self.subsample:
return min(self.subsample, self.num_samples)
return self.num_samples

def __getitem__(self, idx):
Expand Down

0 comments on commit 65b5a6f

Please sign in to comment.