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

Error on image format in tutorial #5

Open
HeleMartin opened this issue Oct 5, 2023 · 0 comments
Open

Error on image format in tutorial #5

HeleMartin opened this issue Oct 5, 2023 · 0 comments

Comments

@HeleMartin
Copy link

Hello,

The format of the input image is not compatible with the model. A transposition step has to be added. So I replace :
yield np.array(Image.open(image)) / 128 - 1) by yield np.transpose(np.array(Image.open(image)) / 128 - 1,(2,0,1)).
It works for me

Regards

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

1 participant