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

Saved image is NAN #15

Open
H-deep opened this issue Aug 23, 2024 · 1 comment
Open

Saved image is NAN #15

H-deep opened this issue Aug 23, 2024 · 1 comment

Comments

@H-deep
Copy link

H-deep commented Aug 23, 2024

Thank you for the provided code and the pre-trained weights.
I ran your test code for bdd100k dataset. However, I got the output saved images as black images. I check the output of the model:
fake_img, = self.sess.run([out_var], feed_dict={in_var: sample_image}) in AUGAN.py script
and the result is all NAN list:
fake_img, = self.sess.run([out_var], feed_dict={in_var: sample_image})

The sample image is as follows:
sample_image: [[[[-0.85882354 -0.81960785 -0.7882353 ]
[-0.85882354 -0.81960785 -0.7882353 ]
[-0.85882354 -0.81960785 -0.7882353 ]
...

But fake_img is as follows:
fake_img: [[[[nan nan nan]
[nan nan nan]
[nan nan nan]
...

So the output of the concatenation is a nan also.

What do you think is the source of the problem?

Thank you

@jgkwak95
Copy link
Owner

Hi. Please check the resolution or scale of your input images.

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

2 participants