Skip to content

Commit

Permalink
Restructured docstrings of block.py
Browse files Browse the repository at this point in the history
Removed overlapping references
  • Loading branch information
ChanLumerico authored Aug 3, 2024
1 parent 4ad47b2 commit 01d0775
Showing 1 changed file with 31 additions and 70 deletions.
101 changes: 31 additions & 70 deletions luma/neural/block.py
Original file line number Diff line number Diff line change
Expand Up @@ -560,18 +560,33 @@ class IncepBlockArgs:

@ClassType.non_instantiable()
class IncepBlock:
"""
Container class for various Inception blocks.
References
----------
Inception V1 & V2 :
[1] Szegedy, Christian, et al. “Going Deeper with Convolutions.”
Proceedings of the IEEE Conference on Computer Vision and
Pattern Recognition (CVPR), 2015, pp. 1-9,
arxiv.org/abs/1409.4842.
Inception V4, Inception-ResNet V1 & V2:
[2] Szegedy, Christian, et al. “Inception-v4, Inception-ResNet
and the Impact of Residual Connections on Learning.”
Proceedings of the Thirty-First AAAI Conference on
Artificial Intelligence (AAAI), 2017, pp. 4278-4284,
arxiv.org/abs/1602.07261.
"""

class V1(_specials.incep_v1._Incep_V1_Default):
"""
Inception block for Inception V1 network, a.k.a. GoogLeNet.
Parameters
----------
Refer to the figures shown in the original paper:
Szegedy, Christian, et al. “Going Deeper with Convolutions.”
Proceedings of the IEEE Conference on Computer Vision and
Pattern Recognition (CVPR), 2015, pp. 1-9, arxiv.org/abs/1409.4842.
Refer to the figures shown in the original paper[1].
"""

class V2_TypeA(_specials.incep_v2._Incep_V2_TypeA):
Expand All @@ -580,12 +595,7 @@ class V2_TypeA(_specials.incep_v2._Incep_V2_TypeA):
Parameters
----------
Refer to the figures shown in the original paper:
Szegedy, Christian, et al. “Going Deeper with Convolutions.”
Proceedings of the IEEE Conference on Computer Vision and
Pattern Recognition (CVPR), 2015, pp. 1-9,
arxiv.org/abs/1409.4842.
Refer to the figures shown in the original paper[1].
"""

class V2_TypeB(_specials.incep_v2._Incep_V2_TypeB):
Expand All @@ -594,12 +604,7 @@ class V2_TypeB(_specials.incep_v2._Incep_V2_TypeB):
Parameters
----------
Refer to the figures shown in the original paper:
Szegedy, Christian, et al. “Going Deeper with Convolutions.”
Proceedings of the IEEE Conference on Computer Vision and
Pattern Recognition (CVPR), 2015, pp. 1-9,
arxiv.org/abs/1409.4842.
Refer to the figures shown in the original paper[1].
"""

class V2_TypeC(_specials.incep_v2._Incep_V2_TypeC):
Expand All @@ -608,12 +613,8 @@ class V2_TypeC(_specials.incep_v2._Incep_V2_TypeC):
Parameters
----------
Refer to the figures shown in the original paper:
Refer to the figures shown in the original paper[1].
Szegedy, Christian, et al. “Going Deeper with Convolutions.”
Proceedings of the IEEE Conference on Computer Vision and
Pattern Recognition (CVPR), 2015, pp. 1-9,
arxiv.org/abs/1409.4842.
"""

class V2_Redux(_specials.incep_v2._Incep_V2_Redux):
Expand All @@ -622,12 +623,8 @@ class V2_Redux(_specials.incep_v2._Incep_V2_Redux):
Parameters
----------
Refer to the figures shown in the original paper:
Refer to the figures shown in the original paper[1].
Szegedy, Christian, et al. “Going Deeper with Convolutions.”
Proceedings of the IEEE Conference on Computer Vision and
Pattern Recognition (CVPR), 2015, pp. 1-9,
arxiv.org/abs/1409.4842.
"""

class V4_Stem(_specials.incep_v4._Incep_V4_Stem):
Expand All @@ -636,13 +633,7 @@ class V4_Stem(_specials.incep_v4._Incep_V4_Stem):
Parameters
----------
Refer to the figures shown in the original paper:
Szegedy, Christian, et al. “Inception-v4, Inception-ResNet
and the Impact of Residual Connections on Learning.”
Proceedings of the Thirty-First AAAI Conference on
Artificial Intelligence (AAAI), 2017, pp. 4278-4284,
arxiv.org/abs/1602.07261.
Refer to the figures shown in the original paper[2].
Notes
-----
Expand All @@ -660,13 +651,7 @@ class V4_TypeA(_specials.incep_v4._Incep_V4_TypeA):
Parameters
----------
Refer to the figures shown in the original paper:
Szegedy, Christian, et al. “Inception-v4, Inception-ResNet
and the Impact of Residual Connections on Learning.”
Proceedings of the Thirty-First AAAI Conference on
Artificial Intelligence (AAAI), 2017, pp. 4278-4284,
arxiv.org/abs/1602.07261.
Refer to the figures shown in the original paper[2].
Notes
-----
Expand All @@ -684,13 +669,7 @@ class V4_TypeB(_specials.incep_v4._Incep_V4_TypeB):
Parameters
----------
Refer to the figures shown in the original paper:
Szegedy, Christian, et al. “Inception-v4, Inception-ResNet
and the Impact of Residual Connections on Learning.”
Proceedings of the Thirty-First AAAI Conference on
Artificial Intelligence (AAAI), 2017, pp. 4278-4284,
arxiv.org/abs/1602.07261.
Refer to the figures shown in the original paper[2].
Notes
-----
Expand All @@ -708,13 +687,7 @@ class V4_TypeC(_specials.incep_v4._Incep_V4_TypeC):
Parameters
----------
Refer to the figures shown in the original paper:
Szegedy, Christian, et al. “Inception-v4, Inception-ResNet
and the Impact of Residual Connections on Learning.”
Proceedings of the Thirty-First AAAI Conference on
Artificial Intelligence (AAAI), 2017, pp. 4278-4284,
arxiv.org/abs/1602.07261.
Refer to the figures shown in the original paper[2].
Notes
-----
Expand All @@ -733,14 +706,8 @@ class V4_ReduxA(_specials.incep_v4._Incep_V4_ReduxA):
Parameters
----------
Refer to the figures shown in the original paper:
Szegedy, Christian, et al. “Inception-v4, Inception-ResNet
and the Impact of Residual Connections on Learning.”
Proceedings of the Thirty-First AAAI Conference on
Artificial Intelligence (AAAI), 2017, pp. 4278-4284,
arxiv.org/abs/1602.07261.
Refer to the figures shown in the original paper[2].
Notes
-----
- This block has fixed shape of input and ouput tensors.
Expand All @@ -758,13 +725,7 @@ class V4_ReduxB(_specials.incep_v4._Incep_V4_ReduxB):
Parameters
----------
Refer to the figures shown in the original paper:
Szegedy, Christian, et al. “Inception-v4, Inception-ResNet
and the Impact of Residual Connections on Learning.”
Proceedings of the Thirty-First AAAI Conference on
Artificial Intelligence (AAAI), 2017, pp. 4278-4284,
arxiv.org/abs/1602.07261.
Refer to the figures shown in the original paper[2].
Notes
-----
Expand Down

0 comments on commit 01d0775

Please sign in to comment.