Skip to content

How to load pretrained EVA-02 model if the input size is 512x512 instead of 256x256? #172

Description

@fengyan-cv
size mismatch for rope.freqs_cos: copying a param with shape torch.Size([16, 16, 64]) from checkpoint, the shape in current model is torch.Size([32, 32, 64]).
size mismatch for rope.freqs_sin: copying a param with shape torch.Size([16, 16, 64]) from checkpoint, the shape in current model is torch.Size([32, 32, 64]).
size mismatch for blocks.0.attn.rope.freqs_cos: copying a param with shape torch.Size([16, 16, 64]) from checkpoint, the shape in current model is torch.Size([32, 32, 64]).
size mismatch for blocks.0.attn.rope.freqs_sin: copying a param with shape torch.Size([16, 16, 64]) from checkpoint, the shape in current model is torch.Size([32, 32, 64]).
size mismatch for blocks.1.attn.rope.freqs_cos: copying a param with shape torch.Size([16, 16, 64]) from checkpoint, the shape in current model is torch.Size([32, 32, 64]).
size mismatch for blocks.1.attn.rope.freqs_sin: copying a param with shape torch.Size([16, 16, 64]) from checkpoint, the shape in current model is torch.Size([32, 32, 64]).
size mismatch for blocks.2.attn.rope.freqs_cos: copying a param with shape torch.Size([16, 16, 64]) from checkpoint, the shape in current model is torch.Size([32, 32, 64]).
size mismatch for blocks.2.attn.rope.freqs_sin: copying a param with shape torch.Size([16, 16, 64]) from checkpoint, the shape in current model is torch.Size([32, 32, 64]).
size mismatch for blocks.3.attn.rope.freqs_cos: copying a param with shape torch.Size([16, 16, 64]) from checkpoint, the shape in current model is torch.Size([32, 32, 64]).
size mismatch for blocks.3.attn.rope.freqs_sin: copying a param with shape torch.Size([16, 16, 64]) from checkpoint, the shape in current model is torch.Size([32, 32, 64]).
size mismatch for blocks.4.attn.rope.freqs_cos: copying a param with shape torch.Size([16, 16, 64]) from checkpoint, the shape in current model is torch.Size([32, 32, 64]).
size mismatch for blocks.4.attn.rope.freqs_sin: copying a param with shape torch.Size([16, 16, 64]) from checkpoint, the shape in current model is torch.Size([32, 32, 64]).
size mismatch for blocks.5.attn.rope.freqs_cos: copying a param with shape torch.Size([16, 16, 64]) from checkpoint, the shape in current model is torch.Size([32, 32, 64]).
size mismatch for blocks.5.attn.rope.freqs_sin: copying a param with shape torch.Size([16, 16, 64]) from checkpoint, the shape in current model is torch.Size([32, 32, 64]).
size mismatch for blocks.6.attn.rope.freqs_cos: copying a param with shape torch.Size([16, 16, 64]) from checkpoint, the shape in current model is torch.Size([32, 32, 64]).
size mismatch for blocks.6.attn.rope.freqs_sin: copying a param with shape torch.Size([16, 16, 64]) from checkpoint, the shape in current model is torch.Size([32, 32, 64]).
size mismatch for blocks.7.attn.rope.freqs_cos: copying a param with shape torch.Size([16, 16, 64]) from checkpoint, the shape in current model is torch.Size([32, 32, 64]).
size mismatch for blocks.7.attn.rope.freqs_sin: copying a param with shape torch.Size([16, 16, 64]) from checkpoint, the shape in current model is torch.Size([32, 32, 64]).
size mismatch for blocks.8.attn.rope.freqs_cos: copying a param with shape torch.Size([16, 16, 64]) from checkpoint, the shape in current model is torch.Size([32, 32, 64]).
size mismatch for blocks.8.attn.rope.freqs_sin: copying a param with shape torch.Size([16, 16, 64]) from checkpoint, the shape in current model is torch.Size([32, 32, 64]).
size mismatch for blocks.9.attn.rope.freqs_cos: copying a param with shape torch.Size([16, 16, 64]) from checkpoint, the shape in current model is torch.Size([32, 32, 64]).
size mismatch for blocks.9.attn.rope.freqs_sin: copying a param with shape torch.Size([16, 16, 64]) from checkpoint, the shape in current model is torch.Size([32, 32, 64]).
size mismatch for blocks.10.attn.rope.freqs_cos: copying a param with shape torch.Size([16, 16, 64]) from checkpoint, the shape in current model is torch.Size([32, 32, 64]).
size mismatch for blocks.10.attn.rope.freqs_sin: copying a param with shape torch.Size([16, 16, 64]) from checkpoint, the shape in current model is torch.Size([32, 32, 64]).
size mismatch for blocks.11.attn.rope.freqs_cos: copying a param with shape torch.Size([16, 16, 64]) from checkpoint, the shape in current model is torch.Size([32, 32, 64]).
size mismatch for blocks.11.attn.rope.freqs_sin: copying a param with shape torch.Size([16, 16, 64]) from checkpoint, the shape in current model is torch.Size([32, 32, 64]).
size mismatch for blocks.12.attn.rope.freqs_cos: copying a param with shape torch.Size([16, 16, 64]) from checkpoint, the shape in current model is torch.Size([32, 32, 64]).
size mismatch for blocks.12.attn.rope.freqs_sin: copying a param with shape torch.Size([16, 16, 64]) from checkpoint, the shape in current model is torch.Size([32, 32, 64]).
size mismatch for blocks.13.attn.rope.freqs_cos: copying a param with shape torch.Size([16, 16, 64]) from checkpoint, the shape in current model is torch.Size([32, 32, 64]).
size mismatch for blocks.13.attn.rope.freqs_sin: copying a param with shape torch.Size([16, 16, 64]) from checkpoint, the shape in current model is torch.Size([32, 32, 64]).
size mismatch for blocks.14.attn.rope.freqs_cos: copying a param with shape torch.Size([16, 16, 64]) from checkpoint, the shape in current model is torch.Size([32, 32, 64]).
size mismatch for blocks.14.attn.rope.freqs_sin: copying a param with shape torch.Size([16, 16, 64]) from checkpoint, the shape in current model is torch.Size([32, 32, 64]).
size mismatch for blocks.15.attn.rope.freqs_cos: copying a param with shape torch.Size([16, 16, 64]) from checkpoint, the shape in current model is torch.Size([32, 32, 64]).
size mismatch for blocks.15.attn.rope.freqs_sin: copying a param with shape torch.Size([16, 16, 64]) from checkpoint, the shape in current model is torch.Size([32, 32, 64]).
size mismatch for blocks.16.attn.rope.freqs_cos: copying a param with shape torch.Size([16, 16, 64]) from checkpoint, the shape in current model is torch.Size([32, 32, 64]).
size mismatch for blocks.16.attn.rope.freqs_sin: copying a param with shape torch.Size([16, 16, 64]) from checkpoint, the shape in current model is torch.Size([32, 32, 64]).
size mismatch for blocks.17.attn.rope.freqs_cos: copying a param with shape torch.Size([16, 16, 64]) from checkpoint, the shape in current model is torch.Size([32, 32, 64]).

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