Skip to content

Commit

Permalink
Merge pull request #8 from leverxgroup/docs/fixes
Browse files Browse the repository at this point in the history
docs: copyright footer updated
  • Loading branch information
bagxi authored Mar 28, 2022
2 parents 832a29c + 1a6f622 commit c590a73
Show file tree
Hide file tree
Showing 54 changed files with 95 additions and 30 deletions.
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,11 +39,11 @@ where `esrgan/config.yml` is a path to the [config](config.yml) file.
## Results
Some examples of work of ESRGAN model trained on [DIV2K](https://data.vision.ee.ethz.ch/cvl/DIV2K) dataset:

| LR</br>(low resolution) | ESRGAN</br>(ours) | HR</br>(high resolution) |
|:---:|:---:|:---:|
| <img src="docs/_static/sq_crop_lr.png" height="128" width="128"/> | <img src="docs/_static/sq_crop_sr_x4.png" height="128" width="128"/> | <img src="docs/_static/sq_crop_hr.png" height="128" width="128"/> |
| <img src="docs/_static/wf_crop_lr.png" height="128" width="128"/> | <img src="docs/_static/wf_crop_sr_x4.png" height="128" width="128"/> | <img src="docs/_static/wf_crop_hr.png" height="128" width="128"/> |
| <img src="docs/_static/fish_crop_lr.png" height="128" width="128"/> | <img src="docs/_static/fish_crop_sr_x4.png" height="128" width="128"/> | <img src="docs/_static/fish_crop_hr.png" height="128" width="128"/> |
| LR</br>(low resolution) | ESRGAN</br>(original) | ESRGAN</br>(ours) | HR</br>(high resolution) |
|:---:|:---:|:---:|:---:|
| <img src="docs/_static/0853lr.png" height="128" width="128"/> | <img src="docs/_static/0853sr.png" height="128" width="128"/> | <img src="docs/_static/0853.png" height="128" width="128"/> | <img src="docs/_static/0853hr.png" height="128" width="128"/> |
| <img src="docs/_static/0857lr.png" height="128" width="128"/> | <img src="docs/_static/0857sr.png" height="128" width="128"/> | <img src="docs/_static/0857.png" height="128" width="128"/> | <img src="docs/_static/0857hr.png" height="128" width="128"/> |
| <img src="docs/_static/0887lr.png" height="128" width="128"/> | <img src="docs/_static/0887sr.png" height="128" width="128"/> | <img src="docs/_static/0887.png" height="128" width="128"/> | <img src="docs/_static/0887hr.png" height="128" width="128"/> |

## Documentation
Full documentation for the project is available at https://esrgan.readthedocs.io/
Expand Down
2 changes: 1 addition & 1 deletion config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ stages:
- _target_: albumentations.Normalize
mean: 0
std: 1
- _target_: albumentations.ToTensorV2
- _target_: albumentations.pytorch.ToTensorV2
additional_targets:
real_image: image
low_resolution_image_key: image
Expand Down
Binary file added docs/_static/0802.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/_static/0802hr.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/_static/0802lr.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/_static/0802sr.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/_static/0805.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/_static/0805hr.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/_static/0805lr.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/_static/0805sr.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/_static/0811.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/_static/0811hr.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/_static/0811lr.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/_static/0811sr.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/_static/0815.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/_static/0815hr.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/_static/0815lr.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/_static/0815sr.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/_static/0829.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/_static/0829hr.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/_static/0829lr.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/_static/0829sr.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/_static/0845.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/_static/0845hr.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/_static/0845lr.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/_static/0845sr.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/_static/0853.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/_static/0853hr.png
Binary file added docs/_static/0853lr.png
Binary file added docs/_static/0853sr.png
Binary file added docs/_static/0857.png
Binary file added docs/_static/0857hr.png
Binary file added docs/_static/0857lr.png
Binary file added docs/_static/0857sr.png
Binary file added docs/_static/0886.png
Binary file added docs/_static/0886hr.png
Binary file added docs/_static/0886lr.png
Binary file added docs/_static/0886sr.png
Binary file added docs/_static/0887.png
Binary file added docs/_static/0887hr.png
Binary file added docs/_static/0887lr.png
Binary file added docs/_static/0887sr.png
Binary file removed docs/_static/fish_crop_hr.png
Diff not rendered.
Binary file removed docs/_static/fish_crop_lr.png
Diff not rendered.
Binary file removed docs/_static/fish_crop_sr_x4.png
Diff not rendered.
Binary file removed docs/_static/sq_crop_hr.png
Diff not rendered.
Binary file removed docs/_static/sq_crop_lr.png
Diff not rendered.
Binary file removed docs/_static/sq_crop_sr_x4.png
Diff not rendered.
Binary file removed docs/_static/wf_crop_hr.png
Diff not rendered.
Binary file removed docs/_static/wf_crop_lr.png
Diff not rendered.
Binary file removed docs/_static/wf_crop_sr_x4.png
Diff not rendered.
4 changes: 3 additions & 1 deletion docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ def _get_project_meta():

pkg_meta = _get_project_meta()
project = str(pkg_meta["name"])
copyright = "2020, Emerline, Inc. and its affiliates." # noqa: WPS125
copyright = "2022, Emerline, Inc. All Rights Reserved." # noqa: WPS125
author = "Emerline"

# The short X.Y version
Expand Down Expand Up @@ -101,3 +101,5 @@ def _get_project_meta():
html_static_path = ["_static"]

html_short_title = project

html_scaled_image_link = False
42 changes: 22 additions & 20 deletions docs/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -62,26 +62,28 @@ Results
Some examples of work of ESRGAN model trained on `DIV2K <https://data.vision.ee.ethz.ch/cvl/DIV2K>`__ dataset:

.. table::
:widths: 33 33 33

+---------------------------------------+------------------------------------------+---------------------------------------+
| .. centered:: LR (low resolution) | .. centered:: ESRGAN (ours) | .. centered:: HR (high resolution) |
+=======================================+==========================================+=======================================+
| .. image:: ./_static/sq_crop_lr.png | .. image:: ./_static/sq_crop_sr_x4.png | .. image:: ./_static/sq_crop_hr.png |
| :width: 128px | :width: 128px | :width: 128px |
| :height: 128px | :height: 128px | :height: 128px |
| :align: center | :align: center | :align: center |
+---------------------------------------+------------------------------------------+---------------------------------------+
| .. image:: ./_static/wf_crop_lr.png | .. image:: ./_static/wf_crop_sr_x4.png | .. image:: ./_static/wf_crop_hr.png |
| :width: 128px | :width: 128px | :width: 128px |
| :height: 128px | :height: 128px | :height: 128px |
| :align: center | :align: center | :align: center |
+---------------------------------------+------------------------------------------+---------------------------------------+
| .. image:: ./_static/fish_crop_lr.png | .. image:: ./_static/fish_crop_sr_x4.png | .. image:: ./_static/fish_crop_hr.png |
| :width: 128px | :width: 128px | :width: 128px |
| :height: 128px | :height: 128px | :height: 128px |
| :align: center | :align: center | :align: center |
+---------------------------------------+------------------------------------------+---------------------------------------+
:widths: 25 25 25 25

+-----------------------------------+---------------------------------+-------------------------------+------------------------------------+
| .. centered:: LR (low resolution) | .. centered:: `ESRGAN`_ | .. centered:: ESRGAN (ours) | .. centered:: HR (high resolution) |
+===================================+=================================+===============================+====================================+
| .. image:: ./_static/0853lr.png | .. image:: ./_static/0853sr.png | .. image:: ./_static/0853.png | .. image:: ./_static/0853hr.png |
| :width: 128px | :width: 128px | :width: 128px | :width: 128px |
| :height: 128px | :height: 128px | :height: 128px | :height: 128px |
| :align: center | :align: center | :align: center | :align: center |
+-----------------------------------+---------------------------------+-------------------------------+------------------------------------+
| .. image:: ./_static/0857lr.png | .. image:: ./_static/0857sr.png | .. image:: ./_static/0857.png | .. image:: ./_static/0857hr.png |
| :width: 128px | :width: 128px | :width: 128px | :width: 128px |
| :height: 128px | :height: 128px | :height: 128px | :height: 128px |
| :align: center | :align: center | :align: center | :align: center |
+-----------------------------------+---------------------------------+-------------------------------+------------------------------------+
| .. image:: ./_static/0887lr.png | .. image:: ./_static/0887sr.png | .. image:: ./_static/0887.png | .. image:: ./_static/0887hr.png |
| :width: 128px | :width: 128px | :width: 128px | :width: 128px |
| :height: 128px | :height: 128px | :height: 128px | :height: 128px |
| :align: center | :align: center | :align: center | :align: center |
+-----------------------------------+---------------------------------+-------------------------------+------------------------------------+

.. _ESRGAN: https://github.com/xinntao/ESRGAN


GitHub
Expand Down
67 changes: 64 additions & 3 deletions docs/pages/esrgan.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ ESRGAN
======


Network Architecture
Network architecture
====================

.. image:: ../_static/architecture.png
Expand All @@ -19,7 +19,68 @@ Main modifications in the structure of generator G, discriminator D, and trainin
4. perceptual loss on features before activation.


Qualitative Results
Some results
============

.. table::
:widths: 25 25 25 25

+-----------------------------------+----------------------------------+--------------------------------+------------------------------------+
| .. centered:: LR (low resolution) | .. centered:: ESRGAN `\[1\]`_ | .. centered:: ESRGAN (ours) | .. centered:: HR (high resolution) |
+===================================+==================================+================================+====================================+
| .. image:: ../_static/0802lr.png | .. image:: ../_static/0802sr.png | .. image:: ../_static/0802.png | .. image:: ../_static/0802hr.png |
| :width: 128px | :width: 128px | :width: 128px | :width: 128px |
| :height: 128px | :height: 128px | :height: 128px | :height: 128px |
| :align: center | :align: center | :align: center | :align: center |
+-----------------------------------+----------------------------------+--------------------------------+------------------------------------+
| .. image:: ../_static/0805lr.png | .. image:: ../_static/0805sr.png | .. image:: ../_static/0805.png | .. image:: ../_static/0805hr.png |
| :width: 128px | :width: 128px | :width: 128px | :width: 128px |
| :height: 128px | :height: 128px | :height: 128px | :height: 128px |
| :align: center | :align: center | :align: center | :align: center |
+-----------------------------------+----------------------------------+--------------------------------+------------------------------------+
| .. image:: ../_static/0811lr.png | .. image:: ../_static/0811sr.png | .. image:: ../_static/0811.png | .. image:: ../_static/0811hr.png |
| :width: 128px | :width: 128px | :width: 128px | :width: 128px |
| :height: 128px | :height: 128px | :height: 128px | :height: 128px |
| :align: center | :align: center | :align: center | :align: center |
+-----------------------------------+----------------------------------+--------------------------------+------------------------------------+
| .. image:: ../_static/0815lr.png | .. image:: ../_static/0815sr.png | .. image:: ../_static/0815.png | .. image:: ../_static/0815hr.png |
| :width: 128px | :width: 128px | :width: 128px | :width: 128px |
| :height: 128px | :height: 128px | :height: 128px | :height: 128px |
| :align: center | :align: center | :align: center | :align: center |
+-----------------------------------+----------------------------------+--------------------------------+------------------------------------+
| .. image:: ../_static/0829lr.png | .. image:: ../_static/0829sr.png | .. image:: ../_static/0829.png | .. image:: ../_static/0829hr.png |
| :width: 128px | :width: 128px | :width: 128px | :width: 128px |
| :height: 128px | :height: 128px | :height: 128px | :height: 128px |
| :align: center | :align: center | :align: center | :align: center |
+-----------------------------------+----------------------------------+--------------------------------+------------------------------------+
| .. image:: ../_static/0845lr.png | .. image:: ../_static/0845sr.png | .. image:: ../_static/0845.png | .. image:: ../_static/0845hr.png |
| :width: 128px | :width: 128px | :width: 128px | :width: 128px |
| :height: 128px | :height: 128px | :height: 128px | :height: 128px |
| :align: center | :align: center | :align: center | :align: center |
+-----------------------------------+----------------------------------+--------------------------------+------------------------------------+
| .. image:: ../_static/0853lr.png | .. image:: ../_static/0853sr.png | .. image:: ../_static/0853.png | .. image:: ../_static/0853hr.png |
| :width: 128px | :width: 128px | :width: 128px | :width: 128px |
| :height: 128px | :height: 128px | :height: 128px | :height: 128px |
| :align: center | :align: center | :align: center | :align: center |
+-----------------------------------+----------------------------------+--------------------------------+------------------------------------+
| .. image:: ../_static/0857lr.png | .. image:: ../_static/0857sr.png | .. image:: ../_static/0857.png | .. image:: ../_static/0857hr.png |
| :width: 128px | :width: 128px | :width: 128px | :width: 128px |
| :height: 128px | :height: 128px | :height: 128px | :height: 128px |
| :align: center | :align: center | :align: center | :align: center |
+-----------------------------------+----------------------------------+--------------------------------+------------------------------------+
| .. image:: ../_static/0886lr.png | .. image:: ../_static/0886sr.png | .. image:: ../_static/0886.png | .. image:: ../_static/0886hr.png |
| :width: 128px | :width: 128px | :width: 128px | :width: 128px |
| :height: 128px | :height: 128px | :height: 128px | :height: 128px |
| :align: center | :align: center | :align: center | :align: center |
+-----------------------------------+----------------------------------+--------------------------------+------------------------------------+
| .. image:: ../_static/0887lr.png | .. image:: ../_static/0887sr.png | .. image:: ../_static/0887.png | .. image:: ../_static/0887hr.png |
| :width: 128px | :width: 128px | :width: 128px | :width: 128px |
| :height: 128px | :height: 128px | :height: 128px | :height: 128px |
| :align: center | :align: center | :align: center | :align: center |
+-----------------------------------+----------------------------------+--------------------------------+------------------------------------+


Qualitative results
===================

PSNR (evaluated on the Y channel) and the perceptual index used in the PIRM-SR challenge
Expand All @@ -35,7 +96,7 @@ Qualitative Results
:width: 100%


Ablation Study
Ablation study
==============

Overall visual comparisons for showing the effects of each component in ESRGAN.
Expand Down

0 comments on commit c590a73

Please sign in to comment.