pierluigiferrari / ssd_keras

A Keras port of Single Shot MultiBox Detector
Apache License 2.0
1.86k stars 934 forks source link

ValueError: None values not supported. #364

Open pucha48 opened 3 years ago

pucha48 commented 3 years ago

Call initializer instance with the dtype argument instead of passing it to the constructor Traceback (most recent call last): File "transfer_learning_new.py", line 477, in initial_epoch=initial_epoch) File "/usr/local/lib/python3.6/dist-packages/keras/legacy/interfaces.py", line 87, in wrapper return func(*args, *kwargs) File "/usr/local/lib/python3.6/dist-packages/keras/engine/training.py", line 1926, in fit_generator self._make_train_function() File "/usr/local/lib/python3.6/dist-packages/keras/engine/training.py", line 960, in _make_train_function loss=self.total_loss) File "/usr/local/lib/python3.6/dist-packages/keras/legacy/interfaces.py", line 87, in wrapper return func(args, *kwargs) File "/usr/local/lib/python3.6/dist-packages/keras/optimizers.py", line 432, in get_updates m_t = (self.beta_1 m) + (1. - self.beta_1) * g File "/usr/local/lib/python3.6/dist-packages/tensorflow/python/ops/math_ops.py", line 888, in binary_op_wrapper y, dtype_hint=x.dtype.base_dtype, name="y") File "/usr/local/lib/python3.6/dist-packages/tensorflow/python/framework/ops.py", line 1145, in convert_to_tensor_v2 as_ref=False) File "/usr/local/lib/python3.6/dist-packages/tensorflow/python/framework/ops.py", line 1224, in internal_convert_to_tensor ret = conversion_func(value, dtype=dtype, name=name, as_ref=as_ref) File "/usr/local/lib/python3.6/dist-packages/tensorflow/python/framework/constant_op.py", line 305, in _constant_tensor_conversion_function return constant(v, dtype=dtype, name=name) File "/usr/local/lib/python3.6/dist-packages/tensorflow/python/framework/constant_op.py", line 246, in constant allow_broadcast=True) File "/usr/local/lib/python3.6/dist-packages/tensorflow/python/framework/constant_op.py", line 284, in _constant_impl allow_broadcast=allow_broadcast)) File "/usr/local/lib/python3.6/dist-packages/tensorflow/python/framework/tensor_util.py", line 454, in make_tensor_proto raise ValueError("None values not supported.") ValueError: None values not supported.

stale[bot] commented 3 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.