rhasspy / piper

A fast, local neural text to speech system
https://rhasspy.github.io/piper-samples/
MIT License
4.38k stars 297 forks source link

AttributeError: type object 'Trainer' has no attribute 'add_argparse_args' #436

Open ZYROS-OFFICIEL opened 2 months ago

ZYROS-OFFICIEL commented 2 months ago

` python3 -m piper_train \

--dataset-dir ~/piper/my-training \
--accelerator 'gpu' \
--devices 1 \
--batch-size 32 \
--validation-split 0.0 \
--num-test-examples 0 \
--max_epochs 6000 \

--resume> --resume_from_checkpoint ~/piper/epoch=2164-step=1355540.ckpt \ --checkpoint-epochs 1 \ --precision 32 Traceback (most recent call last): File "/usr/lib/python3.10/runpy.py", line 196, in _run_module_as_main return _run_code(code, main_globals, None, File "/usr/lib/python3.10/runpy.py", line 86, in _run_code exec(code, run_globals) File "/home/anas/piper/src/python/piper_train/main.py", line 147, in main() File "/home/anas/piper/src/python/piper_train/main.py", line 37, in main Trainer.add_argparse_args(parser) AttributeError: type object 'Trainer' has no attribute 'add_argparse_args'`I have this problem and i don't know how to solve it ,i don't have an nvidia gpu though.

eusthace811 commented 2 days ago

Did you find how to fix this?

synesthesiam commented 18 hours ago

I'm guessing PyTorch Lightning broke their API again?

ZYROS-OFFICIEL commented 15 hours ago

Did you find how to fix this?

If i remember right i replaced the accelerator'cpu' instead of gpu beacause it doesn't support amd gpu's