Skip to content

About MMDetWandbHook #8455

Open
Open
@chunxt

Description

@chunxt

when i use WandbLoggerHook, it's ok! Replace by MMDetWandbHook, the error likes this.
Traceback (most recent call last):
File "E:/mm250/tools/trains/train.py", line 237, in
main()
File "E:/mm250/tools/trains/train.py", line 226, in main
train_detector(
File "E:\mm250\mmdet\apis\train.py", line 244, in train_detector
runner.run(data_loaders, cfg.workflow)
File "E:\ProgramData\Anaconda3\envs\mmdet\lib\site-packages\mmcv\runner\epoch_based_runner.py", line 111, in run
self.call_hook('before_run')
File "E:\ProgramData\Anaconda3\envs\mmdet\lib\site-packages\mmcv\runner\base_runner.py", line 309, in call_hook
getattr(hook, fn_name)(self)
File "E:\ProgramData\Anaconda3\envs\mmdet\lib\site-packages\mmcv\runner\dist_utils.py", line 135, in wrapper
return func(*args, **kwargs)
File "E:\mm250\mmdet\core\hook\wandblogger_hook.py", line 201, in before_run
self._add_ground_truth(runner)
File "E:\mm250\mmdet\core\hook\wandblogger_hook.py", line 380, in _add_ground_truth
wandb_masks = self._get_wandb_masks(
File "E:\mm250\mmdet\core\hook\wandblogger_hook.py", line 536, in _get_wandb_masks
mask = polygon_to_bitmap(mask, height, width)
File "E:\mm250\mmdet\core\mask\structures.py", line 1069, in polygon_to_bitmap
rles = maskUtils.frPyObjects(polygons, height, width)
File "pycocotools/_mask.pyx", line 293, in pycocotools._mask.frPyObjects
IndexError: list index out of range
wandb: Waiting for W&B process to finish... (failed 1). Press Ctrl-C to abort syncing.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions