Advertisement
Guest User

Untitled

a guest
Apr 19th, 2019
96
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 8.90 KB | None | 0 0
  1. Loading models....
  2. 50%|████████████████████▌ | 8/16 [00:24<00:24, 3.12s/it][2019-04-19 09:50:15,523] ERROR in app: Exception on /api/detect_entities [POST]
  3. Traceback (most recent call last):
  4. File "/home/wilq/.local/lib/python3.5/site-packages/tensorflow/python/client/session.py", line 1334, in _do_call
  5. return fn(*args)
  6. File "/home/wilq/.local/lib/python3.5/site-packages/tensorflow/python/client/session.py", line 1319, in _run_fn
  7. options, feed_dict, fetch_list, target_list, run_metadata)
  8. File "/home/wilq/.local/lib/python3.5/site-packages/tensorflow/python/client/session.py", line 1407, in _call_tf_sessionrun
  9. run_metadata)
  10. tensorflow.python.framework.errors_impl.ResourceExhaustedError: OOM when allocating tensor with shape[4096,4096] and type float on /job:localhost/replica:0/task:0/device:CPU:0 by allocator cpu
  11. [[{{node save/RestoreV2}}]]
  12. Hint: If you want to see a list of allocated tensors when OOM happens, add report_tensor_allocations_upon_oom to RunOptions for current allocation info.
  13.  
  14.  
  15. During handling of the above exception, another exception occurred:
  16.  
  17. Traceback (most recent call last):
  18. File "/home/wilq/.local/lib/python3.5/site-packages/flask/app.py", line 2292, in wsgi_app
  19. response = self.full_dispatch_request()
  20. File "/home/wilq/.local/lib/python3.5/site-packages/flask/app.py", line 1815, in full_dispatch_request
  21. rv = self.handle_user_exception(e)
  22. File "/home/wilq/.local/lib/python3.5/site-packages/flask_cors/extension.py", line 161, in wrapped_function
  23. return cors_after_request(app.make_response(f(*args, **kwargs)))
  24. File "/home/wilq/.local/lib/python3.5/site-packages/flask/app.py", line 1718, in handle_user_exception
  25. reraise(exc_type, exc_value, tb)
  26. File "/home/wilq/.local/lib/python3.5/site-packages/flask/_compat.py", line 35, in reraise
  27. raise value
  28. File "/home/wilq/.local/lib/python3.5/site-packages/flask/app.py", line 1813, in full_dispatch_request
  29. rv = self.dispatch_request()
  30. File "/home/wilq/.local/lib/python3.5/site-packages/flask/app.py", line 1799, in dispatch_request
  31. return self.view_functions[rule.endpoint](**req.view_args)
  32. File "/opt/pocs/overwritedev/py/app.py", line 37, in detect_entities
  33. feature_models = load_all_models(models_path, weights_path, features_list, batch_size)
  34. File "/opt/pocs/overwritedev/py/tools.py", line 68, in load_all_models
  35. saver.restore(sess, model_data)
  36. File "/home/wilq/.local/lib/python3.5/site-packages/tensorflow/python/training/saver.py", line 1276, in restore
  37. {self.saver_def.filename_tensor_name: save_path})
  38. File "/home/wilq/.local/lib/python3.5/site-packages/tensorflow/python/client/session.py", line 929, in run
  39. run_metadata_ptr)
  40. File "/home/wilq/.local/lib/python3.5/site-packages/tensorflow/python/client/session.py", line 1152, in _run
  41. feed_dict_tensor, options, run_metadata)
  42. File "/home/wilq/.local/lib/python3.5/site-packages/tensorflow/python/client/session.py", line 1328, in _do_run
  43. run_metadata)
  44. File "/home/wilq/.local/lib/python3.5/site-packages/tensorflow/python/client/session.py", line 1348, in _do_call
  45. raise type(e)(node_def, op, message)
  46. tensorflow.python.framework.errors_impl.ResourceExhaustedError: OOM when allocating tensor with shape[4096,4096] and type float on /job:localhost/replica:0/task:0/device:CPU:0 by allocator cpu
  47. [[node save/RestoreV2 (defined at /opt/pocs/overwritedev/py/tools.py:66) ]]
  48. Hint: If you want to see a list of allocated tensors when OOM happens, add report_tensor_allocations_upon_oom to RunOptions for current allocation info.
  49.  
  50.  
  51. Caused by op 'save/RestoreV2', defined at:
  52. File "/usr/local/bin/gunicorn", line 11, in <module>
  53. sys.exit(run())
  54. File "/home/wilq/.local/lib/python3.5/site-packages/gunicorn/app/wsgiapp.py", line 61, in run
  55. WSGIApplication("%(prog)s [OPTIONS] [APP_MODULE]").run()
  56. File "/home/wilq/.local/lib/python3.5/site-packages/gunicorn/app/base.py", line 223, in run
  57. super(Application, self).run()
  58. File "/home/wilq/.local/lib/python3.5/site-packages/gunicorn/app/base.py", line 72, in run
  59. Arbiter(self).run()
  60. File "/home/wilq/.local/lib/python3.5/site-packages/gunicorn/arbiter.py", line 203, in run
  61. self.manage_workers()
  62. File "/home/wilq/.local/lib/python3.5/site-packages/gunicorn/arbiter.py", line 545, in manage_workers
  63. self.spawn_workers()
  64. File "/home/wilq/.local/lib/python3.5/site-packages/gunicorn/arbiter.py", line 616, in spawn_workers
  65. self.spawn_worker()
  66. File "/home/wilq/.local/lib/python3.5/site-packages/gunicorn/arbiter.py", line 583, in spawn_worker
  67. worker.init_process()
  68. File "/home/wilq/.local/lib/python3.5/site-packages/gunicorn/workers/base.py", line 134, in init_process
  69. self.run()
  70. File "/home/wilq/.local/lib/python3.5/site-packages/gunicorn/workers/sync.py", line 124, in run
  71. self.run_for_one(timeout)
  72. File "/home/wilq/.local/lib/python3.5/site-packages/gunicorn/workers/sync.py", line 68, in run_for_one
  73. self.accept(listener)
  74. File "/home/wilq/.local/lib/python3.5/site-packages/gunicorn/workers/sync.py", line 30, in accept
  75. self.handle(listener, client, addr)
  76. File "/home/wilq/.local/lib/python3.5/site-packages/gunicorn/workers/sync.py", line 135, in handle
  77. self.handle_request(listener, req, client, addr)
  78. File "/home/wilq/.local/lib/python3.5/site-packages/gunicorn/workers/sync.py", line 176, in handle_request
  79. respiter = self.wsgi(environ, resp.start_response)
  80. File "/home/wilq/.local/lib/python3.5/site-packages/flask/app.py", line 2309, in __call__
  81. return self.wsgi_app(environ, start_response)
  82. File "/home/wilq/.local/lib/python3.5/site-packages/flask/app.py", line 2292, in wsgi_app
  83. response = self.full_dispatch_request()
  84. File "/home/wilq/.local/lib/python3.5/site-packages/flask/app.py", line 1813, in full_dispatch_request
  85. rv = self.dispatch_request()
  86. File "/home/wilq/.local/lib/python3.5/site-packages/flask/app.py", line 1799, in dispatch_request
  87. return self.view_functions[rule.endpoint](**req.view_args)
  88. File "/opt/pocs/overwritedev/py/app.py", line 37, in detect_entities
  89. feature_models = load_all_models(models_path, weights_path, features_list, batch_size)
  90. File "/opt/pocs/overwritedev/py/tools.py", line 66, in load_all_models
  91. saver = tf.train.Saver()
  92. File "/home/wilq/.local/lib/python3.5/site-packages/tensorflow/python/training/saver.py", line 832, in __init__
  93. self.build()
  94. File "/home/wilq/.local/lib/python3.5/site-packages/tensorflow/python/training/saver.py", line 844, in build
  95. self._build(self._filename, build_save=True, build_restore=True)
  96. File "/home/wilq/.local/lib/python3.5/site-packages/tensorflow/python/training/saver.py", line 881, in _build
  97. build_save=build_save, build_restore=build_restore)
  98. File "/home/wilq/.local/lib/python3.5/site-packages/tensorflow/python/training/saver.py", line 513, in _build_internal
  99. restore_sequentially, reshape)
  100. File "/home/wilq/.local/lib/python3.5/site-packages/tensorflow/python/training/saver.py", line 332, in _AddRestoreOps
  101. restore_sequentially)
  102. File "/home/wilq/.local/lib/python3.5/site-packages/tensorflow/python/training/saver.py", line 580, in bulk_restore
  103. return io_ops.restore_v2(filename_tensor, names, slices, dtypes)
  104. File "/home/wilq/.local/lib/python3.5/site-packages/tensorflow/python/ops/gen_io_ops.py", line 1572, in restore_v2
  105. name=name)
  106. File "/home/wilq/.local/lib/python3.5/site-packages/tensorflow/python/framework/op_def_library.py", line 788, in _apply_op_helper
  107. op_def=op_def)
  108. File "/home/wilq/.local/lib/python3.5/site-packages/tensorflow/python/util/deprecation.py", line 507, in new_func
  109. return func(*args, **kwargs)
  110. File "/home/wilq/.local/lib/python3.5/site-packages/tensorflow/python/framework/ops.py", line 3300, in create_op
  111. op_def=op_def)
  112. File "/home/wilq/.local/lib/python3.5/site-packages/tensorflow/python/framework/ops.py", line 1801, in __init__
  113. self._traceback = tf_stack.extract_stack()
  114.  
  115. ResourceExhaustedError (see above for traceback): OOM when allocating tensor with shape[4096,4096] and type float on /job:localhost/replica:0/task:0/device:CPU:0 by allocator cpu
  116. [[node save/RestoreV2 (defined at /opt/pocs/overwritedev/py/tools.py:66) ]]
  117. Hint: If you want to see a list of allocated tensors when OOM happens, add report_tensor_allocations_upon_oom to RunOptions for current allocation info.
  118.  
  119.  
  120. [2019-04-19 09:50:25 +0000] [29788] [INFO] Handling signal: winch
  121. [2019-04-19 09:50:25 +0000] [29788] [INFO] Handling signal: winch
  122. [2019-04-19 09:50:26 +0000] [29788] [INFO] Handling signal: winch
  123. [2019-04-19 09:50:26 +0000] [29788] [INFO] Handling signal: winch
  124. [2019-04-19 09:50:26 +0000] [29788] [INFO] Handling signal: winch
  125. [2019-04-19 09:50:26 +0000] [29788] [INFO] Handling signal: winch
  126. [2019-04-19 09:50:26 +0000] [29788] [INFO] Handling signal: winch
  127. [2019-04-19 09:50:26 +0000] [29788] [INFO] Handling signal: winch
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement