decisionforce / TPN

[CVPR 2020] Temporal Pyramid Network for Action Recognition
https://decisionforce.github.io/TPN/
Apache License 2.0
394 stars 55 forks source link

optimizer must be a dict of torch.optim.Optimizers, but optimizer["type"] is a <class 'str'> #34

Closed Note-Liu closed 3 years ago

Note-Liu commented 3 years ago

File "tools/train_recognizer.py", line 90, in main() File "tools/train_recognizer.py", line 80, in main train_network( File "/home/TPN-master/mmaction/apis/train.py", line 59, in train_network _non_dist_train(model, dataset, cfg, validate=validate) File "/home/TPN-master/mmaction/apis/train.py", line 182, in _non_dist_train runner = Runner(model, batch_processor, cfg.optimizer, cfg.work_dir, File "/home/site-packages/mmcv/runner/epoch_based_runner.py", line 184, in init super().init(*args, **kwargs) File "/home/site-packages/mmcv/runner/base_runner.py", line 83, in init raise TypeError( TypeError: optimizer must be a dict of torch.optim.Optimizers, but optimizer["type"] is a <class 'str'>

How to solve it?

vehxianfish commented 3 years ago

@Note-Liu .Hi,Do you solve this question?I also meet this.

liu0527aa commented 2 years ago

Hi,Do you solve this question?I also meet this. I thnik the problem is causd by the version difference of mmcv. @Note-Liu

liu0527aa commented 2 years ago

Hi,Do you solve this question?I also meet this. I thnik the problem is causd by the version difference of mmcv. @Note-Liu

the problem can be solved after using pip install mmcv ==0.2.12 in python 3.6.2

TJQdoIt9527 commented 1 year ago

版本问题,换成mmcv==0.2.10即可