-
Notifications
You must be signed in to change notification settings - Fork 7
Open
Description
请问作者图像编辑是否只能输出方形的图片?测试输入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
论文里的示意图有非方形的图片,但是代码没有相应的实现,请问作者需要进行怎么样的修改使得图像编辑时输入和输出图像大小相等?
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels