CNN

ValueError: No gradients provided for any variable: ['conv2d/kernel:0', 'conv2d/bias:0', 'conv2d_1/kernel:0', 'conv2d_1/bias:0',

荒凉一梦 提交于 2020-12-12 05:38:28
问题 System information Colab tensorflow 2.2.0 Describe the current behavior: I faced this error when i tried to solve my own data issues, which is multiple label semantic segmentations. Below is the code import tensorflow as tf import tensorflow.keras.backend as K IMG_WIDTH = 512 IMG_HEIGHT = 512 IMG_CHANNELS = 3 # batch_shape=(512,512,3) # inputs = Input(batch_shape=(4, 512, 512, 3)) #Build the model inputs = tf.keras.layers.Input((IMG_HEIGHT, IMG_WIDTH, IMG_CHANNELS)) #s = tf.keras.layers

ValueError: No gradients provided for any variable: ['conv2d/kernel:0', 'conv2d/bias:0', 'conv2d_1/kernel:0', 'conv2d_1/bias:0',

馋奶兔 提交于 2020-12-12 05:38:20
问题 System information Colab tensorflow 2.2.0 Describe the current behavior: I faced this error when i tried to solve my own data issues, which is multiple label semantic segmentations. Below is the code import tensorflow as tf import tensorflow.keras.backend as K IMG_WIDTH = 512 IMG_HEIGHT = 512 IMG_CHANNELS = 3 # batch_shape=(512,512,3) # inputs = Input(batch_shape=(4, 512, 512, 3)) #Build the model inputs = tf.keras.layers.Input((IMG_HEIGHT, IMG_WIDTH, IMG_CHANNELS)) #s = tf.keras.layers

Measuring uncertainty using MC Dropout on pytorch

穿精又带淫゛_ 提交于 2020-12-06 16:01:47
问题 I am trying to implement Bayesian CNN using Mc Dropout on Pytorch, the main idea is that by applying dropout at test time and running over many forward passes , you get predictions from a variety of different models. I’ve found an application of the Mc Dropout and I really did not get how they applied this method and how exactly they did choose the correct prediction from the list of predictions here is the code def mcdropout_test(model): model.train() test_loss = 0 correct = 0 T = 100 for

Load keras model h5 unknown metrics

岁酱吖の 提交于 2020-11-29 19:14:44
问题 I have trained a keras CNN monitoring the metrics as follow: METRICS = [ TruePositives(name='tp'), FalsePositives(name='fp'), TrueNegatives(name='tn'), FalseNegatives(name='fn'), BinaryAccuracy(name='accuracy'), Precision(name='precision'), Recall(name='recall'), AUC(name='auc'), ] and then the model.compile: model.compile(optimizer='nadam', loss='binary_crossentropy', metrics=METRICS) it works perfectly and I saved my h5 model (model.h5). Now I have downloaded the model and I would like to

Load keras model h5 unknown metrics

别等时光非礼了梦想. 提交于 2020-11-29 19:10:32
问题 I have trained a keras CNN monitoring the metrics as follow: METRICS = [ TruePositives(name='tp'), FalsePositives(name='fp'), TrueNegatives(name='tn'), FalseNegatives(name='fn'), BinaryAccuracy(name='accuracy'), Precision(name='precision'), Recall(name='recall'), AUC(name='auc'), ] and then the model.compile: model.compile(optimizer='nadam', loss='binary_crossentropy', metrics=METRICS) it works perfectly and I saved my h5 model (model.h5). Now I have downloaded the model and I would like to

Load keras model h5 unknown metrics

混江龙づ霸主 提交于 2020-11-29 19:08:29
问题 I have trained a keras CNN monitoring the metrics as follow: METRICS = [ TruePositives(name='tp'), FalsePositives(name='fp'), TrueNegatives(name='tn'), FalseNegatives(name='fn'), BinaryAccuracy(name='accuracy'), Precision(name='precision'), Recall(name='recall'), AUC(name='auc'), ] and then the model.compile: model.compile(optimizer='nadam', loss='binary_crossentropy', metrics=METRICS) it works perfectly and I saved my h5 model (model.h5). Now I have downloaded the model and I would like to

Load keras model h5 unknown metrics

邮差的信 提交于 2020-11-29 19:06:57
问题 I have trained a keras CNN monitoring the metrics as follow: METRICS = [ TruePositives(name='tp'), FalsePositives(name='fp'), TrueNegatives(name='tn'), FalseNegatives(name='fn'), BinaryAccuracy(name='accuracy'), Precision(name='precision'), Recall(name='recall'), AUC(name='auc'), ] and then the model.compile: model.compile(optimizer='nadam', loss='binary_crossentropy', metrics=METRICS) it works perfectly and I saved my h5 model (model.h5). Now I have downloaded the model and I would like to