Skip to content

Commit

Permalink
fix augmentations tests
Browse files Browse the repository at this point in the history
  • Loading branch information
kprokofi committed Dec 19, 2024
1 parent b8c912d commit 21c88c9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tests/integration/api/test_augmentation.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,12 @@ def _test_augmentation(
).config
train_config = config["data"]["train_subset"]
train_config["input_size"] = (32, 32)
data_format = config["data"]["data_format"]

# Load dataset
dm_dataset = DmDataset.import_from(
target_dataset_per_task[task_name],
format=config["data"]["data_format"],
format=data_format,
)
mem_cache_handler = MemCacheHandlerSingleton.create(
mode="sinlgeprocessing",
Expand All @@ -60,6 +61,7 @@ def _test_augmentation(
dm_subset=dm_dataset,
cfg_subset=SubsetConfig(sampler=SamplerConfig(**train_config.pop("sampler", {})), **train_config),
mem_cache_handler=mem_cache_handler,
data_format=data_format,
)

# Check if all aug combinations are size-compatible
Expand Down

0 comments on commit 21c88c9

Please sign in to comment.