Skip to content

size of input会随着batchsize的改变而改变 #51

@yuijn456

Description

@yuijn456

使用3d unet,用的brats2020的数据集,python main.py后,targetsize和inputsize会出现维度不匹配的问题,inputsize是[(2,2,32,32,32)],targetsize是[(2,64,32,32)];我把target.reshape([2,2,32,32,32])后成功运行,但是后续调整batsize的的大小,程序又会报错,RuntimeError: shape '[2, 2, 32, 32, 32]' is invalid for input of size 524288,就是inputsize会随着batchsize的改变而改变,这是什么原因呢,因为一般batchsize不就是可以随意改变的吗

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions