addcb13fb3dcd2cdbc32ac81611a78ac1c19b02f,niftynet/network/dense_vnet.py,DenseVNet,layer_op,#DenseVNet#Any#Any#Any#,70
Before Change
segmentation=image_resize(segmentation,input_size[1:-1])
tf.summary.scalar("segmentation".format(idx), tf.reduce_mean(tf.square(segmentation)), [logging.LOG])
logging.image3_axial("seg",tf.nn.softmax(segmentation)[:,:,:,:,1:]*255.,3,[logging.LOG])
logging.image3_axial("img",tf.minimum(255.,tf.maximum(0.,(tf.to_float(downsampled_img)/2.+1.)*127.)),3,[logging.LOG])
return segmentation
def image_resize(image,output_size):
After Change
tf.summary.scalar("down{}".format(idx),tf.reduce_mean(tf.square(down)),[tf.GraphKeys.SUMMARIES])
all_segmentation_features.append(image_resize(skip,output_shape))
hack=True
if hack == True:
all_segmentation_features=[all_segmentation_features[0]]+all_segmentation_features
segmentation = ConvolutionalLayer(
self.num_classes+1,
kernel_size=hp["final_kernel"],
with_bn=False,
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 5
Instances
Project Name: NifTK/NiftyNet
Commit Name: addcb13fb3dcd2cdbc32ac81611a78ac1c19b02f
Time: 2017-08-23
Author: egibson@cs.ucl.ac.uk
File Name: niftynet/network/dense_vnet.py
Class Name: DenseVNet
Method Name: layer_op
Project Name: asyml/texar
Commit Name: cc4a397586c6dc8c2de95773572bf3ab318a8371
Time: 2018-03-23
Author: zhitinghu@gmail.com
File Name: texar/utils/utils.py
Class Name:
Method Name: switch_dropout
Project Name: asyml/texar
Commit Name: 5ec08ed0e16d87c029bc5d9de46b95800d0bc470
Time: 2018-05-03
Author: shore@pku.edu.cn
File Name: texar/losses/mle_losses.py
Class Name:
Method Name: smoothing_cross_entropy