bonlime / keras-deeplab-v3-plus

Keras implementation of Deeplab v3+ with pretrained weights
MIT License
1.36k stars 428 forks source link

Failed to convert object of type <class 'tuple'> to Tensor #104

Closed shubhaminnani closed 5 years ago

shubhaminnani commented 5 years ago

while running load_weights.py getting this error

File "C:\Users\Student\Anaconda2\lib\site-packages\tensorflow\python\framework\tensor_util.py", line 562, in make_tensor_proto "supported type." % (type(values), values))

TypeError: Failed to convert object of type <class 'tuple'> to Tensor. Contents: (1, 1, 16, Dimension(96)). Consider casting elements to a supported type.

gi097 commented 5 years ago

I get the same error. What did you do to resolve this issue?

shubhaminnani commented 5 years ago

use keras 2.2 and tensorflow 1.XX and use the previous version code.