Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Exception in thread mercurial_processing:
- Traceback (most recent call last):
- 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
- self.run()
- File "/usr/local/Cellar/python3/3.6.4_2/Frameworks/Python.framework/Versions/3.6/lib/python3.6/threading.py", line 864, in run
- self._target(*self._args, **self._kwargs)
- File "/Users/dd/projects/gocream/nike/mercurial_photobooth/local_backend/server/views.py", line 34, in generate_images
- photo_processing.generate_images(filepath)
- File "/Users/dd/projects/gocream/nike/mercurial_photobooth/local_backend/server/utils/photo_processing.py", line 53, in generate_images
- without_bg = remove_bg(upload_image)
- File "/Users/dd/projects/gocream/nike/mercurial_photobooth/local_backend/server/utils/photo_processing.py", line 18, in remove_bg
- return generate_image(image)
- File "/Users/dd/projects/gocream/nike/mercurial_photobooth/photo-generating/bg_remover/main.py", line 68, in generate_image
- blur_mask = crf_background_substraction(img, model)
- File "/Users/dd/projects/gocream/nike/mercurial_photobooth/photo-generating/bg_remover/background_substraction.py", line 56, in crf_background_substraction
- probs = model.predict(img_data, verbose=True)[0, :, :, :]
- 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
- self._make_predict_function()
- 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
- **kwargs)
- 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
- return Function(inputs, outputs, updates=updates, **kwargs)
- 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__
- with tf.control_dependencies(self.outputs):
- 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
- return get_default_graph().control_dependencies(control_inputs)
- 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
- c = self.as_graph_element(c)
- 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
- return self._as_graph_element_locked(obj, allow_tensor, allow_operation)
- 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
- raise ValueError("Tensor %s is not an element of this graph." % obj)
- 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