警告:tensorflow:模型未能序列化为JSON。忽略。。。在“%uuuu init”中具有参数的层必须重写“get\u config”`

2024-04-26 14:27:57 发布

您现在位置:Python中文网/ 问答频道 /正文

我正试图使用以下链接执行mask rcnn:https://github.com/matterport/Mask_RCNN,但当我运行代码时,会收到以下警告和错误:

WARNING:tensorflow:From C:\Program Files\Anaconda3\envs\mask-rcnn\lib\site-packages\tensorflow_core\python\ops\resource_variable_ops.py:1635: calling BaseResourceVariable.init (from tensorflow.python.ops.resource_variable_ops) with constraint is deprecated and will be removed in a future version. Instructions for updating: If using Keras pass *_constraint arguments to layers.

而且,它正在展示

WARNING:tensorflow:Model failed to serialize as JSON. Ignoring... Layers with arguments in __init__ must override get_config.

边界框未显示并显示以下信息:*** No instances to display ***

我在网上搜索了一些答案,比如降低检测阈值,但没有成功


Tags: toininit链接tensorflowwithmaskvariable