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

Why did I get this runtime error? #66

Open
yundaehyuck opened this issue Mar 7, 2021 · 3 comments
Open

Why did I get this runtime error? #66

yundaehyuck opened this issue Mar 7, 2021 · 3 comments

Comments

@yundaehyuck
Copy link

I train DALLE in colab code that published by this page.

But I don't know that this runtime error occured..

please help me

제목 없음

@vigyanik
Copy link

vigyanik commented Mar 7, 2021

This is because your images are in the RGBA format. You need to convert them to RGB format. PyImage can help do that.

img = Image.open(filename)
new_image = Image.new("RGBA", img.size, "WHITE") # Create a white rgba background
new_image.paste(img, (0, 0), img)              # Paste the image on the background. 
new_image.convert('RGB').save(newfilename)

@lucidrains
Copy link
Owner

@yundaehyuck Hi! Try pulling the latest and rerunning 4fa1082 , should take care of it for you!

@yundaehyuck
Copy link
Author

@lucidrains Thanks a lot! Maybe it works for me. Once the error occurs, I will ask you again.

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

3 participants