Skip to content

sabribarac/SRGAN-TensorFlow

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

Single Image Super-Resolution with SRGAN

Single Image Super-Resolution build on TensorFlow 2.11.0.

The code is based on the following paper,


Results

After some epochs this was the result (dataset from Set 5):

How to use

In a few simple lines you can train the model,

from srgan import SRGAN

# Instantiate SRGAN model
srgan = SRGAN()

# Define optimizers and loss function
g_optimizer = tf.keras.optimizers.Adam(learning_rate=0.0002, beta_1=0.5)
d_optimizer = tf.keras.optimizers.Adam(learning_rate=0.0002, beta_1=0.5)
loss_fn = tf.keras.losses.BinaryCrossentropy()

# Compile the model
srgan.compile(g_optimizer=g_optimizer, d_optimizer=d_optimizer, loss_fn=loss_fn)

# Train the model
srgan.fit(dataset, epochs=150)

About

Single Image Super-Resolution with TensorFlow

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages