現在、Windows10環境下で次のインストラクションに従ってDeep Lab3+を使えるようにしようとしています。
https://www.kunihikokaneko.com/dblab/segmentation/keras-deeplab-v3-plus.html
ところが、重みをロードしようとして「load_weights.py」を実行したら、次のエラーが出てしまいました。
エラーメッセージとしては、「unsupported operand type(s) for /: 'Dimension' and 'float'」ということでしょうか。
(ai) C:\keras-deeplab-v3-plus-master>python load_weights.py Instantiating an empty Deeplabv3+ model... WARNING:tensorflow:From C:\Users****\Anaconda3\envs\ai\lib\site-packages\tensorflow\python\ops\resource_variable_ops.py:435: colocate_with (from tensorflow.python.framework.ops) is deprecated and will be removed in a future version. Instructions for updating: Colocations handled automatically by placer. Traceback (most recent call last): File "load_weights.py", line 13, in <module> classes=21, backbone=backbone, weights=None) File "C:\keras-deeplab-v3-plus-master\model.py", line 331, in Deeplabv3 expansion=6, block_id=1, skip_connection=False) File "C:\keras-deeplab-v3-plus-master\model.py", line 189, in _inverted_res_block name=prefix + 'expand')(x) . . . TypeError: unsupported operand type(s) for /: 'Dimension' and 'float'
このエラーの対応策がわかる方、よろしくお願いします。
【環境】
OS:Windows10
Python:3.6
DeepLab:3
Tensorflow:1-13
あなたの回答
tips
プレビュー