Skip to content

RuntimeError: mat1 and mat2 shapes cannot be multiplied (458752x7 and 100352x3) #1550

Answered by Ezra-Yu
YusukeImadegawa asked this question in Q&A
Discussion options

You must be logged in to vote

The following is enough fro model setting:

_base_ = [
    '../_base_/models/resnet101.py',           # model settings
     ...............
]

# >>>>>>>>>>>>>>> Override model settings here >>>>>>>>>>>>>>>>>>>
model = dict(
    backbone=dict(
        init_cfg=dict( 
            type='Pretrained',
            checkpoint='https://download.openmmlab.com/mmclassification/v0/resnet/resnet101_8xb32_in1k_20210831-539c63f8.pth',
            prefix='backbone',
        ),
    ),
    head=dict(num_classes=3),
)

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by YusukeImadegawa
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants