[GH-ISSUE #180] t2i的分辨率可以改为1024么 #143

Open
opened 2026-10-26 21:13:00 +00:00 by bsakaguchi · 1 comment
Owner

Originally created by @iamweiweishi on GitHub (Feb 18, 2025).
Original GitHub issue: https://github.com/deepseek-ai/Janus/issues/180

RuntimeError: shape '[16, 64, 64, 8]' is invalid for input of size 73728

强行修改img_size会报上面的错误

Originally created by @iamweiweishi on GitHub (Feb 18, 2025). Original GitHub issue: https://github.com/deepseek-ai/Janus/issues/180 RuntimeError: shape '[16, 64, 64, 8]' is invalid for input of size 73728 强行修改img_size会报上面的错误
Author
Owner

@hh66911 commented on GitHub (Feb 18, 2025):

改generate函数的img_size可以改图像大小,但是image_token_num_per_image要同步改成(img_size / 16)**2
另外貌似如果LLM不重新训练,生成的图像会有问题

<!-- gh-comment-id:2667018061 --> @hh66911 commented on GitHub (Feb 18, 2025): 改generate函数的img_size可以改图像大小,但是image_token_num_per_image要同步改成(img_size / 16)**2 另外貌似如果LLM不重新训练,生成的图像会有问题
Sign in to join this conversation.
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
deepseek-ai/Janus#143
No description provided.