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

Used to work fine, now only outputs black pixels #10

Open
marsupilamiimalipusram opened this issue Aug 28, 2023 · 0 comments
Open

Used to work fine, now only outputs black pixels #10

marsupilamiimalipusram opened this issue Aug 28, 2023 · 0 comments

Comments

@marsupilamiimalipusram
Copy link

Hello,

I tried the code on colab a few weeks ago (only changing a few lines for compatibility), and it worked perfectly fine.
Now, it only outputs black images. The images have the correct dimensions, but they contain only black pixels.

Compatibility change in 'main.py':

# ~ import tensorflow as tf  # here
import tensorflow.compat.v1 as tf; tf.disable_v2_behavior()  # here
import numpy as np
from imageio import imread, imsave
import os, glob, cv2
imsave = cv2.imwrite  # and here

As I said, it worked after I made the changes, so these are not responsible for the strange behavior.
Would you have any idea?

Best 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