Skip to content

Patch shape incompatible with model #16

Description

@DanielNobbe

I am running into an issue when finetuning with config adapted from the defaults, specifically an issue relating to the patch shape:

ValueError: Input spatial dims torch.Size([1, 1, 192, 198, 128]) must be divisible by [16, 16, 16]

Indeed, 198 is not divisible by 16. Is this a mistake on my end? I find the same patch size settings in the main train.json file.
Changing the patch size to [192, 192, 128] resolves the issue. It would be nice if you could let me know if this is correct, or if this is different from how the model was trained.

Thanks,
Daniël

Activity

  1. heyufan1995 commented on May 28, 2026

    @heyufan1995
    Contributor

    Hi @DanielNobbe :
    did you pull the most recent repo? there is a small bug in the inference config. I've already fixed that part.
    Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    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