Skip to content

Commit

Permalink
Update vocoder_preprocess.py
Browse files Browse the repository at this point in the history
@Tomcattwo changed line 47 per recommendation by @blue-fish in issue CorentinJ#833; allows --cpu argument to be properly recognized
  • Loading branch information
Tomcattwo authored Sep 1, 2021
1 parent ac46da5 commit 34b13c2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion vocoder_preprocess.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,8 @@ class MyFormatter(argparse.ArgumentDefaultsHelpFormatter, argparse.RawDescriptio

if args.cpu:
# Hide GPUs from Pytorch to force CPU processing
os.environ["CUDA_VISIBLE_DEVICES"] = ""
#@tomcattwo changed line 47 per recommendation by @blue-fish in issue #833; allows --cpu argument to be properly recognized
os.environ["CUDA_VISIBLE_DEVICES"] = "-1"

# Verify webrtcvad is available
if not args.no_trim:
Expand Down

0 comments on commit 34b13c2

Please sign in to comment.