---------------------------------------------------------------------------
ValueError Traceback (most recent call last)
<ipython-input-5-f17e176e67ed> in <module>
103 epoch_list = get_file_list(main_path + 'models/')
104 epoch_last = epoch_list[-1]
--> 105 model.load_weights(main_path + 'models/' + epoch_last)
106 print("**********checkpoint_loaded: ", epoch_last)
107 initial_epoch_ = int(epoch_last.split('-')[2]) - 1
c:\program files (x86)\microsoft visual studio\shared\python37_64\lib\site-packages\tensorflow\python\keras\engine\training.py in load_weights(self, filepath, by_name, skip_mismatch)
248 raise ValueError('Load weights is not yet supported with TPUStrategy '
249 'with steps_per_run greater than 1.')
--> 250 return super(Model, self).load_weights(filepath, by_name, skip_mismatch)
251
252 def compile(self,
c:\program files (x86)\microsoft visual studio\shared\python37_64\lib\site-packages\tensorflow\python\keras\engine\network.py in load_weights(self, filepath, by_name, skip_mismatch)
1264 f, self.layers, skip_mismatch=skip_mismatch)
1265 else:
-> 1266 hdf5_format.load_weights_from_hdf5_group(f, self.layers)
1267
1268 def _updated_config(self):
c:\program files (x86)\microsoft visual studio\shared\python37_64\lib\site-packages\tensorflow\python\keras\saving\hdf5_format.py in load_weights_from_hdf5_group(f, layers)
705 str(len(weight_values)) + ' elements.')
706 weight_value_tuples += zip(symbolic_weights, weight_values)
--> 707 K.batch_set_value(weight_value_tuples)
708
709
c:\program files (x86)\microsoft visual studio\shared\python37_64\lib\site-packages\tensorflow\python\keras\backend.py in batch_set_value(tuples)
3382 if ops.executing_eagerly_outside_functions():
3383 for x, value in tuples:
-> 3384 x.assign(np.asarray(value, dtype=dtype(x)))
3385 else:
3386 with get_graph().as_default():
c:\program files (x86)\microsoft visual studio\shared\python37_64\lib\site-packages\tensorflow\python\ops\resource_variable_ops.py in assign(self, value, use_locking, name, read_value)
844 with _handle_graph(self.handle):
845 value_tensor = ops.convert_to_tensor(value, dtype=self.dtype)
--> 846 self._shape.assert_is_compatible_with(value_tensor.shape)
847 assign_op = gen_resource_variable_ops.assign_variable_op(
848 self.handle, value_tensor, name=name)
c:\program files (x86)\microsoft visual studio\shared\python37_64\lib\site-packages\tensorflow\python\framework\tensor_shape.py in assert_is_compatible_with(self, other)
1115 """
1116 if not self.is_compatible_with(other):
-> 1117 raise ValueError("Shapes %s and %s are incompatible" % (self, other))
1118
1119 def most_specific_compatible_shape(self, other):
ValueError: Shapes (43360, 100) and (43350, 100) are incompatible