HUB
Sign inSign up

jindongwang/espnet

By jindongwang

•Updated almost 6 years ago

Everything you need to run Espnet!

Image
1

5.6K

jindongwang/espnet repository overview

Everything you need to run Espnet! Just pull it, and you will find espnet and kaldi and everything you need are right there!

After pulling, you can directly run any command such as

  • ./run.sh --backend pytorch
  • or using the Python script e.g. from espnet.bin.asr_recog import get_parser

Espnet locates at /opt/espnet.

⁠About different tags

All tags are with the same configurations that allows easy usage of Espnet. Their differences are:

  • Tag all9 is for general purpose usage that can be easily uploaded to Microsoft Azure.
  • Tag latest added ssh-server configurations to allow ssh login on the host or even port forwarding through the host machine.

⁠Connect docker using SSH

It could be easy to develop and debug programs within the docker if we can SSH it using third-party softwares such as VS Code. That's what Latest tag is built for.

To allow SSH connection, first, you should pull the docker by calling

docker run --gpus all -v [local folder]:[docker folder] -it jindongwang/espnet

Now you are in the docker. Then, you should type this command:

/usr/sbin/sshd -D &

Then, you can SSH to the docker in the host machine by ssh root@<your container ip>. Container ip can be obtained by ifconfig inside docker.

⁠Connect docker on any machine other than host

If you want to connect to the docker directly using SSH on other computers other than host machines, you should run docker by calling the port forward:

docker run --gpus all -v [local folder]:[docker folder] -it -p 44444:22 <docker_name>

Here, port 44444 can be set at your will. This is just for port forwarding.

Then, you can access your docker in any machine by ssh -p 44444 root@<host machine ip>.

NOTE: To access the docker using SSH-keys, you should put your pub keys (either host or your local computer) into the ~/.ssh/authorized_keys file inside docker.

For instance, we can use VS Code to connect the docker in a remote host by adding the following lines to your VS Code .ssh config file:

Host docker
  HostName <your host machine ip>
  User root
  Port 44444

Tag summary

Content type

Image

Digest

Size

7.7 GB

Last updated

about 6 years ago

docker pull jindongwang/espnet