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

unconditional_demo.py error #426

Open
chris901003 opened this issue Sep 4, 2022 · 2 comments
Open

unconditional_demo.py error #426

chris901003 opened this issue Sep 4, 2022 · 2 comments
Assignees
Labels
kind/bug something isn't working priority/P0 highest priority
Milestone

Comments

@chris901003
Copy link

chris901003 commented Sep 4, 2022

results = (results[:, [2, 1, 0]] + 1.) / 2.

Error when producing grayscale image, change it to the follow way to fix.

if results.shape[1] == 3:
    results = (results[:, [2, 1, 0]] + 1.) / 2.
elif results.shape[1] == 1:
    results = (results[:, [0]] + 1.) / 2.
@LeoXing1996
Copy link
Collaborator

@chris901003 Thanks for your interest in our project.
Would you like to create a Pull Request to fix this problem?

To create a Pull Request, you should refer this guidance.

@zengyh1900 zengyh1900 added kind/bug something isn't working awaiting response priority/P0 highest priority labels Oct 12, 2022
@zengyh1900 zengyh1900 added this to the 0.8.0 milestone Oct 12, 2022
@zengyh1900
Copy link
Collaborator

Please check this issue. @LeoXing1996 do you have the plan to fix this issue or set it in Backlog?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug something isn't working priority/P0 highest priority
Projects
None yet
Development

No branches or pull requests

3 participants