I am having this issue . The error was in JSON file. The following are errors:
@WaqasSultani
Traceback (most recent call last):
File "Test_Anomaly_Detector_public.py", line 117, in <module>
model=load_model(model_path)
File "Test_Anomaly_Detector_public.py", line 37, in load_model
model = model_from_json(open(json_path).read())
File "C:\Users\ASDF\anaconda3\envs\video\lib\site-packages\keras\saving\model_config.py", line 102, in model_from_json
return deserialize_from_json(json_string, custom_objects=custom_objects)
File "C:\Users\ASDF\anaconda3\envs\video\lib\site-packages\keras\layers\serialization.py", line 226, in deserialize_from_json
return deserialize(config, custom_objects)
File "C:\Users\ASDF\anaconda3\envs\video\lib\site-packages\keras\layers\serialization.py", line 209, in deserialize
printable_module_name='layer')
File "C:\Users\ASDF\anaconda3\envs\video\lib\site-packages\keras\utils\generic_utils.py", line 683, in deserialize_keras_object
list(custom_objects.items())))
File "C:\Users\ASDF\anaconda3\envs\video\lib\site-packages\keras\engine\sequential.py", line 438, in from_config
custom_objects=custom_objects)
File "C:\Users\ASDF\anaconda3\envs\video\lib\site-packages\keras\layers\serialization.py", line 209, in deserialize
printable_module_name='layer')
File "C:\Users\ASDF\anaconda3\envs\video\lib\site-packages\keras\utils\generic_utils.py", line 686, in deserialize_keras_object
deserialized_obj = cls.from_config(cls_config)
File "C:\Users\ASDF\anaconda3\envs\video\lib\site-packages\keras\engine\base_layer.py", line 783, in from_config
return cls(**config)
File "C:\Users\ASDF\anaconda3\envs\video\lib\site-packages\keras\dtensor\utils.py", line 95, in _wrap_function
init_method(layer_instance, *args, **kwargs)
File "C:\Users\ASDF\anaconda3\envs\video\lib\site-packages\keras\layers\core\dense.py", line 114, in __init__
activity_regularizer=activity_regularizer, **kwargs)
File "C:\Users\ASDF\anaconda3\envs\video\lib\site-packages\tensorflow\python\training\tracking\base.py", line 587, in _method_wrapper
result = method(self, *args, **kwargs)
File "C:\Users\ASDF\anaconda3\envs\video\lib\site-packages\keras\engine\base_layer.py", line 332, in __init__
generic_utils.validate_kwargs(kwargs, allowed_kwargs)
File "C:\Users\ASDF\anaconda3\envs\video\lib\site-packages\keras\utils\generic_utils.py", line 1174, in validate_kwargs
raise TypeError(error_message, kwarg)
TypeError: ('Keyword argument not understood:', 'W_constraint')
I am having this issue . The error was in JSON file. The following are errors:
@WaqasSultani