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
good evening sir/mam i ran your code but the errors came in __main__.py...sir could you please help me how can i find rate and distortion datasets and also training
#1
Open
harinitw opened this issue
Dec 1, 2021
· 0 comments
File "C:\Users\hari\PycharmProjects\sample programms_main_.py", line 62, in
main()
File "C:\Users\hari\PycharmProjects\sample programms_main_.py", line 47, in main
model = DistortionModel(*params)
File "C:\Users\hari\PycharmProjects\sample programms\distortion.py", line 26, in init
super().init(model_name, session, epochs, batch_size, loss_type, width, height, levels)
File "C:\Users\hari\PycharmProjects\sample programms\base.py", line 53, in init
self._build()
File "C:\Users\hari\PycharmProjects\sample programms\base.py", line 79, in _build
self._output = self.cnn()
File "C:\Users\hari\PycharmProjects\sample programms\distortion.py", line 35, in cnn
'w_1', [3, 3, self._channels * 2, 64], tf.float32, initializer=tf.compat.v1.layers.xavier_initializer(False))
File "C:\Users\hari\PycharmProjects\sample programms\pythenv\lib\site-packages\tensorflow\python\util\lazy_loader.py", line 63, in getattr
return getattr(module, item)
File "C:\Users\hari\PycharmProjects\sample programms\pythenv\lib\site-packages\tensorflow\python\util\module_wrapper.py", line 236, in _getattr
attr = getattr(self._tfmw_wrapped_module, name)
AttributeError: module 'keras.api._v1.keras.internal.legacy.layers' has no attribute 'xavier_initializer'
Process finished with exit code 1
The text was updated successfully, but these errors were encountered:
File "C:\Users\hari\PycharmProjects\sample programms_main_.py", line 62, in
main()
File "C:\Users\hari\PycharmProjects\sample programms_main_.py", line 47, in main
model = DistortionModel(*params)
File "C:\Users\hari\PycharmProjects\sample programms\distortion.py", line 26, in init
super().init(model_name, session, epochs, batch_size, loss_type, width, height, levels)
File "C:\Users\hari\PycharmProjects\sample programms\base.py", line 53, in init
self._build()
File "C:\Users\hari\PycharmProjects\sample programms\base.py", line 79, in _build
self._output = self.cnn()
File "C:\Users\hari\PycharmProjects\sample programms\distortion.py", line 35, in cnn
'w_1', [3, 3, self._channels * 2, 64], tf.float32, initializer=tf.compat.v1.layers.xavier_initializer(False))
File "C:\Users\hari\PycharmProjects\sample programms\pythenv\lib\site-packages\tensorflow\python\util\lazy_loader.py", line 63, in getattr
return getattr(module, item)
File "C:\Users\hari\PycharmProjects\sample programms\pythenv\lib\site-packages\tensorflow\python\util\module_wrapper.py", line 236, in _getattr
attr = getattr(self._tfmw_wrapped_module, name)
AttributeError: module 'keras.api._v1.keras.internal.legacy.layers' has no attribute 'xavier_initializer'
Process finished with exit code 1
The text was updated successfully, but these errors were encountered: