Git Product home page Git Product logo

imgdistort's People

Contributors

jpuigcerver avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

imgdistort's Issues

No distorter passed to the CTCTrainer

I am having trouble to get the model running - somehow the Image Distorter cannot be found....
being a bit lost how to solve this I would be glad to get some ideas.

Thank you a lot!

Matthias


laia-train-ctc --use_distortions true --batch_size 16 --progress_table_output train_htr.dat --early_stop_epochs 50 --learning_rate 0.00027 --log_also_to_stderr info --log_level info --log_file train_htr.log model_htr.t7 data/htr/lang/char/symbs.txt data/htr/tr.lst data/htr/lang/char/tr.txt data/htr/va.lst data/htr/lang/char/va.txt;
[2017-05-20 18:04:59 WARN] .../matthias/torch/install/share/lua/5.1/laia/util/base.lua:39: Optional lua module "laia.ImageDistorter" was not found!
[2017-05-20 18:04:59 WARN] ...install/lib/luarocks/rocks/laia/scm-1/bin/laia-train-ctc:145: Some layers in cuDNN are non-deterministic on the backward pass. If 100% reproducible experiments are required, use --cudnn_force_convert=false.
[2017-05-20 18:04:59 INFO] ...matthias/torch/install/share/lua/5.1/laia/CTCTrainer.lua:84: CTCTrainer uses the weight regularizer:
laia.WeightDecayRegularizer {
weight_l2_decay = 0
weight_l1_decay = 0
}
[2017-05-20 18:04:59 INFO] ...matthias/torch/install/share/lua/5.1/laia/CTCTrainer.lua:74: CTCTrainer uses the adversarial regularizer:
laia.AdversarialRegularizer {
adversarial_weight = 0
adversarial_epsilon = 0.0019607843137255
}
[2017-05-20 18:04:59 FATAL] ...matthias/torch/install/share/lua/5.1/laia/CTCTrainer.lua:176: No distorter passed to the CTCTrainer, but --use_distortions=true

stack traceback:
...matthias/torch/install/share/lua/5.1/laia/CTCTrainer.lua:176: in function 'start'
...install/lib/luarocks/rocks/laia/scm-1/bin/laia-train-ctc:184: in main chunk
[C]: at 0x561d27710470

Error on the installation: CMake Error at affine_generated_affine.cu.o.cmake:203

Hi, I'm trying to install imgdistort and after running cmake and build, installation starts but I get the following error:

[ 16%] Building NVCC (Device) object CMakeFiles/affine.dir/affine_generated_affine.cu.o
nvcc warning : The 'compute_20', 'sm_20', and 'sm_21' architectures are deprecated, and may be removed in a future release (Use -Wno-deprecated-gpu-targets to suppress warning).
/home/mcarbonell/Documents/imgdistort/affine.cu:3:26: fatal error: glog/logging.h: No such file or directory
compilation terminated.
CMake Error at affine_generated_affine.cu.o.cmake:203 (message):
  Error generating
  /home/mcarbonell/Documents/imgdistort/build/CMakeFiles/affine.dir//./affine_generated_affine.cu.o


CMakeFiles/affine.dir/build.make:63: recipe for target 'CMakeFiles/affine.dir/affine_generated_affine.cu.o' failed
make[2]: *** [CMakeFiles/affine.dir/affine_generated_affine.cu.o] Error 1
CMakeFiles/Makefile2:67: recipe for target 'CMakeFiles/affine.dir/all' failed
make[1]: *** [CMakeFiles/affine.dir/all] Error 2
Makefile:138: recipe for target 'all' failed
make: *** [all] Error 2

Do you know what can be the problem?
Cheers

build error

Error when building imgdistort. Here's the log.
Seems to throw an undefined reference error in morphology_test
undefined reference to - testing::Message::GetStringabi:cxx11 const
Would appreciate any help.

`luarocks install torch/imgdistort-scm-1.rockspec
Using torch/imgdistort-scm-1.rockspec... switching to 'build' mode
Cloning into 'imgdistort'...
remote: Enumerating objects: 26, done.
remote: Counting objects: 100% (26/26), done.
remote: Compressing objects: 100% (23/23), done.
remote: Total 26 (delta 3), reused 12 (delta 3), pack-reused 0
Receiving objects: 100% (26/26), 15.34 KiB | 0 bytes/s, done.
Resolving deltas: 100% (3/3), done.
Checking connectivity... done.
-- The CXX compiler identification is GNU 5.4.0
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Looking for C++ include pthread.h
-- Looking for C++ include pthread.h - found
-- Looking for pthread_create
-- Looking for pthread_create - not found
-- Looking for pthread_create in pthreads
-- Looking for pthread_create in pthreads - not found
-- Looking for pthread_create in pthread
-- Looking for pthread_create in pthread - found
-- Found Threads: TRUE
-- Found CUDA: /usr/local/cuda (found version "9.0")
-- Found GLOG: /usr/local/include
-- Found GTest: /usr/local/lib/libgtest.so
-- Found GMock: /usr/local/lib/libgmock.so
-- TORCH_ROOT = /home/ubuntu/torch/install
-- Found TORCH: /home/ubuntu/torch/install
-- Found Torch7 installed in /home/ubuntu/torch/install
-- Building Torch bindings
-- Configuring done
-- Generating done
CMake Warning:
Manually-specified variables were not used by the project:

WITH_LUAROCKS

-- Build files have been written to: /tmp/luarocks_imgdistort-scm-1-7771/imgdistort/build.luarocks
Scanning dependencies of target base_test
[ 8%] Building CXX object CMakeFiles/base_test.dir/base_test.cc.o
[ 16%] Linking CXX static library libbase_test.a
[ 16%] Built target base_test
[ 25%] Building NVCC (Device) object CMakeFiles/morphology.dir/morphology_generated_morphology.cu.o
Scanning dependencies of target morphology
[ 33%] Linking CXX static library libmorphology.a
[ 33%] Built target morphology
Scanning dependencies of target morphology_test
[ 41%] Building CXX object CMakeFiles/morphology_test.dir/morphology_test.cc.o
[ 50%] Linking CXX executable morphology_test
CMakeFiles/morphology_test.dir/morphology_test.cc.o: In function testing::internal::ElementsAreMatcherImpl<std::vector<float, std::allocator<float> > const&>::DescribeNegationTo(std::ostream*) const': morphology_test.cc:(.text._ZNK7testing8internal22ElementsAreMatcherImplIRKSt6vectorIfSaIfEEE18DescribeNegationToEPSo[_ZNK7testing8internal22ElementsAreMatcherImplIRKSt6vectorIfSaIfEEE18DescribeNegationToEPSo]+0x22c): undefined reference to testing::Message::GetStringabi:cxx11 const'
morphology_test.cc:(.text._ZNK7testing8internal22ElementsAreMatcherImplIRKSt6vectorIfSaIfEEE18DescribeNegationToEPSo[_ZNK7testing8internal22ElementsAreMatcherImplIRKSt6vectorIfSaIfEEE18DescribeNegationToEPSo]+0x2a7): undefined reference to testing::Message::GetString[abi:cxx11]() const' CMakeFiles/morphology_test.dir/morphology_test.cc.o: In function testing::internal::ElementsAreMatcherImpl<std::vector<float, std::allocator > const&>::DescribeTo(std::ostream*) const':
morphology_test.cc:(.text._ZNK7testing8internal22ElementsAreMatcherImplIRKSt6vectorIfSaIfEEE10DescribeToEPSo[_ZNK7testing8internal22ElementsAreMatcherImplIRKSt6vectorIfSaIfEEE10DescribeToEPSo]+0x21f): undefined reference to testing::Message::GetString[abi:cxx11]() const' morphology_test.cc:(.text._ZNK7testing8internal22ElementsAreMatcherImplIRKSt6vectorIfSaIfEEE10DescribeToEPSo[_ZNK7testing8internal22ElementsAreMatcherImplIRKSt6vectorIfSaIfEEE10DescribeToEPSo]+0x29a): undefined reference to testing::Message::GetStringabi:cxx11 const'
CMakeFiles/morphology_test.dir/morphology_test.cc.o: In function testing::AssertionResult testing::internal::PredicateFormatterFromMatcher<testing::internal::PointwiseMatcher<testing::FloatNearPointwiseMatcher, std::vector<float, std::allocator<float> > > >::operator()<std::vector<float, std::allocator<float> > >(char const*, std::vector<float, std::allocator<float> > const&) const': morphology_test.cc:(.text._ZNK7testing8internal29PredicateFormatterFromMatcherINS0_16PointwiseMatcherINS_25FloatNearPointwiseMatcherESt6vectorIfSaIfEEEEEclIS6_EENS_15AssertionResultEPKcRKT_[_ZNK7testing8internal29PredicateFormatterFromMatcherINS0_16PointwiseMatcherINS_25FloatNearPointwiseMatcherESt6vectorIfSaIfEEEEEclIS6_EENS_15AssertionResultEPKcRKT_]+0xb2b): undefined reference to testing::Message::GetStringabi:cxx11 const'
CMakeFiles/morphology_test.dir/morphology_test.cc.o:morphology_test.cc:(.text.ZNK7testing8internal29PredicateFormatterFromMatcherINS0_23ElementsAreArrayMatcherIfEEEclISt6vectorIfSaIfEEEENS_15AssertionResultEPKcRKT[ZNK7testing8internal29PredicateFormatterFromMatcherINS0_23ElementsAreArrayMatcherIfEEEclISt6vectorIfSaIfEEEENS_15AssertionResultEPKcRKT]+0x12ae): more undefined references to testing::Message::GetString[abi:cxx11]() const' follow CMakeFiles/morphology_test.dir/morphology_test.cc.o: In function testing::internal::PointwiseMatcher<testing::FloatNearPointwiseMatcher, std::vector<float, std::allocator > >::Impl<std::vector<float, std::allocator > const&>::DescribeTo(std::ostream*) const':
morphology_test.cc:(.text._ZNK7testing8internal16PointwiseMatcherINS_25FloatNearPointwiseMatcherESt6vectorIfSaIfEEE4ImplIRKS5_E10DescribeToEPSo[_ZNK7testing8internal16PointwiseMatcherINS_25FloatNearPointwiseMatcherESt6vectorIfSaIfEEE4ImplIRKS5_E10DescribeToEPSo]+0xda): undefined reference to testing::internal::FormatMatcherDescription(bool, char const*, std::vector<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > > > const&)' CMakeFiles/morphology_test.dir/morphology_test.cc.o: In function testing::internal::ElementsAreMatcherImpl<std::vector<float, std::allocator > const&>::MatchAndExplain(std::vector<float, std::allocator > const&, testing::MatchResultListener*) const':
morphology_test.cc:(.text._ZNK7testing8internal22ElementsAreMatcherImplIRKSt6vectorIfSaIfEEE15MatchAndExplainES6_PNS_19MatchResultListenerE[_ZNK7testing8internal22ElementsAreMatcherImplIRKSt6vectorIfSaIfEEE15MatchAndExplainES6_PNS_19MatchResultListenerE]+0x7a4): undefined reference to testing::Message::GetString[abi:cxx11]() const' morphology_test.cc:(.text._ZNK7testing8internal22ElementsAreMatcherImplIRKSt6vectorIfSaIfEEE15MatchAndExplainES6_PNS_19MatchResultListenerE[_ZNK7testing8internal22ElementsAreMatcherImplIRKSt6vectorIfSaIfEEE15MatchAndExplainES6_PNS_19MatchResultListenerE]+0x847): undefined reference to testing::Message::GetStringabi:cxx11 const'
CMakeFiles/morphology_test.dir/morphology_test.cc.o: In function testing::FloatNearPointwiseMatcher::gmock_Impl<std::tuple<float const&, float const&> >::DescribeNegationTo(std::ostream*) const': morphology_test.cc:(.text._ZNK7testing25FloatNearPointwiseMatcher10gmock_ImplISt5tupleIJRKfS4_EEE18DescribeNegationToEPSo[_ZNK7testing25FloatNearPointwiseMatcher10gmock_ImplISt5tupleIJRKfS4_EEE18DescribeNegationToEPSo]+0x60): undefined reference to testing::internal::FormatMatcherDescription(bool, char const*, std::vector<std::__cxx11::basic_string<char, std::char_traits, std::allocator >, std::allocator<std::__cxx11::basic_string<char, std::char_traits, std::allocator > > > const&)'
CMakeFiles/morphology_test.dir/morphology_test.cc.o: In function testing::FloatNearPointwiseMatcher::gmock_Impl<std::tuple<float const&, float const&> >::DescribeTo(std::ostream*) const': morphology_test.cc:(.text._ZNK7testing25FloatNearPointwiseMatcher10gmock_ImplISt5tupleIJRKfS4_EEE10DescribeToEPSo[_ZNK7testing25FloatNearPointwiseMatcher10gmock_ImplISt5tupleIJRKfS4_EEE10DescribeToEPSo]+0x5d): undefined reference to testing::internal::FormatMatcherDescription(bool, char const*, std::vector<std::__cxx11::basic_string<char, std::char_traits, std::allocator >, std::allocator<std::__cxx11::basic_string<char, std::char_traits, std::allocator > > > const&)'
collect2: error: ld returned 1 exit status
CMakeFiles/morphology_test.dir/build.make:101: recipe for target 'morphology_test' failed
make[2]: *** [morphology_test] Error 1
CMakeFiles/Makefile2:142: recipe for target 'CMakeFiles/morphology_test.dir/all' failed
make[1]: *** [CMakeFiles/morphology_test.dir/all] Error 2
Makefile:138: recipe for target 'all' failed
make: *** [all] Error 2

Error: Build error: Failed building.`

Thanks

Can't install

I am not sure how I am supposed to install this library. I cloned the repository in my home folder and wrote in the terminal

luarocks make torch/imgdistort-scm-1.rockspec

this is the error output I am getting:

-- Could NOT find GLOG (missing:  GLOG_INCLUDE_DIR GLOG_LIBRARY) 
-- Could NOT find GTest (missing:  GTEST_LIBRARY GTEST_INCLUDE_DIR GTEST_MAIN_LIBRARY) 
-- Could NOT find GMock (missing:  GMOCK_LIBRARY GMOCK_INCLUDE_DIR GMOCK_MAIN_LIBRARY) 
-- TORCH_ROOT = /home/dreyer/torch/install
-- Found Torch7 installed in /home/dreyer/torch/install
-- Building Torch bindings
-- Missing GMock or GTest, tests will not be compiled!
-- Configuring done
-- Generating done
-- Build files have been written to: /home/dreyer/Downloads/imgdistort-master/build.luarocks
[ 16%] Building NVCC (Device) object CMakeFiles/affine.dir/affine_generated_affine.cu.o
nvcc warning : The 'compute_20', 'sm_20', and 'sm_21' architectures are deprecated, and may be removed in a future release (Use -Wno-deprecated-gpu-targets to suppress warning).
/home/dreyer/Downloads/imgdistort-master/affine.cu:3:26: fatal error: glog/logging.h: No such file or directory
compilation terminated.
CMake Error at affine_generated_affine.cu.o.cmake:204 (message):
  Error generating
  /home/dreyer/Downloads/imgdistort-master/build.luarocks/CMakeFiles/affine.dir//./affine_generated_affine.cu.o


CMakeFiles/affine.dir/build.make:63: recipe for target 'CMakeFiles/affine.dir/affine_generated_affine.cu.o' failed
make[2]: *** [CMakeFiles/affine.dir/affine_generated_affine.cu.o] Error 1
CMakeFiles/Makefile2:67: recipe for target 'CMakeFiles/affine.dir/all' failed
make[1]: *** [CMakeFiles/affine.dir/all] Error 2
Makefile:138: recipe for target 'all' failed
make: *** [all] Error 2

Error: Build error: Failed building.

Any ideas what I am doing wrong?

Thanks for your time

dependency: imgdistort

Hello all,

I've successfully installed imgdistort but when executing
luarocks install https://raw.githubusercontent.com/jpuigcerver/Laia/master/rocks/laia-scm-1.rockspec

it states:

Using https://raw.githubusercontent.com/jpuigcerver/Laia/master/rocks/laia-scm-1.rockspec... swi
tching to 'build' mode

Missing dependencies for laia:
imgdistort
lbase64
etlua
warp-ctc
lua-term

Error: Could not satisfy dependency: imgdistort

but sudo make install in the build directory of imgdistort states:

[ 33%] Built target affine
[ 66%] Built target morphology
[100%] Built target imgdistort
Install the project...
-- Install configuration: ""
-- Up-to-date: /home/barto/torch/install/lib/lua/5.1/libimgdistort.so
-- Up-to-date: /home/barto/torch/install/share/lua/5.1/imgdistort/init.lua

Anyone know how to fix it?

Regards,

Error on the installation - Undefined symbols for architecture x86_64: "_cutorch_getstate"

Hello all,

I am trying to install the imgdistort and I am receiving the following error:

[ 91%] Linking CXX shared module libimgdistort.so
Undefined symbols for architecture x86_64:
  "_cutorch_getstate", referenced from:
      _affine_NCHW in binding.cc.o
      int dilate_or_erode_NCHW<true>(lua_State*) in binding.cc.o
      int dilate_or_erode_NCHW<false>(lua_State*) in binding.cc.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[2]: *** [torch/libimgdistort.so] Error 1
make[1]: *** [torch/CMakeFiles/imgdistort.dir/all] Error 2
make: *** [all] Error 2

Even though I have the latest cutorch installed on my machine.

Anyone know how to fix it?

Regards,

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.