mmfashion icon indicating copy to clipboard operation
mmfashion copied to clipboard

Incompatibility with newest mmcv version

Open hachreak opened this issue 4 years ago • 1 comments

python tools/train_retriever.py --config configs/retriever_consumer_to_shop/roi_retriever_vgg.py

If I try to run training with newest mmcv(-full) version, the script return this error:

Traceback (most recent call last):
  File "tools/train_retriever.py", line 85, in <module>
    main()
  File "tools/train_retriever.py", line 81, in main
    logger=logger)
  File "/home/hachreak/projects/mmfashion/mmfashion/apis/train_retriever.py", line 54, in train_retriever
    _non_dist_train(model, dataset, cfg, validate=validate)
  File "/home/hachreak/projects/mmfashion/mmfashion/apis/train_retriever.py", line 79, in _non_dist_train
    cfg.log_level)
  File "/home/hachreak/projects/mmcv/mmcv/runner/epoch_based_runner.py", line 174, in __init__
    super().__init__(*args, **kwargs)
  File "/home/hachreak/projects/mmcv/mmcv/runner/base_runner.py", line 89, in __init__
    raise TypeError(f'logger must be a logging.Logger object, '
TypeError: logger must be a logging.Logger object, but got <class 'str'>

hachreak avatar Aug 27 '20 09:08 hachreak

I meet the same problem, how did you solve it?

interestingzhuo avatar Feb 25 '21 06:02 interestingzhuo