Skip to content

Commit

Permalink
removed configs
Browse files Browse the repository at this point in the history
  • Loading branch information
alckasoc committed Sep 5, 2023
1 parent f3ddf2f commit c861c72
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 17 deletions.
1 change: 0 additions & 1 deletion sleap_nn/config/__init__.py

This file was deleted.

14 changes: 0 additions & 14 deletions sleap_nn/config/data.py

This file was deleted.

14 changes: 12 additions & 2 deletions tests/data/test_pipelines.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import torch
from omegaconf import OmegaConf

from sleap_nn.config.data import base_topdown_data_config
from sleap_nn.data.confidence_maps import ConfidenceMapGenerator
from sleap_nn.data.instance_centroids import InstanceCentroidFinder
from sleap_nn.data.instance_cropping import InstanceCropper
Expand All @@ -24,6 +24,16 @@ def test_sleap_dataset(minimal_instance):


def test_topdownconfmapspipeline(minimal_instance):
base_topdown_data_config = OmegaConf.create(
{
"preprocessing": {
"crop_hw": (160, 160),
"conf_map_gen": {"sigma": 1.5, "output_stride": 2},
},
"augmentation_config": {"random_crop": 0.0, "random_crop_hw": (160, 160)},
}
)

pipeline = TopdownConfmapsPipeline(data_config=base_topdown_data_config)
datapipe = pipeline.make_base_pipeline(
data_provider=LabelsReader, filename=minimal_instance
Expand All @@ -32,4 +42,4 @@ def test_topdownconfmapspipeline(minimal_instance):
sample = next(iter(datapipe))
assert len(sample) == 2
assert sample[0].shape == (1, 160, 160)
assert sample[1].shape == (2, 80, 80)
assert sample[1].shape == (2, 80, 80)

0 comments on commit c861c72

Please sign in to comment.