You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am using mask_rcnn_swin_small_patch4_window7_mstrain_480-800_adamw_3x_coco.py, with my own training script. Its my custom dataset which I am using. I have not modified anything in the config file but getting error
import json
import mmcv
import os.path as osp
from mmdet.apis import train_detector, set_random_seed
from mmdet.datasets import build_dataset
from mmdet.models import build_detector
import mmdet
import torch
from mmdet.datasets.builder import DATASETS
File "/home/biosense/Documents/Rana/Ronit/SWIN/Swin-Transformer-Object-Detection/mmdet/datasets/utils.py", line 136, in _check_head
assert module.num_classes == len(dataset.CLASSES),
AssertionError: The num_classes (80) in FCNMaskHead of MMDataParallel does not matches the length of CLASSES 2) in CocoDataset
The text was updated successfully, but these errors were encountered:
I am using mask_rcnn_swin_small_patch4_window7_mstrain_480-800_adamw_3x_coco.py, with my own training script. Its my custom dataset which I am using. I have not modified anything in the config file but getting error
import json
import mmcv
import os.path as osp
from mmdet.apis import train_detector, set_random_seed
from mmdet.datasets import build_dataset
from mmdet.models import build_detector
import mmdet
import torch
from mmdet.datasets.builder import DATASETS
File "/home/biosense/Documents/Rana/Ronit/SWIN/Swin-Transformer-Object-Detection/mmdet/datasets/utils.py", line 136, in _check_head
assert module.num_classes == len(dataset.CLASSES),
AssertionError: The
num_classes
(80) in FCNMaskHead of MMDataParallel does not matches the length ofCLASSES
2) in CocoDatasetThe text was updated successfully, but these errors were encountered: