stylegan2encoder icon indicating copy to clipboard operation
stylegan2encoder copied to clipboard

Bug in encode_images.py

Open gsygsy96 opened this issue 5 years ago • 2 comments

An error occurs when I run step1. The details are: File "/***/stylegan2/stylegan2encoder-master/encoder/generator_model.py", line 33, in init self.dlatent_variable = next(v for v in tf.global_variables() if 'learnable_dlatents' in v.name) StopIteration

I think there is no variable named 'learnable_dlatents'. Could you tell me how to fix it?

gsygsy96 avatar Jan 13 '20 14:01 gsygsy96

yes found the same problem. any solution for this?

segalinc avatar Feb 18 '20 17:02 segalinc

See https://github.com/pbaylies/stylegan2/issues/4#issuecomment-597956314

I assume you both are running @pbaylies 's version

dimitry12 avatar Mar 12 '20 01:03 dimitry12