Skip to content

图像编辑是否只能输出方形的图片? #5

@NiceRingNode

Description

@NiceRingNode

请问作者图像编辑是否只能输出方形的图片?测试输入1000 X 801大小的图,若不指定宽高,输出仍然是1024 X 1024。
若指定宽高则会报错,如指定输出1000 X 801时,在internvlu_transformer.py_prepare_hidden_inputs_anyres函数中会出现einops.EinopsError: Error while processing rearrange-reduction pattern "c (h ph) (w pw) -> (h w) (c ph pw)". Input tensor shape: torch.Size([16, 100, 125]). Additional info: {'ph': 2, 'pw': 2}. Shape mismatch, can't divide axis of length 125 in chunks of 2
论文里的示意图有非方形的图片,但是代码没有相应的实现,请问作者需要进行怎么样的修改使得图像编辑时输入和输出图像大小相等?

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