Code Monkey home page Code Monkey logo

Comments (7)

lvpengyuan avatar lvpengyuan commented on July 18, 2024 2

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.

xiequnyi avatar xiequnyi commented on July 18, 2024

@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.

xiequnyi avatar xiequnyi commented on July 18, 2024

@Suyuanhang cuda 7.5 and cudnn 5 (and later) work!

from crnn.

Suyuanhang avatar Suyuanhang commented on July 18, 2024

@lvpengyuan Thank you for the comments. I can get the code compiled under your system specifications.
BTW, I used gcc 4.8.

from crnn.

selcouthlyBlue avatar selcouthlyBlue commented on July 18, 2024

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.

Suyuanhang avatar Suyuanhang commented on July 18, 2024

@selcouthlyBlue
Use Ubuntu 14.04 instead of 16.04, I used cuda 7.5, not sure if cuda 8.0 works.

from crnn.

HidayatRahman avatar HidayatRahman commented on July 18, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.