flashlight / wav2letter

Facebook AI Research's Automatic Speech Recognition Toolkit
https://github.com/facebookresearch/wav2letter/wiki
Other
6.37k stars 1.01k forks source link

Facing below issue when I am trying to build wav2letter in Docker #856

Open manojmsrit opened 3 years ago

manojmsrit commented 3 years ago

Steps I followed:

1) sudo docker run --rm -itd --ipc=host --name w2l wav2letter/wav2letter:cpu-latest 2) sudo docker exec -it w2l bash 3) export LD_LIBRARY_PATH=/opt/intel/compilers_and_libraries_2018.5.274/linux/mkl/lib/intel64:$LD_LIBRARY_PATH 4) cd /root/flashlight && git pull 5) cd build && cmake .. -DCMAKE_BUILD_TYPE=Release -DFLASHLIGHT_BACKEND=CPU 6) make -j8 && make install 7) export KENLM_ROOT_DIR=/root/kenlm 8) cd /root/wav2letter 9) git pull (Did not work due to authentication issue, i tried adding ssh key but also did not work ) 10) rm -rf build/* 11) cd build && cmake .. -DCMAKE_BUILD_TYPE=Release -DW2L_LIBRARIES_USE_CUDA=OFF -DW2L_BUILD_INFERENCE=ON

Then I encountered below issue. Please help me regarding the same. Thank you.

root@287c7bdde47f:~/wav2letter/build# cmake .. -DCMAKE_BUILD_TYPE=Release -DW2L_LIBRARIES_USE_CUDA=OFF -DW2L_BUILD_INFERENCE=ON
-- ArrayFire found (include: /usr/local/include, library: ArrayFire::afcpu)
-- Found glog    (include: /usr/include, library: /usr/lib/x86_64-linux-gnu/libglog.so)
-- GLOG found
-- Found gflags  (include: /usr/include, library: /usr/lib/x86_64-linux-gnu/libgflags.so)
-- GFLAGS found
-- Found OpenMP_C: -fopenmp  
-- Found OpenMP_CXX: -fopenmp  
-- Found OpenMP: TRUE   
-- OpenMP found
-- flashlight found (include:  lib: flashlight::flashlight )
CMake Error at CMakeLists.txt:103 (message):
  flashlight must be build in distributed mode for wav2letter++

-- Configuring incomplete, errors occurred!
See also "/root/wav2letter/build/CMakeFiles/CMakeOutput.log".
tlikhomanenko commented 3 years ago

Currently we are merging code from w2l into flashlight, so doing git pull on flashlight is taking new version (which has another flags of building). You have two options: 1) do git pull on flashlight and then checkout on tag v0.2 - with it w2l should be built finely 2) switch to flashlight - check there the way we install, and there we have latest docker images too.