Skip to content

Commit

Permalink
Black
Browse files Browse the repository at this point in the history
  • Loading branch information
eberrigan committed Mar 29, 2024
1 parent 0a8fdc0 commit 628d2ab
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions tests/nn/data/test_augmentation.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,16 +45,15 @@ def augmentation_config(rotation_min_angle, rotation_max_angle):
return augmentation.AugmentationConfig(
rotate=True,
rotation_min_angle=rotation_min_angle,
rotation_max_angle=rotation_max_angle
rotation_max_angle=rotation_max_angle,
)


@pytest.fixture
def dummy_dataset(dummy_image_data, dummy_instances_data_zeros):
dataset = tf.data.Dataset.from_tensor_slices({
"image": [dummy_image_data],
"instances": [dummy_instances_data_zeros]
})
dataset = tf.data.Dataset.from_tensor_slices(
{"image": [dummy_image_data], "instances": [dummy_instances_data_zeros]}
)
return dataset


Expand Down Expand Up @@ -168,7 +167,6 @@ def test_augmentation_edges(min_labels):
assert example["instances"].shape == (3, 2, 2)



def test_random_cropper(min_labels):
cropper = augmentation.RandomCropper(crop_height=64, crop_width=32)
assert "image" in cropper.input_keys
Expand Down

0 comments on commit 628d2ab

Please sign in to comment.