Closed Note-Liu closed 3 years ago
@Note-Liu .Hi,Do you solve this question?I also meet this.
Hi,Do you solve this question?I also meet this. I thnik the problem is causd by the version difference of mmcv. @Note-Liu
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
版本问题,换成mmcv==0.2.10即可
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?