Closed cnr0724 closed 3 years ago
As the log says:
There might be issues in your dataset generation process. A valid polygon should be a list[float] with even length >= 6.
It already is. One of the polygon is like {"id": 1, "image_id": 0, "category_id": 4, "segmentation": [[948.0, 592.0], [1010.0, 592.0], [948.0, 684.0], [1010.0, 684.0]], "area": 5704.0, "bbox": [948.0, 592.0, 62.0, 92.0], "iscrowd": 0}.
"segmentation" in the above comment is not in the format documented at https://detectron2.readthedocs.io/en/latest/tutorials/datasets.html.
[[948.0, 592.0, 1010.0, 592.0, 948.0, 684.0, 1010.0, 684.0]]
looks correct.
Thank you!
Instructions To Reproduce the π Bug:
Full runnable code or full changes you made: Nothing. I just tried to run code with custom datasets
What exact command you run:
Full logs or other relevant observations:
sys.platform linux Python 3.8.3 (default, May 19 2020, 18:47:26) [GCC 7.3.0] numpy 1.19.2 detectron2 0.4 @/root/detectron2/detectron2 Compiler GCC 7.5 CUDA compiler CUDA 11.0 detectron2 arch flags 8.0 DETECTRON2_ENV_MODULE
PyTorch 1.7.0 @/opt/conda/lib/python3.8/site-packages/torch
PyTorch debug build True
GPU available True
GPU 0 GeForce RTX 3090 (arch=8.6)
CUDA_HOME /usr/local/cuda
Pillow 8.0.0
torchvision 0.8.0 @/opt/conda/lib/python3.8/site-packages/torchvision
torchvision arch flags 3.5, 5.0, 6.0, 7.0, 7.5, 8.0
fvcore 0.1.5.post20210402
iopath 0.1.7
cv2 4.5.1
PyTorch built with: