Skip to content

Instantly share code, notes, and snippets.

View hmen97's full-sized avatar
👾

Herman Menezes hmen97

👾
View GitHub Profile
When you get permission denied while closing a docker container
Check status: sudo aa-status
Shutdown and prevent it from restarting: sudo systemctl disable apparmor.service --now
Unload AppArmor profiles: sudo service apparmor teardown
Check status: sudo aa-status
You should now be able to stop/kill containers.
Postman
systemctl status apparmor
0.6.0
./bin/lmplz --text ../../tts/vocabulary.txt --arpa words.arpa --o 3 --discount_fallback
./bin/build_binary -T -s -v words.arpa lm.binary
python3 generate_package.py --alphabet ../alphabet.txt --lm lm.binary --vocab librispeech-vocab-500k.txt --default_alpha 0.75 --default_beta 1.85 --package kenlm.scorer
python3 lm_optimizer.py --test_files bin/librispeech/librivox-test-clean.csv --checkpoint_dir deepspeech-0.7.0-checkpoint --n_hidden 2048
0.9.0
~/DeepSpeech/tensorflow/bazel-bin/native_client/generate_scorer_package --alphabet ~/DeepSpeech/data/alphabet.txt --lm ~/path/to/binaries/lm.binary --vocab ~/path/to/sentences.txt --default_alpha 0.75 --default_beta 1.85 --package ~/path/to/binaries/kenlm.scorer
python3.6 ~/DeepSpeech/data/lm/generate_lm.py --input_txt /path/to/sentences.txt --output_dir ~/destination/path/binaries/ --top_k 50000 --kenlm_bins /path/to/kenlm/build/bin/ --arpa_order 5 --max_arpa_memory "85%" --arpa_prune "0|0|1" --binary_a_bits 255 --binary_q_bits 8 --binary_type trie --discou
@hmen97
hmen97 / NvidiaCudasetup.txt
Last active January 11, 2021 10:03
CUDA setup for Nvidia GPUs (Process can also be used depending on your configuration)
Before you check the download, use these links to check the compatibility:
For tensorflow and CUDA compatibility:
https://www.tensorflow.org/install/source#gpu
For CUDA and Nvidia driver compatibility:
https://docs.nvidia.com/deploy/cuda-compatibility/index.html
For cuDNN compatibility:
https://docs.nvidia.com/deeplearning/sdk/cudnn-support-matrix/index.html
https://www.tensorflow.org/install/source#linux
@hmen97
hmen97 / ubuntu_setup.sh
Last active January 23, 2021 23:00
ubuntu_setup.sh
#virtual environment for jupyter notebook
$ python -m venv projectname
$ source projectname/bin/activate
(venv) $ pip install ipykernel
(venv) $ ipython kernel install --user --name=projectname
#install sublime text
wget -qO - https://download.sublimetext.com/sublimehq-pub.gpg | sudo apt-key add -
echo "deb https://download.sublimetext.com/ apt/stable/" | sudo tee /etc/apt/sources.list.d/sublime-text.list
sudo apt-get update

Keybase proof

I hereby claim:

  • I am hmen97 on github.
  • I am hmen97 (https://keybase.io/hmen97) on keybase.
  • I have a public key whose fingerprint is 9D1A 6558 4DB0 C9DB 452B 0661 12BA 4865 2CC3 6282

To claim this, I am signing this object: