IcarusWizard / MAE

PyTorch implementation of Masked Autoencoder
MIT License
233 stars 46 forks source link

TypeError: __init__() got an unexpected keyword argument 'verbose' #1

Closed banana16314 closed 2 years ago

banana16314 commented 2 years ago

你好,我在运行python mae_pretrain.py的时候遇到了这个问题: Files already downloaded and verified Files already downloaded and verified Traceback (most recent call last): File "mae_pretrain.py", line 44, in lr_scheduler = torch.optim.lr_scheduler.LambdaLR(optim, lr_lambda=lr_func, verbose=True) TypeError: init() got an unexpected keyword argument 'verbose' 请问这个应该怎么处理呢?

IcarusWizard commented 2 years ago

可能你的torch版本太老了?我用的是1.9.1版本。

banana16314 commented 2 years ago

谢谢了!我去试试。