From 673ca586dc30efffbb796c65a195136715600d0e Mon Sep 17 00:00:00 2001 From: Shaul Shvimmer <52006780+CallShaul@users.noreply.github.com> Date: Tue, 23 Apr 2024 15:22:00 +0300 Subject: [PATCH] In albumentations >= 1.4.0 the "imgaug" library was removed. some functions need to be renamed In albumentations >= 1.4.0 the "imgaug" library was removed. some functions need to be renamed in order to support albumentations >= 1.4.0. read more at: https://albumentations.ai/docs/release_notes/ --- examples/cars segmentation (camvid).ipynb | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/examples/cars segmentation (camvid).ipynb b/examples/cars segmentation (camvid).ipynb index 40997bb5..fe07ca75 100644 --- a/examples/cars segmentation (camvid).ipynb +++ b/examples/cars segmentation (camvid).ipynb @@ -277,13 +277,13 @@ " albu.PadIfNeeded(min_height=320, min_width=320, always_apply=True, border_mode=0),\n", " albu.RandomCrop(height=320, width=320, always_apply=True),\n", "\n", - " albu.IAAAdditiveGaussianNoise(p=0.2),\n", - " albu.IAAPerspective(p=0.5),\n", + " albu.GaussNoise(p=0.2),\n", + " albu.Perspective(p=0.5),\n", "\n", " albu.OneOf(\n", " [\n", " albu.CLAHE(p=1),\n", - " albu.RandomBrightness(p=1),\n", + " albu.RandomBrightnessContrast(p=1),\n", " albu.RandomGamma(p=1),\n", " ],\n", " p=0.9,\n", @@ -300,7 +300,7 @@ "\n", " albu.OneOf(\n", " [\n", - " albu.RandomContrast(p=1),\n", + " albu.RandomBrightnessContrast(p=1),\n", " albu.HueSaturationValue(p=1),\n", " ],\n", " p=0.9,\n",