#337·StyleTTS2

RuntimeError: Given groups=1, weight of size [1, 1, 3], expected input[1, 140, 1] to have 1 channels, but got 140 channels instead

Author: Nasa1423Created Jul 10, 2025Updated May 8, 2026

Hello! During the training faze 1, I've faced this error, have anyone got one?

RuntimeError: Given groups=1, weight of size [1, 1, 3], expected input[1, 140, 1] to have 1 channels, but got 140 channels instead Traceback (most recent call last): File "/workspace/style-ru/.venv/bin/accelerate", line 10, in sys.exit(main()) ^^^^^^ File "/workspace/style-ru/.venv/lib/python3.12/site-packages/accelerate/commands/accelerate_cli.py", line 50, in main args.func(args) File "/workspace/style-ru/.venv/lib/python3.12/site-packages/accelerate/commands/launch.py", line 1199, in launch_command simple_launcher(args) File "/workspace/style-ru/.venv/lib/python3.12/site-packages/accelerate/commands/launch.py", line 785, in simple_launcher raise subprocess.CalledProcessError(returncode=process.returncode, cmd=cmd) subprocess.CalledProcessError: Command '['/workspace/style-ru/.venv/bin/python3', 'train_first.py', '--config_path', './Configs/config.yml']' returned non-zero exit status 1.