[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.
[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.