run_cmd.bat 995 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. @echo off
  2. chcp 65001
  3. set no_proxy="127.0.0.1, 0.0.0.0, localhost"
  4. setlocal enabledelayedexpansion
  5. cd /D "%~dp0"
  6. set PATH="%PATH%";%SystemRoot%\system32
  7. echo "%CD%"| findstr /R /C:"[!#\$%&()\*+,;<=>?@\[\]\^`{|}~\u4E00-\u9FFF ] " >nul && (
  8. echo.
  9. echo There are special characters in the current path, please make the path of fish-speech free of special characters before running. && (
  10. goto end
  11. )
  12. )
  13. set TMP=%CD%\fishenv
  14. set TEMP=%CD%\fishenv
  15. (call conda deactivate && call conda deactivate && call conda deactivate) 2>nul
  16. set CONDA_ROOT_PREFIX=%cd%\fishenv\conda
  17. set INSTALL_ENV_DIR=%cd%\fishenv\env
  18. set PYTHONNOUSERSITE=1
  19. set PYTHONPATH=
  20. set PYTHONHOME=
  21. set "CUDA_PATH=%INSTALL_ENV_DIR%"
  22. set "CUDA_HOME=%CUDA_PATH%"
  23. call "%CONDA_ROOT_PREFIX%\condabin\conda.bat" activate "%INSTALL_ENV_DIR%"
  24. if errorlevel 1 (
  25. echo.
  26. echo Environment activation failed.
  27. goto end
  28. ) else (
  29. echo.
  30. echo Environment activation succeeded.
  31. )
  32. cmd /k "%*"
  33. :end
  34. pause