AliaksandrSiarohin / pose-gan

381 stars 78 forks source link

Error while executing create_pairs_dataset.py #42

Closed Seairis7 closed 4 years ago

Seairis7 commented 4 years ago

File "/home/abc/Desktop/pose-gan/pose_transform.py", line 3, in from keras.backend import tf as ktf ImportError: cannot import name tf

AliaksandrSiarohin commented 4 years ago

Do you have tensorflow installed?

Seairis7 commented 4 years ago

@AliaksandrSiarohin yes i have installed tensorflow 1.14.0

AliaksandrSiarohin commented 4 years ago

Guess you would require 2.0.8 keras anyway. But you can change this line to: import tensorflow as ktf

Seairis7 commented 4 years ago

@AliaksandrSiarohin while i start train in dsc it says:: Discrepancy between trainable weights and collected trainable weights, did you set model.trainable without calling model.compile after ? what is the problem here??

AliaksandrSiarohin commented 4 years ago

Version problem most likely. I use keras=2.0.8, and tensorflow=1.5