a312863063 / seeprettyface-face_editor

这是一个基于StyleGAN的人脸属性编辑器
540 stars 170 forks source link

play_with_dlatent.py AssertionError #14

Open dnc-anwang opened 3 years ago

dnc-anwang commented 3 years ago

Traceback (most recent call last): File "play_with_dlatent.py", line 87, in main() File "play_with_dlatent.py", line 43, in main generator_network, discriminator_network, Gs_network = pickle.load(f) File "D:\MyProjects\ai\seeprettyface-face_editor\dnnlib\tflib\network.py", line 279, in setstate assert state["version"] in [2, 3] AssertionError

what's happening ?

dnc-anwang commented 3 years ago

I noticed stylegan2, the code is :

assert state["version"] in [2, 3, 4]

so it passed, then I encountered another question, cann't find dnnlib.tflib.ops, so I copied some files from stylegan2.

such as: ops the whole directory, and custom_ops.py.

so it works, however, pictures generated by play_with_dlatent have no expect changes compared to the original one.

why ?

molo32 commented 3 years ago

I have the same problem assert state ["version"] in [2, 3] , did you solve it?

zhang123-sys commented 1 year ago
python play_with_dlatent.py

报错 AttributeError: module 'tensorflow' has no attribute 'Dimension' tensorflow用什么版本?我的tensorflow和Keras均为2.10.0