DeepSpeech icon indicating copy to clipboard operation
DeepSpeech copied to clipboard

I STARTING Optimization

Open dreamibor opened this issue 9 years ago • 11 comments

Hi.

How long does it take for you to train the Deep Speech model on a GPU? I am using a GTX 980 to train the Deep Speech model on LibriSpeech. The program gives a info :"I STARTING Optimization" and there is no more logs even I have trained for two days.

Here is my configuration: "

  • [ ! -f DeepSpeech.py ]
  • [ ! -d ]
  • COMPUTE_DATA_DIR=data/LibriSpeech
  • [ ! -f data/LibriSpeech/librivox-train-clean-100.csv ]
  • [ -d ]
  • python -c from xdg import BaseDirectory as xdg; print(xdg.save_data_path("deepspeech/librivox"))
  • checkpoint_dir=/home/ivg/.local/share/deepspeech/librivox
  • python -u DeepSpeech.py --train_files data/LibriSpeech/librivox-train-clean-100.csv,data/LibriSpeech/librivox-train-clean-360.csv,data/LibriSpeech/librivox-train-other-500.csv --dev_files data/LibriSpeech/librivox-dev-clean.csv,data/LibriSpeech/librivox-dev-other.csv --test_files data/LibriSpeech/librivox-test-clean.csv,data/LibriSpeech/librivox-test-other.csv --train_batch_size 12 --dev_batch_size 12 --test_batch_size 12 --learning_rate 0.0001 --epoch 15 --display_step 5 --validation_step 5 --dropout_rate 0.30 --default_stddev 0.046875 --checkpoint_dir logs/ckpt --export_dir logs/pb "

Thanks,

dreamibor avatar Oct 30 '17 11:10 dreamibor

@dreamibor - how many days did it take for you to complete this training- also can you tell us what was the RAM speed and cpu/gpu?

guruCDL avatar Nov 06 '17 16:11 guruCDL

@guruCDL Hi, I haven't finished the training yet. The model constantly gives me error like "OOM not enough", even after I have reduced the batch size to 3. It seems I don't have enough RAM memory in GPU, but it's unreasonable that the program cannot show any logging files.

The CPU: Intel® Core™ i7-6700 CPU @ 3.40GHz × 8 The GPU: PNY GeForce GTX 980 4GB RAM: 16 GB SK Hynix 2133 MHz

dreamibor avatar Nov 06 '17 17:11 dreamibor

@dreamibor - Thanks for sharing.

guruCDL avatar Nov 06 '17 17:11 guruCDL

@dreamibor Sadly, 4GB of memory is not enough. You should switch to something with at least 8GB.

lissyx avatar Dec 14 '17 22:12 lissyx

Have you finished training yet? I have trained the model with default parameters for 10 days, but the training progress doesn't finish. I use one GPU (Tesla, 12G) to train the model.

helloWaterM avatar Dec 23 '17 03:12 helloWaterM

@jackHuanghello Hi, I stopped the training manually and got a relatively good result (0.208 WER).

dreamibor avatar Dec 28 '17 14:12 dreamibor

@dreamibor how did you stop the training manually and get the output model? I thought the model is only generated after all training?

dpny518 avatar Mar 08 '18 03:03 dpny518

@bambamochu Control + C will do the trick, and then you can extract the model from saved checkpoints.

dreamibor avatar Mar 08 '18 09:03 dreamibor

@dreamibor do you have code example or reference on how to extract the model from saved checkpoint?

dpny518 avatar Mar 08 '18 10:03 dpny518

@bambamochu http://www.cloverio.com/2017/10/27/tensorflow-save-and-restore-models/. You have to download the TensorFlow source code first. The output_node_names for this model is: "output_node".

dreamibor avatar Mar 08 '18 13:03 dreamibor

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

lock[bot] avatar Jan 03 '19 02:01 lock[bot]