Rudrabha / LipGAN

This repository contains the codes for LipGAN. LipGAN was published as a part of the paper titled "Towards Automatic Face-to-Face Translation".
http://cvit.iiit.ac.in/research/projects/cvit-projects/facetoface-translation
MIT License
578 stars 122 forks source link

AttributeError: 'tuple' object has no attribute 'load_weights' #11

Closed Nixon1979 closed 4 years ago

Nixon1979 commented 4 years ago

Environment -

Ubuntu 18.4 Tensorflow-GPU - 1.18 Keras tired with 2.2.4 and 2.3.1 cuda-9.0

Tried to import keras from TensorFlow but in all cases getting the following error.

Model Created

Traceback (most recent call last): File "batch_inference.py", line 228, in main() File "batch_inference.py", line 206, in main model.load_weights(args.checkpoint_path) AttributeError: 'tuple' object has no attribute 'load_weights'

Nixon1979 commented 4 years ago

Sorry my bad .. closing this.. it was a path issue.

vishalsharma345 commented 4 years ago

HI @Nixon

Sorry my bad .. closing this.. it was a path issue.

HI Nixon,

i am getting same issue (screenshot attached). Could you please let me know how did you fix the issue. error

Vishal

Nixon1979 commented 4 years ago

Specify the path along with the ligan checkpoint file name, not only the folder path

On Tue, 25 Feb 2020, 13:47 vishalsharma345, notifications@github.com wrote:

HI @nixon https://github.com/nixon

Sorry my bad .. closing this.. it was a path issue.

HI Nixon,

i am getting same issue (screenshot attached). Could you please let me know how did you fix the issue. [image: error] https://user-images.githubusercontent.com/38868982/75228039-5a213e00-57d5-11ea-831d-765261014dfd.png

Vishal

— You are receiving this because you modified the open/close state. Reply to this email directly, view it on GitHub https://github.com/Rudrabha/LipGAN/issues/11?email_source=notifications&email_token=AEKSEBSFPPCXE336B75MFITRETH2ZA5CNFSM4KYMTKBKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEM272RA#issuecomment-590740804, or unsubscribe https://github.com/notifications/unsubscribe-auth/AEKSEBTDBAPUF4DMRNEACY3RETH2ZANCNFSM4KYMTKBA .