-
Notifications
You must be signed in to change notification settings - Fork 2.8k
Description
Hello,
Thank you for such a detailed MMSegmentation tutorial.
While trying to run the MMSegmentation tutorial for my custom dataset.
I have provided the dataset as required and have changed the num_classes in the cfg according to my dataset.
While running the training , i get the following error
2021-04-17 22:43:10,314 - mmseg - WARNING - The model and loaded state dict do not match exactly
unexpected key in source state_dict: fc.weight, fc.bias
AssertionError Traceback (most recent call last)
in ()
17 mmcv.mkdir_or_exist(osp.abspath(cfg.work_dir))
18 train_segmentor(model, datasets, cfg, distributed=False, validate=True,
---> 19 meta=dict())
2 frames
/usr/local/lib/python3.7/dist-packages/mmcv/runner/base_runner.py in register_lr_hook(self, lr_config)
372 return
373 elif isinstance(lr_config, dict):
--> 374 assert 'policy' in lr_config
375 policy_type = lr_config.pop('policy')
376 # If the type of policy is all in lower case, e.g., 'cyclic',
Can you please help.