-
Notifications
You must be signed in to change notification settings - Fork 34
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
UNet help (seems to work only on fake images)? #3
Comments
TensorFlow 1.8,but I don't think it has much to do with the version of TF. # water-based attenuation and backscatter
with tf.variable_scope("g_atten", reuse=True):
eta_r = tf.get_variable(name='g_eta_r', shape=[1, 1, 1], dtype=tf.float32,
initializer=tf.random_normal_initializer(mean=0.35, stddev=0.01))
eta_g = tf.get_variable(name='g_eta_g', shape=[1, 1, 1], dtype=tf.float32,
initializer=tf.random_normal_initializer(mean=0.015, stddev=0.01))
eta_b = tf.get_variable(name='g_eta_b', shape=[1, 1, 1], dtype=tf.float32,
initializer=tf.random_normal_initializer(mean=0.036, stddev=0.01)) # Haze effect
eta_rr = tf.constant(value=0.75, dtype=tf.float32, shape=[1, 1, 1], name='g_eta_rr')
eta_gg = tf.constant(value=0.75, dtype=tf.float32, shape=[1, 1, 1], name='g_eta_gg')
eta_bb = tf.constant(value=0.75, dtype=tf.float32, shape=[1, 1, 1], name='g_eta_bb')
eta_haze = tf.stack([eta_rr, eta_gg, eta_bb], axis=3)
tm_haze = tf.exp(tf.multiply(-1.0, tf.multiply(eta_haze, depth)))
image_haze = tf.multiply(tf.multiply(255.0 * A, tf.subtract(1.0, tm_haze)), eta_d) I also suggest you take a closer look at underwater imaging model. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
It seems that UWGAN generated properly fake water images, it also seems that UNet trained properly on those images as I can get back original image from fake when I run test. However, if I try to feed test with actual water image I get out garbage. I am including sample fake image generated by UWGAN. The same image reconstructed by UNet (seems properly) and what I get when I try to feed Unet one of Type1 water images.
(fake water image generated by UWGAN)
(the same image fed through test loop of UNet (after training it of course))
(sample Type1 water image after going through UNet)
Any idea, what might be going wrong?
Any help would be appreciated.
The text was updated successfully, but these errors were encountered: