Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

gradio上面的效果很一般什么情况 #163

Open
Metavers1 opened this issue Dec 15, 2024 · 1 comment
Open

gradio上面的效果很一般什么情况 #163

Metavers1 opened this issue Dec 15, 2024 · 1 comment

Comments

@Metavers1
Copy link

image
image
image
代码的又出这个错Cell In[3], line 24
18 prompt = (
19 "Place the woman from <|image_2|> sitting naturally on the snow in <|image_1|>. "
20 "Ensure the lighting, shadows, and perspective match the snowy environment, and make the woman blend naturally into the snow surface."
21 )
23 # 运行OmniGen模型
---> 24 images = pipe(
25 prompt=prompt,
26 input_images=[image_1, image_2],
27 height=512,
28 width=512,
29 guidance_scale=2.5,
30 img_guidance_scale=1.8,
31 seed=42
32 )
34 # 保存并显示输出图像
35 output_path = "./output_result.jpg"

TypeError: 'NoneType' object is not callable

@staoxiao
Copy link
Contributor

For the first question, it seems that the output image size is too different from the input image size. We recommend that the output image should be 1024x1024 or match the input image size.

For the second question, the error info is too little to find the reason. It is recommended to run directly from the teminal instead of Jupyter, which can show more detailed error information.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants