Traceback (most recent call last):


 "/usr/lib/python2.7/runpy.py", line 174, in _run_module_as_main

"__main__", fname, loader, pkg_name)


 "/usr/lib/python2.7/runpy.py", line 72, in _run_code

exec code in run_globals


 "/usr/local/bin/youtube-dl/__main__.py", line 19, in <module>


 "/usr/local/bin/youtube-dl/youtube_dl/__init__.py", line 475, in main


 "/usr/local/bin/youtube-dl/youtube_dl/__init__.py", line 465, in _real_main


 "/usr/local/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 2060, in download


 "/usr/local/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 799, in extract_info


 "/usr/local/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 806, in wrapper


 "/usr/local/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 827, in __extract_info


 "/usr/local/bin/youtube-dl/youtube_dl/extractor/common.py", line 533, in extract


 "/usr/local/bin/youtube-dl/youtube_dl/extractor/common.py", line 437, in initialize


 "/usr/local/bin/youtube-dl/youtube_dl/extractor/youtube.py", line 268, in _real_initialize


 "/usr/local/bin/youtube-dl/youtube_dl/extractor/youtube.py", line 253, in _initialize_consent


 "/usr/local/bin/youtube-dl/youtube_dl/extractor/common.py", line 2902, in _get_cookies


 "/usr/lib/python2.7/Cookie.py", line 583, in __init__

if input: self.load(input)


 "/usr/lib/python2.7/Cookie.py", line 643, in load

for k, v in rawdata.items():
AttributeError: 'unicode' object has no attribute 'items'

Traceback (most recent call last):


 "../mmdetection/tools/train.py", line 97, in <module>

main()


 "../mmdetection/tools/train.py", line 93, in main

logger=logger)


 "/home/lwj/zjp/GHM_Detection/mmdetection/mmdet/apis/train.py", line 61, in train_detector

_non_dist_train(model, dataset, cfg, validate=validate)


 "/home/lwj/zjp/GHM_Detection/mmdetection/mmdet/apis/train.py", line 197, in _non_dist_train

runner.run(data_loaders, cfg.workflow, cfg.total_epochs)


 "/home/lwj/anaconda3/envs/ghm/lib/python3.7/site-packages/mmcv/runner/runner.py", line 358, in run

epoch_runner(data_loaders[i], **kwargs)


 "/home/lwj/anaconda3/envs/ghm/lib/python3.7/site-packages/mmcv/runner/runner.py", line 264, in train

self.model, data_batch, train_mode=True, **kwargs)


 "/home/lwj/zjp/GHM_Detection/mmdetection/mmdet/apis/train.py", line 39, in batch_processor

losses = model(**data)


 "/home/lwj/anaconda3/envs/ghm/lib/python3.7/site-packages/torch/nn/modules/module.py", line 493, in __call__

result = self.forward(*input, **kwargs)


 "/home/lwj/anaconda3/envs/ghm/lib/python3.7/site-packages/torch/nn/parallel/data_parallel.py", line 150, in forward

return self.module(*inputs[0], **kwargs[0])


 "/home/lwj/anaconda3/envs/ghm/lib/python3.7/site-packages/torch/nn/modules/module.py", line 493, in __call__

result = self.forward(*input, **kwargs)


 "/home/lwj/zjp/GHM_Detection/mmdetection/mmdet/models/detectors/base.py", line 84, in forward

return self.forward_train(img, img_meta, **kwargs)


 "/home/lwj/zjp/GHM_Detection/mmdetection/mmdet/models/detectors/single_stage.py", line 55, in forward_train

*loss_inputs, gt_bboxes_ignore=gt_bboxes_ignore)


 "/home/lwj/zjp/GHM_Detection/mmdetection/mmdet/models/anchor_heads/anchor_head.py", line 177, in loss

sampling=self.sampling)


 "/home/lwj/zjp/GHM_Detection/mmdetection/mmdet/core/anchor/anchor_target.py", line 63, in anchor_target

unmap_outputs=unmap_outputs)


 "/home/lwj/zjp/GHM_Detection/mmdetection/mmdet/core/utils/misc.py", line 24, in multi_apply

return tuple(map(list, zip(*map_results)))


 "/home/lwj/zjp/GHM_Detection/mmdetection/mmdet/core/anchor/anchor_target.py", line 116, in anchor_target_single

anchors, gt_bboxes, gt_bboxes_ignore, None, cfg)


 "/home/lwj/zjp/GHM_Detection/mmdetection/mmdet/core/bbox/assign_sampling.py", line 28, in assign_and_sample

bbox_sampler = build_sampler(cfg.sampler)


 "/home/lwj/anaconda3/envs/ghm/lib/python3.7/site-packages/mmcv/utils/config.py", line 27, in __getattr__

raise ex
AttributeError: 'ConfigDict' object has no attribute 'sampler'
