Skip to content

InstanceNorm2d throws an error #4

@golunovas

Description

@golunovas

Thank you for the great work.
I noticed that the training code of CFSM is failing with the input size 112 with the following error:
ValueError: Expected more than 1 spatial element when training, got input size torch.Size([32, 512, 1, 1])
Apparently, it's coming from the InstanceNorm2d https://github.com/liuf1990/CFSM/blob/main/CFSM/synthesis_network.py#L200

Any advice on how to solve it?

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