TypeError: Unexpected keyword argument passed to optimizer: lr
faizmisman opened this issue · 1 comments
Python = 3.6
Keras = 2.2.4
Tensorflow = 1.15
Hi Guys,
I tried to load my Yolov3 model. This running with no GPU But this error occurred:
food_model = load_model(config['predict']['foodnet_model'], custom_objects={"tf": tf, "RAdam":RAdam})
File "C:\Users\User\Anaconda3\envs\no-gpu\lib\site-packages\keras\engine\saving.py", line 419, in load_model
model = _deserialize_model(f, custom_objects, compile)
File "C:\Users\User\Anaconda3\envs\no-gpu\lib\site-packages\keras\engine\saving.py", line 299, in _deserialize_model
custom_objects=custom_objects)
File "C:\Users\User\Anaconda3\envs\no-gpu\lib\site-packages\keras\optimizers.py", line 768, in deserialize
printable_module_name='optimizer')
File "C:\Users\User\Anaconda3\envs\no-gpu\lib\site-packages\keras\utils\generic_utils.py", line 147, in deserialize_keras_object
return cls.from_config(config['config'])
File "C:\Users\User\Anaconda3\envs\no-gpu\lib\site-packages\keras\optimizers.py", line 154, in from_config
return cls(**config)
File "C:\Users\User\Anaconda3\envs\no-gpu\lib\site-packages\keras_radam\optimizers.py", line 34, in init
super(RAdam, self).init(**kwargs)
File "C:\Users\User\Anaconda3\envs\no-gpu\lib\site-packages\keras\optimizers.py", line 79, in init
'passed to optimizer: ' + str(k))
TypeError: Unexpected keyword argument passed to optimizer: lr
Is this still relevant? If so, what is blocking it? Is there anything you can do to help move it forward?
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.