Advertisement
Guest User

Untitled

a guest
Mar 13th, 2016
182
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.11 KB | None | 0 0
  1. ~/neural-doodle# python3 doodle.py --style /home/mrclon/doodle_test1/style.png --output /home/mrclon/doodle_test2/new.png --device=cpu --iterations=40
  2. Neural Doodle for semantic style transfer.
  3. - Using device `cpu` for processing the images.
  4. - Loading content semantic map from /home/mrclon/doodle_test2/new_sem.png.
  5. - Loading style image data from /home/mrclon/doodle_test1/style.png.
  6. - Loading style semantic map from /home/mrclon/doodle_test1/style_sem.png.
  7.  
  8. Phase #0: resolution 125x83 scale 0.25
  9. - Style layer sem3_1: 4345 patches in 10,167kb.
  10. - Style layer sem4_1: 988 patches in 4,588kb.
  11.  
  12. 0 error 5.04e+03 style 3_1 7.20e+02 4_1 4.17e+03 quality 3.4%
  13. 10 error 2.03e+03 style 3_1 3.40e+02 4_1 1.59e+03 quality 38.3%
  14. 20 error 1.83e+03 style 3_1 2.97e+02 4_1 1.46e+03 quality 59.7%
  15. 30 error 1.75e+03 style 3_1 2.79e+02 4_1 1.42e+03 quality 71.6%
  16.  
  17. Phase #1: resolution 250x166 scale 0.5
  18. - Style layer sem3_1: 17920 patches in 41,932kb.
  19. - Style layer sem4_1: 4345 patches in 20,178kb.
  20.  
  21. 40 error 2.40e+03 style 3_1 4.75e+02 4_1 1.92e+03 quality 4.5%
  22. 50 error 1.03e+03 style 3_1 1.98e+02 4_1 8.33e+02 quality 41.9%
  23. 60 error 9.51e+02 style 3_1 1.79e+02 4_1 7.71e+02 quality 64.2%
  24. 70 error 9.23e+02 style 3_1 1.71e+02 4_1 7.51e+02 quality 77.3%
  25.  
  26. Phase #2: resolution 500x333 scale 1.0
  27. Traceback (most recent call last):
  28. File "/usr/local/lib/python3.4/dist-packages/theano/compile/function_module.py", line 859, in __call__
  29. outputs = self.fn()
  30. RuntimeError: CorrMM failed to allocate working memory of 576 x 1185600
  31.  
  32.  
  33. During handling of the above exception, another exception occurred:
  34.  
  35. Traceback (most recent call last):
  36. File "doodle.py", line 503, in <module>
  37. generator.run()
  38. File "doodle.py", line 457, in run
  39. self.prepare_style(scale)
  40. File "doodle.py", line 291, in prepare_style
  41. result = extractor(self.style_image, self.style_map)
  42. File "/usr/local/lib/python3.4/dist-packages/theano/compile/function_module.py", line 871, in __call__
  43. storage_map=getattr(self.fn, 'storage_map', None))
  44. File "/usr/local/lib/python3.4/dist-packages/theano/gof/link.py", line 314, in raise_with_op
  45. reraise(exc_type, exc_value, exc_trace)
  46. File "/usr/local/lib/python3.4/dist-packages/six.py", line 685, in reraise
  47. raise value.with_traceback(tb)
  48. File "/usr/local/lib/python3.4/dist-packages/theano/compile/function_module.py", line 859, in __call__
  49. outputs = self.fn()
  50. RuntimeError: CorrMM failed to allocate working memory of 576 x 1185600
  51.  
  52. Apply node that caused the error: CorrMM{(1, 1), (1, 1)}(Elemwise{Composite{(i0 * (Abs((i1 + i2)) + i1 + i2))}}[(0, 1)].0, Subtensor{::, ::, ::int64, ::int64}.0)
  53. Toposort index: 30
  54. Inputs types: [TensorType(float32, 4D), TensorType(float32, 4D)]
  55. Inputs shapes: [(1, 64, 912, 1300), (64, 64, 3, 3)]
  56. Inputs strides: [(303513600, 4742400, 5200, 4), (2304, 36, -12, -4)]
  57. Inputs values: ['not shown', 'not shown']
  58. Outputs clients: [[Elemwise{Composite{(i0 * (Abs((i1 + i2)) + i1 + i2))}}[(0, 1)](TensorConstant{(1, 1, 1, 1) of 0.5}, CorrMM{(1, 1), (1, 1)}.0, InplaceDimShuffle{x,0,x,x}.0)]]
  59.  
  60. Backtrace when the node is created(use Theano flag traceback.limit=N to make it longer):
  61. File "doodle.py", line 503, in <module>
  62. generator.run()
  63. File "doodle.py", line 455, in run
  64. self.model.setup(layers=['sem'+l for l in self.style_layers] + ['conv'+l for l in self.content_layers])
  65. File "doodle.py", line 163, in setup
  66. outputs = lasagne.layers.get_output([self.network[l] for l in layers], self.tensor_inputs)
  67. File "/usr/local/lib/python3.4/dist-packages/lasagne/layers/helper.py", line 191, in get_output
  68. all_outputs[layer] = layer.get_output_for(layer_inputs, **kwargs)
  69. File "/usr/local/lib/python3.4/dist-packages/lasagne/layers/conv.py", line 257, in get_output_for
  70. conved = self.convolve(input, **kwargs)
  71. File "/usr/local/lib/python3.4/dist-packages/lasagne/layers/conv.py", line 535, in convolve
  72. filter_flip=self.flip_filters)
  73.  
  74. HINT: Use the Theano flag 'exception_verbosity=high' for a debugprint and storage map footprint of this apply node.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement