135a56e0935fbb04811f8ce7b9f514f498212f71,niftynet/layer/crf.py,,ftheta,#Any#Any#Any#Any#Any#Any#,148
Before Change
U.shape)
// Weighting Filter Outputs
Q2 = tf.add_n([Q1 * w for Q1, w in zip(Q1, kernel_weights)])
// Compatibility Transform
spatial_dim = infer_spatial_rank(U)
assert spatial_dim == 2 or 3, \
"Currently CRFAsRNNLayer supports 2D/3D images."
full_stride = expand_spatial_params(1, spatial_dim)
Q3 = tf.nn.convolution(input=Q2,
filter=mu,
strides=full_stride,
padding="SAME")
// Adding Unary Potentials
Q4 = U - Q3
// output logits, not the softmax
return Q4
def permutohedral_prepare(position_vectors):
After Change
:return: updated mean-field distribution
batch_size, n_ch = U.shape.as_list()[0], U.shape.as_list()[-1]
n_voxels = np.prod(U.shape.as_list()[:-1])
H1 = tf.reshape(tf.nn.softmax(H1), [batch_size, -1, n_ch])
Q1 = 0
for idx, permutohedral in enumerate(permutohedrals):
In pattern: SUPERPATTERN
Frequency: 4
Non-data size: 5
Instances
Project Name: NifTK/NiftyNet
Commit Name: 135a56e0935fbb04811f8ce7b9f514f498212f71
Time: 2018-07-25
Author: wenqi.li@ucl.ac.uk
File Name: niftynet/layer/crf.py
Class Name:
Method Name: ftheta
Project Name: tensorflow/models
Commit Name: a4d9c3a0656639f00ea0050e6535f7bf547d8719
Time: 2018-04-13
Author: lzc@google.com
File Name: research/object_detection/meta_architectures/faster_rcnn_meta_arch.py
Class Name: FasterRCNNMetaArch
Method Name: _gather_instance_masks
Project Name: IBM/adversarial-robustness-toolbox
Commit Name: babc30faa938bde87dedb1d970d8dfddb116564b
Time: 2020-06-23
Author: M.N.Tran@ibm.com
File Name: art/attacks/evasion/shapeshifter.py
Class Name: ShapeShifter
Method Name: _build_graph
Project Name: XifengGuo/CapsNet-Keras
Commit Name: 0ca571cb6c0fb465befebcb4e1fccef6efaecda3
Time: 2017-11-24
Author: guoxifeng1990@163.com
File Name: capsulelayers.py
Class Name: Mask
Method Name: call