StyleGAN2-Face-Modificator icon indicating copy to clipboard operation
StyleGAN2-Face-Modificator copied to clipboard

"Train a neural network" doesn't work.

Open Michi-123 opened this issue 4 years ago • 0 comments

In case select 'Fast(low quarity)' mathod, the 'Train a neural network' doesn't work.

Traceback (most recent call last):
  File "encode_images.py", line 79, in <module>
    main()
  File "encode_images.py", line 52, in main
    generator = Generator(Gs_network, args.batch_size, randomize_noise=args.randomize_noise)
  File "/content/encoder/generator_model.py", line 35, in __init__
    self.generator_output = self.graph.get_tensor_by_name('G_synthesis_1/_Run/concat:0')
  File "/tensorflow-1.15.2/python3.6/tensorflow_core/python/framework/ops.py", line 3783, in get_tensor_by_name
    return self.as_graph_element(name, allow_tensor=True, allow_operation=False)
  File "/tensorflow-1.15.2/python3.6/tensorflow_core/python/framework/ops.py", line 3607, in as_graph_element
    return self._as_graph_element_locked(obj, allow_tensor, allow_operation)
  File "/tensorflow-1.15.2/python3.6/tensorflow_core/python/framework/ops.py", line 3649, in _as_graph_element_locked
    "graph." % (repr(name), repr(op_name)))
KeyError: "The name 'G_synthesis_1/_Run/concat:0' refers to a Tensor which does not exist. The operation, 'G_synthesis_1/_Run/concat', does not exist in the graph."

Thanks.

Michi-123 avatar Jul 24 '20 04:07 Michi-123