Merge pull request #2190 from mozilla/update-prodmodel-0.6.0-alpha.0
Update prod tests to point to re-exported 0.5 model
This commit is contained in:
		
						commit
						67d6b5f8ca
					
				@ -53,13 +53,15 @@ def main():
 | 
			
		||||
    if args.lm and args.trie:
 | 
			
		||||
        ds.enableDecoderWithLM(args.alphabet, args.lm, args.trie, LM_ALPHA, LM_BETA)
 | 
			
		||||
 | 
			
		||||
    with wave.open(args.audio1, 'rb') as fin:
 | 
			
		||||
    fin = wave.open(args.audio1, 'rb')
 | 
			
		||||
    fs1 = fin.getframerate()
 | 
			
		||||
    audio1 = np.frombuffer(fin.readframes(fin.getnframes()), np.int16)
 | 
			
		||||
    fin.close()
 | 
			
		||||
 | 
			
		||||
    with wave.open(args.audio2, 'rb') as fin:
 | 
			
		||||
    fin = wave.open(args.audio2, 'rb')
 | 
			
		||||
    fs2 = fin.getframerate()
 | 
			
		||||
    audio2 = np.frombuffer(fin.readframes(fin.getnframes()), np.int16)
 | 
			
		||||
    fin.close()
 | 
			
		||||
 | 
			
		||||
    stream1 = ds.setupStream(sample_rate=fs1)
 | 
			
		||||
    stream2 = ds.setupStream(sample_rate=fs2)
 | 
			
		||||
 | 
			
		||||
@ -428,12 +428,12 @@ run_prod_concurrent_stream_tests()
 | 
			
		||||
             --lm ${TASKCLUSTER_TMP_DIR}/lm.binary \
 | 
			
		||||
             --trie ${TASKCLUSTER_TMP_DIR}/trie \
 | 
			
		||||
             --audio1 ${TASKCLUSTER_TMP_DIR}/LDC93S1.wav \
 | 
			
		||||
             --audio2 ${TASKCLUSTER_TMP_DIR}/new-home-in-the-stars-16k.wav 2>/dev/null)
 | 
			
		||||
             --audio2 ${TASKCLUSTER_TMP_DIR}/new-home-in-the-stars-16k.wav 2>${TASKCLUSTER_TMP_DIR}/stderr)
 | 
			
		||||
  status=$?
 | 
			
		||||
  set -e
 | 
			
		||||
 | 
			
		||||
  output1=$(echo ${output} | head -n 1)
 | 
			
		||||
  output2=$(echo ${output} | tail -n 1)
 | 
			
		||||
  output1=$(echo "${output}" | head -n 1)
 | 
			
		||||
  output2=$(echo "${output}" | tail -n 1)
 | 
			
		||||
 | 
			
		||||
  assert_correct_ldc93s1_prodmodel "${output1}" "${status}"
 | 
			
		||||
  assert_correct_inference "${output2}" "i must find a new home in the stars" "${status}"
 | 
			
		||||
 | 
			
		||||
@ -38,8 +38,8 @@ then:
 | 
			
		||||
        DEEPSPEECH_ARTIFACTS_ROOT: https://queue.taskcluster.net/v1/task/${linux_arm64_build}/artifacts/public
 | 
			
		||||
        DEEPSPEECH_NODEJS: https://queue.taskcluster.net/v1/task/${node_package_cpu}/artifacts/public
 | 
			
		||||
        DEEPSPEECH_TEST_MODEL: https://queue.taskcluster.net/v1/task/${training}/artifacts/public/output_graph.pb
 | 
			
		||||
        DEEPSPEECH_PROD_MODEL: https://github.com/reuben/DeepSpeech/releases/download/v0.5.0-alpha.11/output_graph.pb
 | 
			
		||||
        DEEPSPEECH_PROD_MODEL_MMAP: https://github.com/reuben/DeepSpeech/releases/download/v0.5.0-alpha.11/output_graph.pbmm
 | 
			
		||||
        DEEPSPEECH_PROD_MODEL: https://github.com/reuben/DeepSpeech/releases/download/v0.6.0-alpha.0/output_graph.pb
 | 
			
		||||
        DEEPSPEECH_PROD_MODEL_MMAP: https://github.com/reuben/DeepSpeech/releases/download/v0.6.0-alpha.0/output_graph.pbmm
 | 
			
		||||
        PIP_DEFAULT_TIMEOUT: "60"
 | 
			
		||||
        PIP_EXTRA_INDEX_URL: "https://lissyx.github.io/deepspeech-python-wheels/"
 | 
			
		||||
        EXTRA_PYTHON_CONFIGURE_OPTS: "--with-fpectl" # Required by Debian Stretch
 | 
			
		||||
 | 
			
		||||
@ -39,8 +39,8 @@ then:
 | 
			
		||||
        DEEPSPEECH_ARTIFACTS_ROOT: https://queue.taskcluster.net/v1/task/${darwin_amd64_build}/artifacts/public
 | 
			
		||||
        DEEPSPEECH_NODEJS: https://queue.taskcluster.net/v1/task/${node_package_cpu}/artifacts/public
 | 
			
		||||
        DEEPSPEECH_TEST_MODEL: https://queue.taskcluster.net/v1/task/${training}/artifacts/public/output_graph.pb
 | 
			
		||||
        DEEPSPEECH_PROD_MODEL: https://github.com/reuben/DeepSpeech/releases/download/v0.5.0-alpha.11/output_graph.pb
 | 
			
		||||
        DEEPSPEECH_PROD_MODEL_MMAP: https://github.com/reuben/DeepSpeech/releases/download/v0.5.0-alpha.11/output_graph.pbmm
 | 
			
		||||
        DEEPSPEECH_PROD_MODEL: https://github.com/reuben/DeepSpeech/releases/download/v0.6.0-alpha.0/output_graph.pb
 | 
			
		||||
        DEEPSPEECH_PROD_MODEL_MMAP: https://github.com/reuben/DeepSpeech/releases/download/v0.6.0-alpha.0/output_graph.pbmm
 | 
			
		||||
        EXPECTED_TENSORFLOW_VERSION: "${build.tensorflow_git_desc}"
 | 
			
		||||
 | 
			
		||||
    command:
 | 
			
		||||
 | 
			
		||||
@ -41,8 +41,8 @@ then:
 | 
			
		||||
        DEEPSPEECH_ARTIFACTS_ROOT: https://queue.taskcluster.net/v1/task/${linux_amd64_build}/artifacts/public
 | 
			
		||||
        DEEPSPEECH_NODEJS: https://queue.taskcluster.net/v1/task/${node_package_cpu}/artifacts/public
 | 
			
		||||
        DEEPSPEECH_TEST_MODEL: https://queue.taskcluster.net/v1/task/${training}/artifacts/public/output_graph.pb
 | 
			
		||||
        DEEPSPEECH_PROD_MODEL: https://github.com/reuben/DeepSpeech/releases/download/v0.5.0-alpha.11/output_graph.pb
 | 
			
		||||
        DEEPSPEECH_PROD_MODEL_MMAP: https://github.com/reuben/DeepSpeech/releases/download/v0.5.0-alpha.11/output_graph.pbmm
 | 
			
		||||
        DEEPSPEECH_PROD_MODEL: https://github.com/reuben/DeepSpeech/releases/download/v0.6.0-alpha.0/output_graph.pb
 | 
			
		||||
        DEEPSPEECH_PROD_MODEL_MMAP: https://github.com/reuben/DeepSpeech/releases/download/v0.6.0-alpha.0/output_graph.pbmm
 | 
			
		||||
        DECODER_ARTIFACTS_ROOT: https://queue.taskcluster.net/v1/task/${linux_amd64_ctc}/artifacts/public
 | 
			
		||||
        PIP_DEFAULT_TIMEOUT: "60"
 | 
			
		||||
        EXPECTED_TENSORFLOW_VERSION: "${build.tensorflow_git_desc}"
 | 
			
		||||
 | 
			
		||||
@ -38,8 +38,8 @@ then:
 | 
			
		||||
        DEEPSPEECH_ARTIFACTS_ROOT: https://queue.taskcluster.net/v1/task/${linux_rpi3_build}/artifacts/public
 | 
			
		||||
        DEEPSPEECH_NODEJS: https://queue.taskcluster.net/v1/task/${node_package_cpu}/artifacts/public
 | 
			
		||||
        DEEPSPEECH_TEST_MODEL: https://queue.taskcluster.net/v1/task/${training}/artifacts/public/output_graph.pb
 | 
			
		||||
        DEEPSPEECH_PROD_MODEL: https://github.com/reuben/DeepSpeech/releases/download/v0.5.0-alpha.11/output_graph.pb
 | 
			
		||||
        DEEPSPEECH_PROD_MODEL_MMAP: https://github.com/reuben/DeepSpeech/releases/download/v0.5.0-alpha.11/output_graph.pbmm
 | 
			
		||||
        DEEPSPEECH_PROD_MODEL: https://github.com/reuben/DeepSpeech/releases/download/v0.6.0-alpha.0/output_graph.pb
 | 
			
		||||
        DEEPSPEECH_PROD_MODEL_MMAP: https://github.com/reuben/DeepSpeech/releases/download/v0.6.0-alpha.0/output_graph.pbmm
 | 
			
		||||
        PIP_DEFAULT_TIMEOUT: "60"
 | 
			
		||||
        PIP_EXTRA_INDEX_URL: "https://www.piwheels.org/simple"
 | 
			
		||||
        EXTRA_PYTHON_CONFIGURE_OPTS: "--with-fpectl" # Required by Raspbian Stretch / PiWheels
 | 
			
		||||
 | 
			
		||||
@ -43,8 +43,8 @@ then:
 | 
			
		||||
        DEEPSPEECH_ARTIFACTS_ROOT: https://queue.taskcluster.net/v1/task/${win_amd64_build}/artifacts/public
 | 
			
		||||
        DEEPSPEECH_NODEJS: https://queue.taskcluster.net/v1/task/${node_package_cpu}/artifacts/public
 | 
			
		||||
        DEEPSPEECH_TEST_MODEL: https://queue.taskcluster.net/v1/task/${training}/artifacts/public/output_graph.pb
 | 
			
		||||
        DEEPSPEECH_PROD_MODEL: https://github.com/reuben/DeepSpeech/releases/download/v0.5.0-alpha.11/output_graph.pb
 | 
			
		||||
        DEEPSPEECH_PROD_MODEL_MMAP: https://github.com/reuben/DeepSpeech/releases/download/v0.5.0-alpha.11/output_graph.pbmm
 | 
			
		||||
        DEEPSPEECH_PROD_MODEL: https://github.com/reuben/DeepSpeech/releases/download/v0.6.0-alpha.0/output_graph.pb
 | 
			
		||||
        DEEPSPEECH_PROD_MODEL_MMAP: https://github.com/reuben/DeepSpeech/releases/download/v0.6.0-alpha.0/output_graph.pbmm
 | 
			
		||||
        EXPECTED_TENSORFLOW_VERSION: "${build.tensorflow_git_desc}"
 | 
			
		||||
        TC_MSYS_VERSION: 'MSYS_NT-6.3'
 | 
			
		||||
        MSYS: 'winsymlinks:nativestrict'
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user