From 8e91d5910765b5944b30ddb4d1a1ec407aa45099 Mon Sep 17 00:00:00 2001 From: PRAGMA <17136956+imPRAGMA@users.noreply.github.com> Date: Sun, 24 Nov 2019 07:47:57 +0000 Subject: [PATCH 1/2] Update README.md --- README.md | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index 39d94ce2..21a71ebc 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # MMSR -MMSR is an open source image and video super-resolution toolbox based on PyTorch. It is a part of the [open-mmlab](https://github.com/open-mmlab) project developed by [Multimedia Laboratory, CUHK](http://mmlab.ie.cuhk.edu.hk/). MMSR is based on our previous projects: [BasicSR](https://github.com/xinntao/BasicSR), [ESRGAN](https://github.com/xinntao/ESRGAN), and [EDVR](https://github.com/xinntao/EDVR). +MMSR is an open source image and video super-resolution toolbox based on PyTorch. It is a part of the [open-mmlab](https://github.com/open-mmlab) project developed by [Multimedia Laboratory, CUHK](http://mmlab.ie.cuhk.edu.hk). MMSR is based on our previous projects: [BasicSR](https://github.com/xinntao/BasicSR), [ESRGAN](https://github.com/xinntao/ESRGAN), and [EDVR](https://github.com/xinntao/EDVR). ### Highlights - **A unified framework** suitable for image and video super-resolution tasks. It is also easy to adapt to other restoration tasks, e.g., deblurring, denoising, etc. @@ -13,17 +13,15 @@ MMSR is an open source image and video super-resolution toolbox based on PyTorch ## Dependencies and Installation -- Python 3 (Recommend to use [Anaconda](https://www.anaconda.com/download/#linux)) -- [PyTorch >= 1.1](https://pytorch.org/) +- Python 3 (Recommend to use [Anaconda](https://www.anaconda.com/download)) +- [PyTorch >= 1.1](https://pytorch.org) - NVIDIA GPU + [CUDA](https://developer.nvidia.com/cuda-downloads) - [Deformable Convolution](https://arxiv.org/abs/1703.06211). We use [mmdetection](https://github.com/open-mmlab/mmdetection)'s dcn implementation. Please first compile it. ``` cd ./codes/models/archs/dcn python setup.py develop ``` -- Python packages: `pip install numpy opencv-python lmdb pyyaml` -- TensorBoard: - - PyTorch >= 1.1: `pip install tb-nightly future` +- Python packages: `pip install -r requirements.txt` ## Dataset Preparation @@ -39,7 +37,7 @@ Results and pre-trained models are available in the [wiki-Model Zoo](https://git We appreciate all contributions. Please refer to [mmdetection](https://github.com/open-mmlab/mmdetection/blob/master/CONTRIBUTING.md) for contributing guideline. **Python code style**
-We adopt [PEP8](https://www.python.org/dev/peps/pep-0008/) as the preferred code style. We use [flake8](http://flake8.pycqa.org/en/latest/) as the linter and [yapf](https://github.com/google/yapf) as the formatter. Please upgrade to the latest yapf (>=0.27.0) and refer to the [yapf configuration](.style.yapf) and [flake8 configuration](.flake8). +We adopt [PEP8](https://python.org/dev/peps/pep-0008) as the preferred code style. We use [flake8](http://flake8.pycqa.org/en/latest) as the linter and [yapf](https://github.com/google/yapf) as the formatter. Please upgrade to the latest yapf (>=0.27.0) and refer to the [yapf configuration](.style.yapf) and [flake8 configuration](.flake8). > Before you create a PR, make sure that your code lints and is formatted by yapf. From 1fb12871fd82ded9698ac38585ee4d99f923c19d Mon Sep 17 00:00:00 2001 From: PRAGMA <17136956+imPRAGMA@users.noreply.github.com> Date: Sun, 24 Nov 2019 07:48:52 +0000 Subject: [PATCH 2/2] Create requirements.txt --- codes/requirements.txt | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 codes/requirements.txt diff --git a/codes/requirements.txt b/codes/requirements.txt new file mode 100644 index 00000000..a107c0e7 --- /dev/null +++ b/codes/requirements.txt @@ -0,0 +1,6 @@ +numpy +opencv-python +lmdb +pyyaml +tb-nightly +future