Skip to content

Since THE WEIGHT CLASS I DOWNLOADED IS 80 and I need TO BE 2, how do I not load this layer for training, or what is a good ideaΒ #9106

@weikai520

Description

@weikai520

Prerequisite

🐞 Describe the bug

Since THE WEIGHT CLASS I DOWNLOADED IS 80 and I need TO BE 2, how do I not load this layer for training, or what is a good idea

raise RuntimeError('Error(s) in loading state_dict for {}:\n\t{}'.format(
RuntimeError: Error(s) in loading state_dict for YOLOX:
size mismatch for bbox_head.multi_level_conv_cls.0.weight: copying a param with shape torch.Size([80, 128, 1, 1]) from checkpoint, the shape in current model is torch.Size([2, 128, 1, 1]).

Environment

size mismatch for bbox_head.multi_level_conv_cls.0.weight: copying a param with shape torch.Size([80, 128, 1, 1]) from checkpoint, the shape in current model is torch.Size([2, 128, 1, 1]).

Additional information

size mismatch for bbox_head.multi_level_conv_cls.0.weight: copying a param with shape torch.Size([80, 128, 1, 1]) from checkpoint, the shape in current model is torch.Size([2, 128, 1, 1]).

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions