DAVAR-Lab-OCR
DAVAR-Lab-OCR copied to clipboard
Installation Issue: Can't seem to figure this one out
Processing dependencies for davarocr==0.6.0 Finished processing dependencies for davarocr==0.6.0 10 setup.sh: line 41: cd: too many arguments sed: can't read CMakeLists.txt: No such file or directory sed: can't read CMakeLists.txt: No such file or directory sed: can't read CMakeLists.txt: No such file or directory grep: ./CMakeLists.txt: No such file or directory setup.sh: line 50: [: -ne: unary operator expected sed: can't read CMakeLists.txt: No such file or directory sed: can't read CMakeLists.txt: No such file or directory sed: can't read CMakeLists.txt: No such file or directory sed: can't read CMakeLists.txt: No such file or directory sed: can't read CMakeLists.txt: No such file or directory sed: can't read CMakeLists.txt: No such file or directory sed: can't read CMakeLists.txt: No such file or directory setup.sh: line 69: cd: too many arguments setup.sh: line 74: cd: too many arguments setup.sh: line 77: cmake: command not found make: *** No targets specified and no makefile found. Stop. setup.sh: line 80: cd: too many arguments python: can't open file 'setup.py': [Errno 2] No such file or directory
sorted this error, had to put quotes on the path variable "$ROOT/davarocr/davar_rcg/third_party/warp-ctc-pytorch_bindings/"
This is where I am finally getting stuck at
The File Has Ever Been Installed!
-- cuda found TRUE
-- Building shared library with GPU support
-- Configuring done
-- Generating done
-- Build files have been written to: /media/ananyanayan/New Volume/PycharmProjects/Table Detection/DAVAR-Lab-OCR/davarocr/davar_rcg/third_party/warp-ctc-pytorch_bindings/build
[ 33%] Built target warpctc
[ 66%] Built target test_gpu
[100%] Built target test_cpu
running install
running bdist_egg
running egg_info
writing warpctc_pytorch.egg-info/PKG-INFO
writing dependency_links to warpctc_pytorch.egg-info/dependency_links.txt
writing top-level names to warpctc_pytorch.egg-info/top_level.txt
/home/ananyanayan/.virtualenvs/davar/lib/python3.8/site-packages/torch/utils/cpp_extension.py:411: UserWarning: Attempted to use ninja as the BuildExtension backend but we could not find ninja.. Falling back to using the slow distutils backend.
warnings.warn(msg.format('we could not find ninja.'))
reading manifest file 'warpctc_pytorch.egg-info/SOURCES.txt'
writing manifest file 'warpctc_pytorch.egg-info/SOURCES.txt'
installing library code to build/bdist.linux-x86_64/egg
running install_lib
running build_py
running build_ext
Traceback (most recent call last):
File "setup.py", line 54, in
The installation of warpctc somehow depends on the envrionment. Because this package relies on third-party libraries that are no longer maintained, the support for higher-end platforms is not as good. You may go to FAQ for more information.
If you do not need to train the ctc text recognition model, you can comment out the relevant reference in the code, which does not affect the use of other functions.
I want to infer the LGPMA model offline on my own table dataset.
I tried to solve this error by performing changes shown in FAQ but the error still remains.
Installed /content/drive/MyDrive/davar/DAVAR-Lab-OCR Processing dependencies for davarocr==0.6.0 Finished processing dependencies for davarocr==0.6.0 11 CMake Deprecation Warning at CMakeLists.txt:4 (cmake_minimum_required): Compatibility with CMake < 2.8.12 will be removed from a future version of CMake.
Update the VERSION argument
-- cuda found TRUE -- Building shared library with GPU support -- Configuring done -- Generating done -- Build files have been written to: /content/drive/MyDrive/davar/DAVAR-Lab-OCR/davarocr/davar_rcg/third_party/warp-ctc-pytorch_bindings/build [-11%] Building NVCC (Device) object CMakeFiles/warpctc.dir/src/warpctc_generated_reduce.cu.o [ 0%] Building NVCC (Device) object CMakeFiles/warpctc.dir/src/warpctc_generated_ctc_entrypoint.cu.o /content/drive/MyDrive/davar/DAVAR-Lab-OCR/davarocr/davar_rcg/third_party/warp-ctc-pytorch_bindings/src/ctc_entrypoint.cu(1): error: this declaration has no storage class or type specifier
/content/drive/MyDrive/davar/DAVAR-Lab-OCR/davarocr/davar_rcg/third_party/warp-ctc-pytorch_bindings/src/ctc_entrypoint.cu(1): error: expected a ";"
2 errors detected in the compilation of "/content/drive/MyDrive/davar/DAVAR-Lab-OCR/davarocr/davar_rcg/third_party/warp-ctc-pytorch_bindings/src/ctc_entrypoint.cu". CMake Error at warpctc_generated_ctc_entrypoint.cu.o.cmake:280 (message): Error generating file /content/drive/MyDrive/davar/DAVAR-Lab-OCR/davarocr/davar_rcg/third_party/warp-ctc-pytorch_bindings/build/CMakeFiles/warpctc.dir/src/./warpctc_generated_ctc_entrypoint.cu.o
CMakeFiles/warpctc.dir/build.make:234: recipe for target 'CMakeFiles/warpctc.dir/src/warpctc_generated_ctc_entrypoint.cu.o' failed make[2]: *** [CMakeFiles/warpctc.dir/src/warpctc_generated_ctc_entrypoint.cu.o] Error 1 CMakeFiles/Makefile2:86: recipe for target 'CMakeFiles/warpctc.dir/all' failed make[1]: *** [CMakeFiles/warpctc.dir/all] Error 2 Makefile:135: recipe for target 'all' failed make: *** [all] Error 2 Could not find libwarpctc.so in ../build. Build warp-ctc and set WARP_CTC_PATH to the location of libwarpctc.so (default is '../build')
I tried commenting on the lines shown in the FAQ but nothing works. If there are any other lines that needs to be commented, please let me know. Please Help