日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當(dāng)前位置: 首頁 > 编程语言 > python >内容正文

python

python efficientdet AttributeError: module ‘gast‘ has no attribute ‘Num‘

發(fā)布時(shí)間:2023/12/29 python 34 豆豆
生活随笔 收集整理的這篇文章主要介紹了 python efficientdet AttributeError: module ‘gast‘ has no attribute ‘Num‘ 小編覺得挺不錯(cuò)的,現(xiàn)在分享給大家,幫大家做個(gè)參考.

今天在用efficientDet跑模型的時(shí)候,出現(xiàn)了下面的警告:

WARNING:tensorflow:Entity <bound method RegressBoxes.call of <layers.RegressBoxes object at 0x7f41c3f35a90>> could not be transformed and will be executed as-is. Please report this to the AutgoGraph team. When filing the bug, set the verbosity to 10 (on Linux, `export AUTOGRAPH_VERBOSITY=10`) and attach the full output. Cause: converting <bound method RegressBoxes.call of <layers.RegressBoxes object at 0x7f41c3f35a90>>: AssertionError: Bad argument number for Name: 3, expecting 4 ERROR:tensorflow:Error converting <bound method ClipBoxes.call of <layers.ClipBoxes object at 0x7f41c3fad9e8>> Traceback (most recent call last):File "/home/eric/anaconda3/envs/pointnet/lib/python3.6/site-packages/tensorflow/python/autograph/impl/api.py", line 524, in to_graphreturn conversion.convert(entity, program_ctx)File "/home/eric/anaconda3/envs/pointnet/lib/python3.6/site-packages/tensorflow/python/autograph/impl/conversion.py", line 306, in convertentity, program_ctx, free_nonglobal_var_names)File "/home/eric/anaconda3/envs/pointnet/lib/python3.6/site-packages/tensorflow/python/autograph/impl/conversion.py", line 229, in _convert_with_cacheentity, program_ctx)File "/home/eric/anaconda3/envs/pointnet/lib/python3.6/site-packages/tensorflow/python/autograph/impl/conversion.py", line 433, in convert_entity_to_astnodes, name, entity_info = convert_func_to_ast(o, program_ctx)File "/home/eric/anaconda3/envs/pointnet/lib/python3.6/site-packages/tensorflow/python/autograph/impl/conversion.py", line 624, in convert_func_to_astnode = node_to_graph(node, context)File "/home/eric/anaconda3/envs/pointnet/lib/python3.6/site-packages/tensorflow/python/autograph/impl/conversion.py", line 657, in node_to_graphnode = converter.standard_analysis(node, context, is_initial=True)File "/home/eric/anaconda3/envs/pointnet/lib/python3.6/site-packages/tensorflow/python/autograph/core/converter.py", line 354, in standard_analysisnode = qual_names.resolve(node)File "/home/eric/anaconda3/envs/pointnet/lib/python3.6/site-packages/tensorflow/python/autograph/pyct/qual_names.py", line 254, in resolvereturn QnResolver().visit(node)File "/home/eric/anaconda3/envs/pointnet/lib/python3.6/ast.py", line 253, in visitreturn visitor(node)File "/home/eric/anaconda3/envs/pointnet/lib/python3.6/ast.py", line 308, in generic_visitvalue = self.visit(value)File "/home/eric/anaconda3/envs/pointnet/lib/python3.6/ast.py", line 253, in visitreturn visitor(node)File "/home/eric/anaconda3/envs/pointnet/lib/python3.6/ast.py", line 317, in generic_visitnew_node = self.visit(old_value)File "/home/eric/anaconda3/envs/pointnet/lib/python3.6/ast.py", line 253, in visitreturn visitor(node)File "/home/eric/anaconda3/envs/pointnet/lib/python3.6/site-packages/tensorflow/python/autograph/pyct/qual_names.py", line 236, in visit_Subscriptif isinstance(s.value, gast.Num): AttributeError: module 'gast' has no attribute 'Num'

解決方法

pip install 'gast==0.2.2'

參考文獻(xiàn)

[1].Module 'gast' has no attribute 'Num' .?https://github.com/tensorflow/tensorflow/issues/32319

總結(jié)

以上是生活随笔為你收集整理的python efficientdet AttributeError: module ‘gast‘ has no attribute ‘Num‘的全部?jī)?nèi)容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網(wǎng)站內(nèi)容還不錯(cuò),歡迎將生活随笔推薦給好友。