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

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

Comments

@harinitw
Copy link

harinitw commented Dec 1, 2021

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

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