rhasspy / piper

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

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

Open ZYROS-OFFICIEL opened 8 months ago

ZYROS-OFFICIEL commented 8 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 6 months ago

Did you find how to fix this?

synesthesiam commented 6 months ago

I'm guessing PyTorch Lightning broke their API again?

ZYROS-OFFICIEL commented 6 months 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

mehdihosseinimoghadam commented 2 months ago

The method removed in 2.0, so the AttributeError is expected.

ZYROS-OFFICIEL commented 2 months ago

I'm sorry ,i'm not sure to understand what do you mean.

yilmazay74 commented 2 weeks ago

So, if pytorch_lightning api has changed and some things are broken, should not that be fixed (replaced by its alternative) by piper? These kind of issues really damage piper's reliability.