Advertisement
Guest User

Untitled

a guest
Feb 26th, 2018
140
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. Exception in thread mercurial_processing:
  2. Traceback (most recent call last):
  3.   File "/usr/local/Cellar/python3/3.6.4_2/Frameworks/Python.framework/Versions/3.6/lib/python3.6/threading.py", line 916, in _bootstrap_inner
  4.     self.run()
  5.   File "/usr/local/Cellar/python3/3.6.4_2/Frameworks/Python.framework/Versions/3.6/lib/python3.6/threading.py", line 864, in run
  6.     self._target(*self._args, **self._kwargs)
  7.   File "/Users/dd/projects/gocream/nike/mercurial_photobooth/local_backend/server/views.py", line 34, in generate_images
  8.     photo_processing.generate_images(filepath)
  9.   File "/Users/dd/projects/gocream/nike/mercurial_photobooth/local_backend/server/utils/photo_processing.py", line 53, in generate_images
  10.     without_bg = remove_bg(upload_image)
  11.   File "/Users/dd/projects/gocream/nike/mercurial_photobooth/local_backend/server/utils/photo_processing.py", line 18, in remove_bg
  12.     return generate_image(image)
  13.   File "/Users/dd/projects/gocream/nike/mercurial_photobooth/photo-generating/bg_remover/main.py", line 68, in generate_image
  14.     blur_mask = crf_background_substraction(img, model)
  15.   File "/Users/dd/projects/gocream/nike/mercurial_photobooth/photo-generating/bg_remover/background_substraction.py", line 56, in crf_background_substraction
  16.     probs = model.predict(img_data, verbose=True)[0, :, :, :]
  17.   File "/Users/dd/projects/gocream/nike/mercurial_photobooth/local_backend/lib/python3.6/site-packages/Keras-2.1.4-py3.6.egg/keras/engine/training.py", line 1839, in predict
  18.     self._make_predict_function()
  19.   File "/Users/dd/projects/gocream/nike/mercurial_photobooth/local_backend/lib/python3.6/site-packages/Keras-2.1.4-py3.6.egg/keras/engine/training.py", line 1029, in _make_predict_function
  20.     **kwargs)
  21.   File "/Users/dd/projects/gocream/nike/mercurial_photobooth/local_backend/lib/python3.6/site-packages/Keras-2.1.4-py3.6.egg/keras/backend/tensorflow_backend.py", line 2499, in function
  22.     return Function(inputs, outputs, updates=updates, **kwargs)
  23.   File "/Users/dd/projects/gocream/nike/mercurial_photobooth/local_backend/lib/python3.6/site-packages/Keras-2.1.4-py3.6.egg/keras/backend/tensorflow_backend.py", line 2442, in __init__
  24.     with tf.control_dependencies(self.outputs):
  25.   File "/Users/dd/projects/gocream/nike/mercurial_photobooth/local_backend/lib/python3.6/site-packages/tensorflow-1.5.0-py3.6-macosx-10.13-x86_64.egg/tensorflow/python/framework/ops.py", line 4604, in control_dependencies
  26.     return get_default_graph().control_dependencies(control_inputs)
  27.   File "/Users/dd/projects/gocream/nike/mercurial_photobooth/local_backend/lib/python3.6/site-packages/tensorflow-1.5.0-py3.6-macosx-10.13-x86_64.egg/tensorflow/python/framework/ops.py", line 4310, in control_dependencies
  28.     c = self.as_graph_element(c)
  29.   File "/Users/dd/projects/gocream/nike/mercurial_photobooth/local_backend/lib/python3.6/site-packages/tensorflow-1.5.0-py3.6-macosx-10.13-x86_64.egg/tensorflow/python/framework/ops.py", line 3323, in as_graph_element
  30.     return self._as_graph_element_locked(obj, allow_tensor, allow_operation)
  31.   File "/Users/dd/projects/gocream/nike/mercurial_photobooth/local_backend/lib/python3.6/site-packages/tensorflow-1.5.0-py3.6-macosx-10.13-x86_64.egg/tensorflow/python/framework/ops.py", line 3402, in _as_graph_element_locked
  32.     raise ValueError("Tensor %s is not an element of this graph." % obj)
  33. ValueError: Tensor Tensor("crfrnn/transpose_22:0", shape=(1, 500, 500, 21), dtype=float32) is not an element of this graph.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement