mergify[bot] on master
chore(ci): enable torch vision … (compare)
Bycob on master
fix: remove semantic commit che… (compare)
Bycob on master
feat(torch): ocr model training… (compare)
hey @beniz - continuing to experiment with NCNN, I was trying to convert the word_detect_v2
, crop
action, multiword_ocr
chain from Caffe to NCNN and ran into an internal error:
[2021-01-15 22:07:29.135] [ocr-d21cfe6c-2e8c-40c7-94df-b4740bcfb44a-0] [info] number of calls=3
[2021-01-15 22:07:29.135] [ocr-d21cfe6c-2e8c-40c7-94df-b4740bcfb44a-0] [info] [0] / executing predict on service word_detect_v2_ncnn
[2021-01-15 22:07:35.575] [ocr-d21cfe6c-2e8c-40c7-94df-b4740bcfb44a-0] [info] [1] / executing action crop
[2021-01-15 22:07:35.576] [api] [error] 10.10.10.32 "PUT /chain/ocr-d21cfe6c-2e8c-40c7-94df-b4740bcfb44a-0" 500 6441ms
and the returned error was:
{
"status": {
"code": 500,
"dd_code": 1007,
"dd_msg": "in get<T>()",
"msg": "InternalError"
}
}
Any idea what's going on?
dd@afe456179096:/opt/deepdetect/build/main$ dpkg -l|grep libprotobuf
ii libprotobuf10:amd64 3.0.0-9.1ubuntu1 amd64 protocol buffers C++ library
dd@afe456179096:/opt/deepdetect/build/main$ cat /var/lib/dpkg/info/libprotobuf10\:amd64.list
/usr/lib/x86_64-linux-gnu/libprotobuf.so.10.0.0
dd@afe456179096:/opt/deepdetect/build/main$ ldconfig -v 2>/dev/null | grep -v ^$'\t'
/usr/local/lib:
/lib/x86_64-linux-gnu:
/usr/lib/x86_64-linux-gnu:
/lib:
/usr/lib:
deepdetect:
image: jolibrain/deepdetect_cpu
command: bash -c 'LD_LIBRARY_PATH=/opt/deepdetect/build/lib/; export LD_LIBRARY_PATH; ./dede -host 0.0.0.0 & sleep 3; /init.sh; wait;'
container_name: tss_dd
volumes:
# Curl doesnt exist there and we arent root :(
- ./deepdetect/curl:/usr/bin/curl
- ./deepdetect/init.sh:/init.sh
- ./deepdetect/models:/models
- ./deepdetect/models-classifier:/models-classifier
- ./deepdetect/models-tag-classifier:/models-tag-classifier
expose:
- 8080
networks:
- tssnet
restart: always
but weird thing is - this only started happening in the last couple of weeks
init.sh
creates a few services from within the container, but thinking about it, I dont need to run that from inside the container.... could be my weird brain at work
ci-master
is missing? jolibrain/deepdetect@b85d79eci-master
builds between v0.12.0 and now), so I'm guessing something was introduced, or changed in the NCNN master branch upstream?
Yeah so see the updated issue, the missing patch is not enough, there's something else in the way, that will require deeper debug.
As a side note that caffe OCR models cannot be converted to TRT. We failed for a long time and eventually gave up. OCR is scheduled for the torch backend in the coming weeks. This does not fully relate to the current issue, but thought it'd be worth mentionning.