> For the complete documentation index, see [llms.txt](https://jon-xia.gitbook.io/workspace/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://jon-xia.gitbook.io/workspace/ji-qi-xue-xi-33/gong-cheng/go-ocr/trouble-shooting.md).

# trouble shooting

* no module named cv2 :

  > pip install opencv-python
* No module named 'object\_detection'

  > pip install tensorflow-object-detection-api
* Could not create cudnn handle: CUDNN\_STATUS\_ALLOC\_FAILED

  > GPU显存设置有问题，需要设置为仅在需要时申请显存。
  >
  > import tensorflow as tf
  >
  > config = tf.compat.v1.ConfigProto(gpu\_options=tf.compat.v1.GPUOptions(allow\_growth=True))
  >
  > sess = tf.compat.v1.Session(config=config)
