Comments (7)
@rremani have you solved this problem?
from crnn.
No , I am stuck at that very point.
from crnn.
In a detailed way,
mkdir: cannot create directory ‘build’: File exists
CMake Error: The following variables are used in this project, but they are set to NOTFOUND.
Please set them or make sure they are set and tested correctly in the CMake files:
THPP_LIBRARY
linked by target "crnn" in directory /home/ce/Documents/crnn/src/cpp
-- Configuring incomplete, errors occurred!
See also "/home/ce/Documents/crnn/src/cpp/build/CMakeFiles/CMakeOutput.log".
make: *** No targets specified and no makefile found. Stop.
cp: cannot stat ‘*.so’: No such file or directory
First I installed torch7 from the site then installed fblualib from the commits given in the issue #1 that you posted.
My torch is installed in Home directory (/home/ce/torch) and fblualib(/tmp/fblualib-build.YTz6tN)in temp pasting both the paths, I feel I need to change the Cmakellists.txt of crnn.
CMAKE_MINIMUM_REQUIRED(VERSION 2.8.7 FATAL_ERROR)
PROJECT(crnn)
FIND_PACKAGE(OpenMP)
SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11 ${OpenMP_CXX_FLAGS} -Wall")
Change this line if your Torch7 is installed elsewhere
SET(TORCH_ROOT "$ENV{HOME}/torch/install")
SET(SEARCH_PATHS
"/usr/local/lib"
"${TORCH_ROOT}/lib")
dependencies
FIND_LIBRARY(THPP_LIBRARY thpp
PATHS ${SEARCH_PATHS})
FIND_LIBRARY(LUAT_LIBRARY luaT
PATHS ${SEARCH_PATHS})
FIND_LIBRARY(TH_LIBRARY TH
PATHS ${SEARCH_PATHS})
FIND_LIBRARY(THC_LIBRARY THC
PATHS ${SEARCH_PATHS})
SET(EXT_LIBRARIES ${THPP_LIBRARY} ${LUAT_LIBRARY} ${TH_LIBRARY} ${THC_LIBRARY})
SET(EXT_INCLUDE_DIRS "${TORCH_ROOT}/include" "${TORCH_ROOT}/include/TH")
INCLUDE_DIRECTORIES(${EXT_INCLUDE_DIRS})
ADD_LIBRARY(crnn SHARED init.cpp ctc.cpp)
TARGET_LINK_LIBRARIES(crnn ${EXT_LIBRARIES})
Do I need to change the path for Torch and where it is searching the libraries for the below lines.
SET(TORCH_ROOT "$ENV{HOME}/torch/install")
SET(SEARCH_PATHS
"/usr/local/lib"
"${TORCH_ROOT}/lib")
Thanks
from crnn.
I have met some thing similar, like:
CMake Error: The following variables are used in this project, but they are set to NOTFOUND.
Please set them or make sure they are set and tested correctly in the CMake files:
LUAT_LIBRARY
linked by target "crnn" in directory /home/CRNN/crnn/src/cpp
THC_LIBRARY
linked by target "crnn" in directory /home/CRNN/crnn/src/cpp
TH_LIBRARY
linked by target "crnn" in directory /home/CRNN/crnn/src/cpp
Tried locating those library manually. I found that my THPP_LIB is actually in somewhere else rather than ../torchroot/lib,then I changed those search path from
SET(SEARCH_PATHS "${TORCH_ROOT}/lib")
FIND_LIBRARY(THPP_LIBRARY thpp
PATHS ${SEARCH_PATHS})
FIND_LIBRARY(LUAT_LIBRARY luaT
PATHS ${SEARCH_PATHS})
FIND_LIBRARY(TH_LIBRARY TH
PATHS ${SEARCH_PATHS})
FIND_LIBRARY(THC_LIBRARY THC
PATHS ${SEARCH_PATHS})
to
SET(SEARCH_PATHS "${TORCH_ROOT}/lib")
FIND_LIBRARY(THPP_LIBRARY thpp
PATHS "usr/local/lib")
FIND_LIBRARY(LUAT_LIBRARY luaT
PATHS ${SEARCH_PATHS})
FIND_LIBRARY(TH_LIBRARY TH
PATHS ${SEARCH_PATHS})
FIND_LIBRARY(THC_LIBRARY THC
PATHS ${SEARCH_PATHS})
And it all works !
P.S. I ran those in this docker image bethgelab/jupyter-torch.
Wish it helps~
from crnn.
Thanks @LavieC Lav , I finally was able to run the demo. The major problem was with the successful installation of fblualib which really irritated me. Now, I have created a docker file built on the docker file you provided me docker pull rremani/cuda_crnn_torch .
Thanks again!
from crnn.
@rremani can u help me install thpp ? I'm running ubuntu 16.04
from crnn.
@qnkhuat I can try to help you but it takes lot of time to figure out what the error is actually about. I would suggest you to use docker image rremani/cuda_crnn_torch which has everything installed.
Happy Learning!
from crnn.
Related Issues (20)
- compile fbthrift in ubuntu 16.04
- Could you give me some suggestions for training dataset? HOT 1
- About BK-tree you mentioned in the paper HOT 2
- The recognition results are reversed
- 我是cpu环境咋办
- create_dataset occur something wrong
- index-pack failed
- how to generate rgb lmdb by your tools
- Estimating receptive field to feature sequence vector mapping
- lmdb.Error:../data: Function not implemented
- Nan will appear with GPU training, but not with CPU
- lmdb.Error HOT 4
- how to run this command in google colab th main_train.lua ../models/foo_model/
- Update README as some links is invalid
- Data Requirement
- which dataset I can use for crnn training ? HOT 2
- Outdated docker
- How to convert Synth900k to lmdb? HOT 1
- manifest unknown -> manifest for kaixhin/cuda-torch:latest not found: manifest unknown: manifest unknown
- Creating lmdb dataset in google colab HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from crnn.