309a2987c28df9cd82da00a47147e6492414e6aa,frcnn/rpn.py,RPN,__init__,#RPN#Any#Any#Any#Any#Any#Any#,8
Before Change
super(RPN, self).__init__(name=name)
self._anchor_scales = anchor_scales
self._anchor_ratios = anchor_ratios
self._num_anchors = len(anchor_scales) * len(anchor_ratios)
self._num_channels = num_channels
self._kernel_shape = kernel_shape
After Change
raise TypeError("anchor_ratios must be iterable")
anchor_ratios = tuple(anchor_ratios)
if not isinstance(kernel_shape, collections.Iterable):
raise TypeError("kernel_shape must be iterable")
kernel_shape = tuple(kernel_shape)
if not anchor_scales:
raise ValueError("anchor_scales must not be empty")
if not anchor_ratios:
raise ValueError("anchor_ratios must not be empty")
self._anchor_scales = anchor_scales
self._anchor_ratios = anchor_ratios
// TODO: Do we need the anchors? Can"t we just use len(self._anchor_scales) * len(self._anchor_ratios)
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 5
Instances
Project Name: tryolabs/luminoth
Commit Name: 309a2987c28df9cd82da00a47147e6492414e6aa
Time: 2017-06-06
Author: javirey@gmail.com
File Name: frcnn/rpn.py
Class Name: RPN
Method Name: __init__
Project Name: keras-team/keras
Commit Name: c25fa38deb4efc5445f64af3ec17eae0eb660d2f
Time: 2017-11-09
Author: francois.chollet@gmail.com
File Name: keras/models.py
Class Name: Sequential
Method Name: add
Project Name: keras-team/keras
Commit Name: e74a37438b5389ae19eb61b431859f9789100874
Time: 2017-05-22
Author: ajoseph.lobo@gmail.com
File Name: keras/backend/tensorflow_backend.py
Class Name:
Method Name: function