Skip to content

MaskRCNN: ValueError: Does not understand character buffer dtype format string ('?') #1355

@tgkul

Description

@tgkul

I was trying to train MaskRCNN on my own dataset but I get this error every time during evaluation. Even if I try to train the model on PennFudanDataset from this link, the same error occurs. Though the code works on provided Colab

My docker container has Python 3.5, Pytorch 1.2.0, Torchvision 0.4.0

@fmassa
Can you help me figure out what could be the issue?

Traceback (most recent call last):
File "train.py", line 76, in
main()
File "train.py", line 69, in main
evaluate(model, val_data_loader, device=device)
File "/root/miniconda3/envs/pytorch/lib/python3.5/site-packages/torch/autograd/grad_mode.py", line 49, in decorate_no_grad
return func(*args, **kwargs)
File "../../lib/engine.py", line 95, in evaluate
coco_evaluator.update(res)
File "../../lib/coco_eval.py", line 38, in update
results = self.prepare(predictions, iou_type)
File "../../lib/coco_eval.py", line 66, in prepare
return self.prepare_for_coco_segmentation(predictions)
File "../../lib/coco_eval.py", line 113, in prepare_for_coco_segmentation
for mask in masks
File "../../lib/coco_eval.py", line 113, in
for mask in masks
File "/root/miniconda3/envs/pytorch/lib/python3.5/site-packages/pycocotools/mask.py", line 82, in encode
return _mask.encode(bimask)
File "pycocotools/_mask.pyx", line 137, in pycocotools._mask.encode
ValueError: Does not understand character buffer dtype format string ('?')

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions