openai / glow

Code for reproducing results in "Glow: Generative Flow with Invertible 1x1 Convolutions"
https://arxiv.org/abs/1807.03039
MIT License
3.11k stars 515 forks source link

Loading of the model issue #111

Open EAdnds opened 2 years ago

EAdnds commented 2 years ago

Hi, I have a problem with the 'Loading of the model' part.

Here is the error I get when I load this part :


in () 96 # Encoder 97 print("inputs['enc_x']",inputs['enc_x']) ---> 98 enc_x = get(inputs['enc_x']) 99 enc_eps = [get(outputs['enceps' + str(i)]) for i in range(n_eps)] 100 if not optimized:

3 frames /usr/local/lib/python3.7/dist-packages/tensorflow/python/framework/ops.py in _as_graph_element_locked(self, obj, allow_tensor, allow_operation) 4014 raise KeyError("The name %s refers to a Tensor which does not " 4015 "exist. The operation, %s, does not exist in the " -> 4016 "graph." % (repr(name), repr(op_name))) 4017 try: 4018 return op.outputs[out_n]

KeyError: "The name 'import/input/image:0' refers to a Tensor which does not exist. The operation, 'import/input/image', does not exist in the graph.


Do you have an idea to solve this problem ??

Thanks

Capture d’écran 2022-04-11 à 16 57 01