Comments (7)
I use the one-step installation script to install and compile folly, fbthrift, TH++, and FBLuaLib on my machine. The demo runs well.
curl -sk https://raw.githubusercontent.com/facebook/fblualib/master/install_all.sh | bash
The environment for this program:
Ubuntu 14.04
Torch7
Cuda 7.5
Cudnn 5 (and later)
from crnn.
@Suyuanhang :The correct versions is as follows, and I have try that :
you can take it as a shell file and just run it :
#!/bin/bash
git clone https://github.com/facebook/folly.git
git clone -b v2016.12.12.00 https://github.com/facebook/fbthrift.git
git clone https://github.com/facebook/thpp
git clone https://github.com/facebook/fblualib
cd thpp
git reset --hard ebb4fcbb4a9b3310ac0a36eb37775a45f111448b
cd ..
cd fblualib
git reset --hard bdcf94bb835c41b5d822371fb6f7b75c1d53efbc
cd ..
cd folly
git reset --hard 0fdbb61ecd5679f0cd2bf13f867e9b72212ec371
cd ..
from crnn.
@Suyuanhang cuda 7.5 and cudnn 5 (and later) work!
from crnn.
@lvpengyuan Thank you for the comments. I can get the code compiled under your system specifications.
BTW, I used gcc 4.8.
from crnn.
I got this error in building ctc.cpp
/home/kapitan/Desktop/Jerome/crnn/src/cpp/ctc.cpp: In instantiation of ‘int {anonymous}::forwardBackward(lua_State*) [with T = float; lua_State = lua_State]’:
/home/kapitan/Desktop/Jerome/crnn/src/cpp/ctc.cpp:194:16: required from ‘const luaL_Reg {anonymous}::Registerer<float>::functions_ [3]’
/home/kapitan/Desktop/Jerome/crnn/src/cpp/ctc.cpp:203:24: required from ‘static void {anonymous}::Registerer<T>::registerFunctions(lua_State*) [with T = float; lua_State = lua_State]’
/home/kapitan/Desktop/Jerome/crnn/src/cpp/ctc.cpp:210:24: required from here
/home/kapitan/Desktop/Jerome/crnn/src/cpp/ctc.cpp:22:76: error: conversion from ‘thpp::TensorBase<float, thpp::Storage<float>, thpp::Tensor<float> >::Ptr {aka thpp::TensorPtr<thpp::Tensor<float> >}’ to non-scalar type ‘const thpp::Tensor<float>’ requested
const thpp::Tensor<T> input = fblualib::luaGetTensorChecked<T>(L, 1);
^
/home/kapitan/Desktop/Jerome/crnn/src/cpp/ctc.cpp:23:78: error: conversion from ‘thpp::TensorBase<int, thpp::Storage<int>, thpp::Tensor<int> >::Ptr {aka thpp::TensorPtr<thpp::Tensor<int> >}’ to non-scalar type ‘const thpp::Tensor<int>’ requested
const thpp::Tensor<int> targets = fblualib::luaGetTensorChecked<int>(L, 2);
^
/home/kapitan/Desktop/Jerome/crnn/src/cpp/ctc.cpp:25:76: error: conversion from ‘thpp::TensorBase<float, thpp::Storage<float>, thpp::Tensor<float> >::Ptr {aka thpp::TensorPtr<thpp::Tensor<float> >}’ to non-scalar type ‘thpp::Tensor<float>’ requested
thpp::Tensor<T> gradInput = fblualib::luaGetTensorChecked<T>(L, 4);
^
/home/kapitan/Desktop/Jerome/crnn/src/cpp/ctc.cpp: In instantiation of ‘int {anonymous}::naiveDecoding(lua_State*) [with T = float; lua_State = lua_State]’:
/home/kapitan/Desktop/Jerome/crnn/src/cpp/ctc.cpp:194:16: required from ‘const luaL_Reg {anonymous}::Registerer<float>::functions_ [3]’
/home/kapitan/Desktop/Jerome/crnn/src/cpp/ctc.cpp:203:24: required from ‘static void {anonymous}::Registerer<T>::registerFunctions(lua_State*) [with T = float; lua_State = lua_State]’
/home/kapitan/Desktop/Jerome/crnn/src/cpp/ctc.cpp:210:24: required from here
/home/kapitan/Desktop/Jerome/crnn/src/cpp/ctc.cpp:153:73: error: invalid initialization of reference of type ‘const thpp::Tensor<float>&’ from expression of type ‘thpp::TensorBase<float, thpp::Storage<float>, thpp::Tensor<float> >::Ptr {aka thpp::TensorPtr<thpp::Tensor<float> >}’
const thpp::Tensor<T>& input = fblualib::luaGetTensorChecked<T>(L, 1);
^
/home/kapitan/Desktop/Jerome/crnn/src/cpp/ctc.cpp: In instantiation of ‘int {anonymous}::forwardBackward(lua_State*) [with T = double; lua_State = lua_State]’:
/home/kapitan/Desktop/Jerome/crnn/src/cpp/ctc.cpp:194:16: required from ‘const luaL_Reg {anonymous}::Registerer<double>::functions_ [3]’
/home/kapitan/Desktop/Jerome/crnn/src/cpp/ctc.cpp:203:24: required from ‘static void {anonymous}::Registerer<T>::registerFunctions(lua_State*) [with T = double; lua_State = lua_State]’
/home/kapitan/Desktop/Jerome/crnn/src/cpp/ctc.cpp:211:25: required from here
/home/kapitan/Desktop/Jerome/crnn/src/cpp/ctc.cpp:22:76: error: conversion from ‘thpp::TensorBase<double, thpp::Storage<double>, thpp::Tensor<double> >::Ptr {aka thpp::TensorPtr<thpp::Tensor<double> >}’ to non-scalar type ‘const thpp::Tensor<double>’ requested
const thpp::Tensor<T> input = fblualib::luaGetTensorChecked<T>(L, 1);
^
/home/kapitan/Desktop/Jerome/crnn/src/cpp/ctc.cpp:23:78: error: conversion from ‘thpp::TensorBase<int, thpp::Storage<int>, thpp::Tensor<int> >::Ptr {aka thpp::TensorPtr<thpp::Tensor<int> >}’ to non-scalar type ‘const thpp::Tensor<int>’ requested
const thpp::Tensor<int> targets = fblualib::luaGetTensorChecked<int>(L, 2);
^
/home/kapitan/Desktop/Jerome/crnn/src/cpp/ctc.cpp:25:76: error: conversion from ‘thpp::TensorBase<double, thpp::Storage<double>, thpp::Tensor<double> >::Ptr {aka thpp::TensorPtr<thpp::Tensor<double> >}’ to non-scalar type ‘thpp::Tensor<double>’ requested
thpp::Tensor<T> gradInput = fblualib::luaGetTensorChecked<T>(L, 4);
^
/home/kapitan/Desktop/Jerome/crnn/src/cpp/ctc.cpp: In instantiation of ‘int {anonymous}::naiveDecoding(lua_State*) [with T = double; lua_State = lua_State]’:
/home/kapitan/Desktop/Jerome/crnn/src/cpp/ctc.cpp:194:16: required from ‘const luaL_Reg {anonymous}::Registerer<double>::functions_ [3]’
/home/kapitan/Desktop/Jerome/crnn/src/cpp/ctc.cpp:203:24: required from ‘static void {anonymous}::Registerer<T>::registerFunctions(lua_State*) [with T = double; lua_State = lua_State]’
/home/kapitan/Desktop/Jerome/crnn/src/cpp/ctc.cpp:211:25: required from here
/home/kapitan/Desktop/Jerome/crnn/src/cpp/ctc.cpp:153:73: error: invalid initialization of reference of type ‘const thpp::Tensor<double>&’ from expression of type ‘thpp::TensorBase<double, thpp::Storage<double>, thpp::Tensor<double> >::Ptr {aka thpp::TensorPtr<thpp::Tensor<double> >}’
const thpp::Tensor<T>& input = fblualib::luaGetTensorChecked<T>(L, 1);
I used the one line installation script to install the dependcies folly, wangle, fbthrift, thpp, and fblualib:
curl -sk https://raw.githubusercontent.com/facebook/fblualib/master/install_all.sh | bash
The environment for this program:
Ubuntu 16.04
Torch7
Cuda 8
Cudnn 5 (and later)
from crnn.
@selcouthlyBlue
Use Ubuntu 14.04 instead of 16.04, I used cuda 7.5, not sure if cuda 8.0 works.
from crnn.
Using the above one step installation
curl -sk https://raw.githubusercontent.com/facebook/fblualib/master/install_all.sh | bash
i got error in the thpp installation in TensorSerialization.cpp.o
any help ?
i am using ubuntu 14.04 and Cuda 7.5
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.