MCPcopy Index your code
hub / github.com/tensorlayer/SRGAN

github.com/tensorlayer/SRGAN @1.4.1 sqlite

repository ↗ · DeepWiki ↗ · release 1.4.1 ↗
8 symbols 35 edges 3 files 0 documented · 0% 1 cross-repo links
README

Super Resolution Examples

We run this script under TensorFlow 2.0 and the TensorLayer 2.0+. For TensorLayer 1.4 version, please check release.

🚀🚀🚀🚀🚀🚀 THIS PROJECT WILL BE CLOSED AND MOVED TO THIS FOLDER IN A MONTH.

🚀🚀🚀🚀🚀🚀 THIS PROJECT WILL BE CLOSED AND MOVED TO THIS FOLDER IN A MONTH.

🚀🚀🚀🚀🚀🚀 THIS PROJECT WILL BE CLOSED AND MOVED TO THIS FOLDER IN A MONTH.

SRGAN Architecture

TensorFlow Implementation of "Photo-Realistic Single Image Super-Resolution Using a Generative Adversarial Network"

<img src="https://github.com/tensorlayer/SRGAN/raw/1.4.1/img/model.jpeg" width="80%" height="10%"/>

Results

<img src="https://github.com/tensorlayer/SRGAN/raw/1.4.1/img/SRGAN_Result2.png" width="80%" height="50%"/>

<img src="https://github.com/tensorlayer/SRGAN/raw/1.4.1/img/SRGAN_Result3.png" width="80%" height="50%"/>

Prepare Data and Pre-trained VGG

    1. You need to download the pretrained VGG19 model in here as tutorial_vgg19.py show.
    1. You need to have the high resolution images for training.
  • In this experiment, I used images from DIV2K - bicubic downscaling x4 competition, so the hyper-paremeters in config.py (like number of epochs) are seleted basic on that dataset, if you change a larger dataset you can reduce the number of epochs.
  • If you dont want to use DIV2K dataset, you can also use Yahoo MirFlickr25k, just simply download it using train_hr_imgs = tl.files.load_flickr25k_dataset(tag=None) in main.py.
  • If you want to use your own images, you can set the path to your image folder via config.TRAIN.hr_img_path in config.py.

Run

config.TRAIN.img_path = "your_image_folder/"
  • Start training.
python train.py
  • Start evaluation.
python train.py --mode=evaluate 

Reference

Author

Citation

If you find this project useful, we would be grateful if you cite the TensorLayer paper:

@article{tensorlayer2017,
author = {Dong, Hao and Supratak, Akara and Mai, Luo and Liu, Fangde and Oehmichen, Axel and Yu, Simiao and Guo, Yike},
journal = {ACM Multimedia},
title = {{TensorLayer: A Versatile Library for Efficient Deep Learning Development}},
url = {http://tensorlayer.org},
year = {2017}
}

Other Projects

Discussion

License

  • For academic and non-commercial use only.
  • For commercial use, please contact tensorlayer@gmail.com.

Core symbols most depended-on inside this repo

get_G
called by 2
model.py
get_train_data
called by 1
train.py
train
called by 1
train.py
evaluate
called by 1
train.py
get_D
called by 1
model.py
log_config
called by 0
config.py
generator_train
called by 0
train.py
_map_fn_train
called by 0
train.py

Shape

Function 8

Languages

Python100%

Modules by API surface

train.py5 symbols
model.py2 symbols
config.py1 symbols

Dependencies from manifests, versioned

tensorflow2.0.0 · 1×
tensorlayer2.0.0 · 1×

For agents

$ claude mcp add SRGAN \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact