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

[Bug]: Imagen 3 product background approach is editing the products #1594

Closed
1 task done
benpowis opened this issue Jan 3, 2025 · 1 comment · Fixed by #1615
Closed
1 task done

[Bug]: Imagen 3 product background approach is editing the products #1594

benpowis opened this issue Jan 3, 2025 · 1 comment · Fixed by #1615
Assignees

Comments

@benpowis
Copy link

benpowis commented Jan 3, 2025

File Name

https://github.com/GoogleCloudPlatform/generative-ai/blob/main/vision/getting-started/imagen3_editing.ipynb

What happened?

Using Imagen2's product background generation the product will never be altered, which is very important for my retail usecase. When I follow the example code to create product background images using Imagen3 and "bgswap" I am seeing the product being altered significantly, in that not only is the background being changed but also the foreground product. This is also present in the example image (the suitecase) shared in the docs. Is there a way to leverage the superior image quality of Imagen3 but have the approach of the Imagen2 method which did not ever change the product image?

I have attached an example reference image and outputs from imagen2 and image3 to illustrate my point.

Reference:
reference_image
Imagen2 output, as you see the product is exactly the same as the reference:
imagen2_output
Image3 output, where the product has changed significantly:
imagen3_image

Relevant log output

No response

Code of Conduct

  • I agree to follow this project's Code of Conduct
@katiemn
Copy link
Contributor

katiemn commented Jan 6, 2025

Hi @benpowis, we have an update in the SDK to address this. I'll update the code in the notebook once the change is live. Thanks!

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

Successfully merging a pull request may close this issue.

2 participants