From dd3a806ff22375d0fc5286f83ec12a3d55764003 Mon Sep 17 00:00:00 2001 From: Nihar Jani Date: Sat, 15 Jul 2023 18:11:41 +0530 Subject: [PATCH 1/8] U-Net Code, did not have a original research paper, attached along with code, added original research paper, followed the way keras-cv adds research paper along with code --- keras_cv/models/__internal__/unet.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/keras_cv/models/__internal__/unet.py b/keras_cv/models/__internal__/unet.py index f3c41d260a..f646fd4631 100644 --- a/keras_cv/models/__internal__/unet.py +++ b/keras_cv/models/__internal__/unet.py @@ -177,6 +177,12 @@ def UNet( All function parameters require curried functions as inputs which return a function that acts on tensors as inputs. + Reference: + - [U-Net: Convolutional Networks for Biomedical Image Segmentation](https://arxiv.org/abs/1505.04597) + + U-Net relies on strong use of Data Augmentation and architecture consists of a contracting path to capture + context and a symmetric expanding path that enables precise localization. + Args: input_shape: the rank 3 shape of the input to the UNet down_block_configs: a list of (filter_count, num_blocks) tuples From 55dce70eb7fabc684a4530c4bd93762d52ad645c Mon Sep 17 00:00:00 2001 From: Nihar Jani <84491997+NiharJani2002@users.noreply.github.com> Date: Mon, 17 Jul 2023 23:03:20 +0530 Subject: [PATCH 2/8] Update keras_cv/models/__internal__/unet.py The second line has been Deleted, As Per Your Suggestion. --- keras_cv/models/__internal__/unet.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/keras_cv/models/__internal__/unet.py b/keras_cv/models/__internal__/unet.py index f646fd4631..9b0560f8e8 100644 --- a/keras_cv/models/__internal__/unet.py +++ b/keras_cv/models/__internal__/unet.py @@ -181,7 +181,7 @@ def UNet( - [U-Net: Convolutional Networks for Biomedical Image Segmentation](https://arxiv.org/abs/1505.04597) U-Net relies on strong use of Data Augmentation and architecture consists of a contracting path to capture - context and a symmetric expanding path that enables precise localization. + Args: input_shape: the rank 3 shape of the input to the UNet From 9e3e00ec67e35bc82acbe427acdf1f0be6407fe0 Mon Sep 17 00:00:00 2001 From: Nihar Jani <84491997+NiharJani2002@users.noreply.github.com> Date: Mon, 17 Jul 2023 23:11:17 +0530 Subject: [PATCH 3/8] Update keras_cv/models/__internal__/unet.py Only Research Paper Is Now There In The Code --- keras_cv/models/__internal__/unet.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/keras_cv/models/__internal__/unet.py b/keras_cv/models/__internal__/unet.py index 9b0560f8e8..fd73923028 100644 --- a/keras_cv/models/__internal__/unet.py +++ b/keras_cv/models/__internal__/unet.py @@ -180,7 +180,7 @@ def UNet( Reference: - [U-Net: Convolutional Networks for Biomedical Image Segmentation](https://arxiv.org/abs/1505.04597) - U-Net relies on strong use of Data Augmentation and architecture consists of a contracting path to capture + Args: From 2471068262c77e7b62648678f493c2b74bbdd609 Mon Sep 17 00:00:00 2001 From: Nihar Jani <84491997+NiharJani2002@users.noreply.github.com> Date: Mon, 17 Jul 2023 23:36:45 +0530 Subject: [PATCH 4/8] Update unet.py There is only one line between the research paper link and Args. --- keras_cv/models/__internal__/unet.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/keras_cv/models/__internal__/unet.py b/keras_cv/models/__internal__/unet.py index fd73923028..fdcc4f09d6 100644 --- a/keras_cv/models/__internal__/unet.py +++ b/keras_cv/models/__internal__/unet.py @@ -179,10 +179,7 @@ def UNet( Reference: - [U-Net: Convolutional Networks for Biomedical Image Segmentation](https://arxiv.org/abs/1505.04597) - - - - + Args: input_shape: the rank 3 shape of the input to the UNet down_block_configs: a list of (filter_count, num_blocks) tuples From 955f64236ac5986f6d755b5fac9b0de67150efbc Mon Sep 17 00:00:00 2001 From: Nihar Jani Date: Tue, 18 Jul 2023 10:30:15 +0530 Subject: [PATCH 5/8] Linter Issue solved --- keras_cv/models/__internal__/unet.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/keras_cv/models/__internal__/unet.py b/keras_cv/models/__internal__/unet.py index fdcc4f09d6..0b13a19ebe 100644 --- a/keras_cv/models/__internal__/unet.py +++ b/keras_cv/models/__internal__/unet.py @@ -178,7 +178,8 @@ def UNet( function that acts on tensors as inputs. Reference: - - [U-Net: Convolutional Networks for Biomedical Image Segmentation](https://arxiv.org/abs/1505.04597) + - [U-Net: Convolutional Networks for Biomedical Image Segmentation] + (https://arxiv.org/abs/1505.04597) Args: input_shape: the rank 3 shape of the input to the UNet From ba7acfa033b2b29761b51de7b5bf727fca9d2ee7 Mon Sep 17 00:00:00 2001 From: Nihar Jani <84491997+NiharJani2002@users.noreply.github.com> Date: Tue, 18 Jul 2023 23:55:40 +0530 Subject: [PATCH 6/8] Update unet.py U-Net Research Paper In The Same Line, Along With It Linter Issue Is Resolved. The Bitly Link Is Used. --- keras_cv/models/__internal__/unet.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/keras_cv/models/__internal__/unet.py b/keras_cv/models/__internal__/unet.py index 0b13a19ebe..f592a22a19 100644 --- a/keras_cv/models/__internal__/unet.py +++ b/keras_cv/models/__internal__/unet.py @@ -178,9 +178,7 @@ def UNet( function that acts on tensors as inputs. Reference: - - [U-Net: Convolutional Networks for Biomedical Image Segmentation] - (https://arxiv.org/abs/1505.04597) - + - [U-Net: Convolutional Networks for Biomedical Image Segmentation](https://bit.ly/3rG7Fda) Args: input_shape: the rank 3 shape of the input to the UNet down_block_configs: a list of (filter_count, num_blocks) tuples From 7f027d1b16fb4f3d5bf1d741115f2c6d82ae96ef Mon Sep 17 00:00:00 2001 From: Nihar Jani <84491997+NiharJani2002@users.noreply.github.com> Date: Wed, 19 Jul 2023 22:19:37 +0530 Subject: [PATCH 7/8] arxiv. Paper Of U-Net Attached And with #noqa:E501 U-Net Research Paper Attached Along With Original Research Paper of arxiv., Linter Issue Solved With The Help #noqa:E501 --- keras_cv/models/__internal__/unet.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/keras_cv/models/__internal__/unet.py b/keras_cv/models/__internal__/unet.py index f592a22a19..308bcf89c3 100644 --- a/keras_cv/models/__internal__/unet.py +++ b/keras_cv/models/__internal__/unet.py @@ -178,7 +178,7 @@ def UNet( function that acts on tensors as inputs. Reference: - - [U-Net: Convolutional Networks for Biomedical Image Segmentation](https://bit.ly/3rG7Fda) + - [U-Net: Convolutional Networks for Biomedical Image Segmentation](https://arxiv.org/abs/1505.04597) #noqa:E501 Args: input_shape: the rank 3 shape of the input to the UNet down_block_configs: a list of (filter_count, num_blocks) tuples From 575c1d12677e74901ce206531fc7b867d40a6944 Mon Sep 17 00:00:00 2001 From: Nihar Jani <84491997+NiharJani2002@users.noreply.github.com> Date: Thu, 20 Jul 2023 11:06:49 +0530 Subject: [PATCH 8/8] U-Net Paper attached, and # noqa: E501 at the end of docstring # noqa: E501 placed at the end of Docstring --- keras_cv/models/__internal__/unet.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/keras_cv/models/__internal__/unet.py b/keras_cv/models/__internal__/unet.py index 308bcf89c3..fc8d50b56b 100644 --- a/keras_cv/models/__internal__/unet.py +++ b/keras_cv/models/__internal__/unet.py @@ -178,7 +178,7 @@ def UNet( function that acts on tensors as inputs. Reference: - - [U-Net: Convolutional Networks for Biomedical Image Segmentation](https://arxiv.org/abs/1505.04597) #noqa:E501 + - [U-Net: Convolutional Networks for Biomedical Image Segmentation](https://arxiv.org/abs/1505.04597) Args: input_shape: the rank 3 shape of the input to the UNet down_block_configs: a list of (filter_count, num_blocks) tuples @@ -186,7 +186,7 @@ def UNet( up_block_configs: a list of filter counts, one for each up block down_block: a downsampling block up_block: an upsampling block - """ + """ # noqa: E501 input = layers.Input(shape=input_shape) x = input