You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Dec 19, 2023. It is now read-only.
发现存在两个问题:
1,调用model.save()的时候出错(截图代码中第155行),错误提示如下:
“NotImplementedError: Cannot serialize a method function without a named 'self' argument.”
2,我想用Functional API的形式将Alphanetv3 model的两个FeatureExpansion层的输出拿出来作为Feature extraction的结果输出(截图代码中第158和159行)时出错,错误提示如下:
File "c:\program files (x86)\python\python37\lib\site-packages\keras\engine\base_layer.py", line 2150, in input
' is not connected, no input to return.')
AttributeError: Layer alpha_net_v3 is not connected, no input to return.
我想单独输出中间层FeatureExpansion层的输出,并保存到本地目录,该如何实现?谢谢!
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
您好!这段时间拜读了您实现的Alphanet代码并在本地测试了一下,代码如下:
发现存在两个问题:
1,调用model.save()的时候出错(截图代码中第155行),错误提示如下:
“NotImplementedError: Cannot serialize a method function without a named 'self' argument.”
2,我想用Functional API的形式将Alphanetv3 model的两个FeatureExpansion层的输出拿出来作为Feature extraction的结果输出(截图代码中第158和159行)时出错,错误提示如下:
File "c:\program files (x86)\python\python37\lib\site-packages\keras\engine\base_layer.py", line 2150, in input
' is not connected, no input to return.')
AttributeError: Layer alpha_net_v3 is not connected, no input to return.
我想单独输出中间层FeatureExpansion层的输出,并保存到本地目录,该如何实现?谢谢!
Beta Was this translation helpful? Give feedback.
All reactions