Skip to content

Commit

Permalink
fixed import quantization is none (#541)
Browse files Browse the repository at this point in the history
Signed-off-by: shanguanma <[email protected]>

Signed-off-by: shanguanma <[email protected]>
Co-authored-by: shanguanma <[email protected]>
  • Loading branch information
shanguanma and shanguanma authored Aug 23, 2022
1 parent c010118 commit dbd61a9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions egs/librispeech/ASR/distillation_with_hubert.sh
Original file line number Diff line number Diff line change
Expand Up @@ -81,9 +81,9 @@ if [ $stage -le 0 ] && [ $stop_stage -ge 0 ] && [ ! "$use_extracted_codebook" ==
# or
# pip install multi_quantization

has_quantization=$(python3 -c "import importlib; print(importlib.util.find_spec('quantization') is not None)")
has_quantization=$(python3 -c "import importlib; print(importlib.util.find_spec('multi_quantization') is not None)")
if [ $has_quantization == 'False' ]; then
log "Please install quantization before running following stages"
log "Please install multi_quantization before running following stages"
exit 1
fi

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
import numpy as np
import torch
import torch.multiprocessing as mp
import quantization
import multi_quantization as quantization

from asr_datamodule import LibriSpeechAsrDataModule
from hubert_xlarge import HubertXlargeFineTuned
Expand Down

0 comments on commit dbd61a9

Please sign in to comment.