openai-cookbook icon indicating copy to clipboard operation
openai-cookbook copied to clipboard

DALL-E-2 Edit demo does not work

Open nickums opened this issue 1 year ago • 8 comments
trafficstars

I am trying the demonstration code (as below) for DALL-E-2 Edit
as given in https://platform.openai.com/docs/guides/images/usage?context=node

I am on python3.8 windows10. The input image and mask files are as provided, but the output file does not contain any edit.

from openai import OpenAI client = OpenAI()

response = client.images.edit(( model="dall-e-2", image=open("sunlit_lounge.png", "rb"), mask=open("mask.png", "rb"), prompt="A sunlit indoor lounge area with a pool containing a flamingo", n=1, size="1024x1024" )

nickums avatar Dec 22 '23 17:12 nickums

can show the output image you got? mask image should have mask (means alpha channel should be zero) and saved as png.

ARajgor avatar Dec 24 '23 12:12 ARajgor

there is no error as such, the unmodified image is returned.

On Sun, 24 Dec 2023 at 12:12, ayush rajgor @.***> wrote:

can show the error you got?

— Reply to this email directly, view it on GitHub https://github.com/openai/openai-cookbook/issues/951#issuecomment-1868502465, or unsubscribe https://github.com/notifications/unsubscribe-auth/ADYVMFJF4WZYZGUM7U4UTK3YLAL4VAVCNFSM6AAAAABBACKBOKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQNRYGUYDENBWGU . You are receiving this because you authored the thread.Message ID: @.***>

-- Nick "Mac" McElwaine

nickums avatar Jan 03 '24 17:01 nickums

Hello, actually there is also an issue with extra ( in function usage. client.images.edit(( https://github.com/openai/openai-openapi/issues/154#issue-2068663624

horw avatar Jan 06 '24 14:01 horw

Ok, thanks for the clarification. actually the second ( is not in my code.

On Sat, 6 Jan 2024 at 14:41, Igor Udot @.***> wrote:

Hello, actually there is also an issue with extra ( in function usage. client.images.edit(( openai/openai-openapi#154 (comment) https://github.com/openai/openai-openapi/issues/154#issue-2068663624

— Reply to this email directly, view it on GitHub https://github.com/openai/openai-cookbook/issues/951#issuecomment-1879716359, or unsubscribe https://github.com/notifications/unsubscribe-auth/ADYVMFJDQJKUQ7N6TTRETITYNFPBFAVCNFSM6AAAAABBACKBOKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQNZZG4YTMMZVHE . You are receiving this because you authored the thread.Message ID: @.***>

-- Nick "Mac" McElwaine

nickums avatar Jan 08 '24 10:01 nickums

This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 10 days.

github-actions[bot] avatar Mar 09 '24 01:03 github-actions[bot]

I still do not have a resolution for this.

nickums avatar Mar 09 '24 08:03 nickums

This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 10 days.

github-actions[bot] avatar May 09 '24 01:05 github-actions[bot]

sdshmkh ha mentioned the issue which is still outstanding

nickums avatar May 09 '24 09:05 nickums

This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 10 days.

github-actions[bot] avatar Jul 09 '24 01:07 github-actions[bot]

This issue was closed because it has been stalled for 10 days with no activity.

github-actions[bot] avatar Jul 19 '24 01:07 github-actions[bot]