WARNING:tensorflow:From /Users/aashish/Desktop/Virtual-Try-On-Flask/JPPNet.py:25: The name tf.GraphDef is deprecated. Please use tf.compat.v1.GraphDef instead.
/Users/aashish/Desktop/Virtual-Try-On-Flask/JPPNet.py:26: RuntimeWarning: Unexpected end-group tag: Not all data was converted
graph_def.ParseFromString(f.read())
WARNING:tensorflow:From /Users/aashish/Desktop/Virtual-Try-On-Flask/JPPNet.py:29: The name tf.global_variables_initializer is deprecated. Please use tf.compat.v1.global_variables_initializer instead.
Traceback (most recent call last):
File "main.py", line 42, in
"checkpoints/tom.pth")
File "/Users/aashish/Desktop/Virtual-Try-On-Flask/Model.py", line 33, in init
self.jpp = JPP(pb_path)
File "/Users/aashish/Desktop/Virtual-Try-On-Flask/JPPNet.py", line 30, in init
self.img_tensor = sess.graph.get_tensor_by_name('img_1:0')
File "/usr/local/lib/python3.7/site-packages/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 "/usr/local/lib/python3.7/site-packages/tensorflow_core/python/framework/ops.py", line 3607, in as_graph_element
return self._as_graph_element_locked(obj, allow_tensor, allow_operation)
File "/usr/local/lib/python3.7/site-packages/tensorflow_core/python/framework/ops.py", line 3649, in _as_graph_element_locked
"graph." % (repr(name), repr(op_name)))
KeyError: "The name 'img_1:0' refers to a Tensor which does not exist. The operation, 'img_1', does not exist in the graph."
Error on running: python3 main.py
WARNING:tensorflow:From /Users/aashish/Desktop/Virtual-Try-On-Flask/JPPNet.py:25: The name tf.GraphDef is deprecated. Please use tf.compat.v1.GraphDef instead.
/Users/aashish/Desktop/Virtual-Try-On-Flask/JPPNet.py:26: RuntimeWarning: Unexpected end-group tag: Not all data was converted graph_def.ParseFromString(f.read()) WARNING:tensorflow:From /Users/aashish/Desktop/Virtual-Try-On-Flask/JPPNet.py:29: The name tf.global_variables_initializer is deprecated. Please use tf.compat.v1.global_variables_initializer instead.
Traceback (most recent call last): File "main.py", line 42, in
"checkpoints/tom.pth")
File "/Users/aashish/Desktop/Virtual-Try-On-Flask/Model.py", line 33, in init
self.jpp = JPP(pb_path)
File "/Users/aashish/Desktop/Virtual-Try-On-Flask/JPPNet.py", line 30, in init
self.img_tensor = sess.graph.get_tensor_by_name('img_1:0')
File "/usr/local/lib/python3.7/site-packages/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 "/usr/local/lib/python3.7/site-packages/tensorflow_core/python/framework/ops.py", line 3607, in as_graph_element
return self._as_graph_element_locked(obj, allow_tensor, allow_operation)
File "/usr/local/lib/python3.7/site-packages/tensorflow_core/python/framework/ops.py", line 3649, in _as_graph_element_locked
"graph." % (repr(name), repr(op_name)))
KeyError: "The name 'img_1:0' refers to a Tensor which does not exist. The operation, 'img_1', does not exist in the graph."