Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

求助,启动报错(windows环境) #42

Open
songchj opened this issue Nov 27, 2021 · 0 comments
Open

求助,启动报错(windows环境) #42

songchj opened this issue Nov 27, 2021 · 0 comments

Comments

@songchj
Copy link

songchj commented Nov 27, 2021

[2021-11-27 16:01:08,729][../src/AgentAI/aimodel\ImitationLearning\Network.py:306][INFO] : input shape:(50, 50, 3)
[2021-11-27 16:01:08,738][../src/AgentAI/aimodel\ImitationLearning\Network.py:310][INFO] : use small net(50), KerasModelSmallNet50
[2021-11-27 16:01:08,817][../src/AgentAI/aimodel\ImitationLearning\Network.py:320][INFO] : task list:[0]
[2021-11-27 16:01:08,859][agentai.py:134][ERROR] : exception: You are trying to load a weight file containing 129 layers into a model with 9 layers. msg: Traceback (most recent call last):
File "agentai.py", line 130, in Main
RunFrameWork(args.mode)
File "agentai.py", line 92, in RunFrameWork
if aiFramework.Init() is True:
File "../src/AgentAI/aiframework\AIFrameWork.py", line 59, in Init
if self._InitAIObject() is True:
File "../src/AgentAI/aiframework\AIFrameWork.py", line 74, in _InitAIObject
self.__aiModel = self.__aiPlugin.CreateAIModelObj()
File "../src/AgentAI/aiframework\AIPlugin.py", line 260, in CreateAIModelObj
aiModel = aiModelClass()
File "../src/AgentAI/aimodel\ImitationLearning\ImitationAI.py", line 34, in init
self.network.LoadWeights()
File "../src/AgentAI/aimodel\ImitationLearning\Network.py", line 535, in LoadWeights
self.kerasModel.load_weights(self.modelPath + 'my_model_weights.h5')
File "D:\Program Files\Python3\lib\site-packages\tensorflow\python\keras\engine\network.py", line 1448, in load_weights
saving.load_weights_from_hdf5_group(f, self.layers)
File "D:\Program Files\Python3\lib\site-packages\tensorflow\python\keras\engine\saving.py", line 780, in load_weights_from_hdf5_group
' layers.')
ValueError: You are trying to load a weight file containing 129 layers into a model with 9 layers.

@songchj songchj changed the title 求助,启动报错 求助,启动报错(windows环境) Nov 27, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant