summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2023-04-11 11:05:42 +0000
committerCoprDistGit <infra@openeuler.org>2023-04-11 11:05:42 +0000
commit677bc4cc5399d1daa99bded63eb33403f546bddc (patch)
tree382e8cca5a5f04b0be1bbb58d8bfdad82972c011
parent92f141344e3920de9f3b8b34875e0b385c220bdd (diff)
automatic import of python-basicsr
-rw-r--r--.gitignore1
-rw-r--r--python-basicsr.spec102
-rw-r--r--sources1
3 files changed, 104 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index e69de29..2319f6c 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/basicsr-1.4.2.tar.gz
diff --git a/python-basicsr.spec b/python-basicsr.spec
new file mode 100644
index 0000000..18e9e2b
--- /dev/null
+++ b/python-basicsr.spec
@@ -0,0 +1,102 @@
+%global _empty_manifest_terminate_build 0
+Name: python-basicsr
+Version: 1.4.2
+Release: 1
+Summary: Open Source Image and Video Super-Resolution Toolbox
+License: Apache License 2.0
+URL: https://github.com/xinntao/BasicSR
+Source0: https://mirrors.nju.edu.cn/pypi/web/packages/86/41/00a6b000f222f0fa4c6d9e1d6dcc9811a374cabb8abb9d408b77de39648c/basicsr-1.4.2.tar.gz
+BuildArch: noarch
+
+
+%description
+BasicSR (**Basic** **S**uper **R**estoration) is an open-source **image and video restoration** toolbox based on PyTorch, such as super-resolution, denoise, deblurring, JPEG artifacts removal, *etc*.<br>
+BasicSR (**Basic** **S**uper **R**estoration) 是一个基于 PyTorch 的开源 图像视频复原工具箱, 比如 超分辨率, 去噪, 去模糊, 去 JPEG 压缩噪声等.
+🚩 **New Features/Updates**
+- ✅ July 26, 2022. Add plot scripts 📊[Plot](scripts/plot).
+- ✅ May 9, 2022. BasicSR joins [XPixel](http://xpixel.group/).
+- ✅ Oct 5, 2021. Add **ECBSR training and testing** codes: [ECBSR](https://github.com/xindongzhang/ECBSR).
+ > ACMMM21: Edge-oriented Convolution Block for Real-time Super Resolution on Mobile Devices
+- ✅ Sep 2, 2021. Add **SwinIR training and testing** codes: [SwinIR](https://github.com/JingyunLiang/SwinIR) by [Jingyun Liang](https://github.com/JingyunLiang). More details are in [HOWTOs.md](docs/HOWTOs.md#how-to-train-swinir-sr)
+- ✅ Aug 5, 2021. Add NIQE, which produces the same results as MATLAB (both are 5.7296 for tests/data/baboon.png).
+- ✅ July 31, 2021. Add **bi-directional video super-resolution** codes: [**BasicVSR** and IconVSR](https://arxiv.org/abs/2012.02181).
+ > CVPR21: BasicVSR: The Search for Essential Components in Video Super-Resolution and Beyond
+
+%package -n python3-basicsr
+Summary: Open Source Image and Video Super-Resolution Toolbox
+Provides: python-basicsr
+BuildRequires: python3-devel
+BuildRequires: python3-setuptools
+BuildRequires: python3-pip
+%description -n python3-basicsr
+BasicSR (**Basic** **S**uper **R**estoration) is an open-source **image and video restoration** toolbox based on PyTorch, such as super-resolution, denoise, deblurring, JPEG artifacts removal, *etc*.<br>
+BasicSR (**Basic** **S**uper **R**estoration) 是一个基于 PyTorch 的开源 图像视频复原工具箱, 比如 超分辨率, 去噪, 去模糊, 去 JPEG 压缩噪声等.
+🚩 **New Features/Updates**
+- ✅ July 26, 2022. Add plot scripts 📊[Plot](scripts/plot).
+- ✅ May 9, 2022. BasicSR joins [XPixel](http://xpixel.group/).
+- ✅ Oct 5, 2021. Add **ECBSR training and testing** codes: [ECBSR](https://github.com/xindongzhang/ECBSR).
+ > ACMMM21: Edge-oriented Convolution Block for Real-time Super Resolution on Mobile Devices
+- ✅ Sep 2, 2021. Add **SwinIR training and testing** codes: [SwinIR](https://github.com/JingyunLiang/SwinIR) by [Jingyun Liang](https://github.com/JingyunLiang). More details are in [HOWTOs.md](docs/HOWTOs.md#how-to-train-swinir-sr)
+- ✅ Aug 5, 2021. Add NIQE, which produces the same results as MATLAB (both are 5.7296 for tests/data/baboon.png).
+- ✅ July 31, 2021. Add **bi-directional video super-resolution** codes: [**BasicVSR** and IconVSR](https://arxiv.org/abs/2012.02181).
+ > CVPR21: BasicVSR: The Search for Essential Components in Video Super-Resolution and Beyond
+
+%package help
+Summary: Development documents and examples for basicsr
+Provides: python3-basicsr-doc
+%description help
+BasicSR (**Basic** **S**uper **R**estoration) is an open-source **image and video restoration** toolbox based on PyTorch, such as super-resolution, denoise, deblurring, JPEG artifacts removal, *etc*.<br>
+BasicSR (**Basic** **S**uper **R**estoration) 是一个基于 PyTorch 的开源 图像视频复原工具箱, 比如 超分辨率, 去噪, 去模糊, 去 JPEG 压缩噪声等.
+🚩 **New Features/Updates**
+- ✅ July 26, 2022. Add plot scripts 📊[Plot](scripts/plot).
+- ✅ May 9, 2022. BasicSR joins [XPixel](http://xpixel.group/).
+- ✅ Oct 5, 2021. Add **ECBSR training and testing** codes: [ECBSR](https://github.com/xindongzhang/ECBSR).
+ > ACMMM21: Edge-oriented Convolution Block for Real-time Super Resolution on Mobile Devices
+- ✅ Sep 2, 2021. Add **SwinIR training and testing** codes: [SwinIR](https://github.com/JingyunLiang/SwinIR) by [Jingyun Liang](https://github.com/JingyunLiang). More details are in [HOWTOs.md](docs/HOWTOs.md#how-to-train-swinir-sr)
+- ✅ Aug 5, 2021. Add NIQE, which produces the same results as MATLAB (both are 5.7296 for tests/data/baboon.png).
+- ✅ July 31, 2021. Add **bi-directional video super-resolution** codes: [**BasicVSR** and IconVSR](https://arxiv.org/abs/2012.02181).
+ > CVPR21: BasicVSR: The Search for Essential Components in Video Super-Resolution and Beyond
+
+%prep
+%autosetup -n basicsr-1.4.2
+
+%build
+%py3_build
+
+%install
+%py3_install
+install -d -m755 %{buildroot}/%{_pkgdocdir}
+if [ -d doc ]; then cp -arf doc %{buildroot}/%{_pkgdocdir}; fi
+if [ -d docs ]; then cp -arf docs %{buildroot}/%{_pkgdocdir}; fi
+if [ -d example ]; then cp -arf example %{buildroot}/%{_pkgdocdir}; fi
+if [ -d examples ]; then cp -arf examples %{buildroot}/%{_pkgdocdir}; fi
+pushd %{buildroot}
+if [ -d usr/lib ]; then
+ find usr/lib -type f -printf "/%h/%f\n" >> filelist.lst
+fi
+if [ -d usr/lib64 ]; then
+ find usr/lib64 -type f -printf "/%h/%f\n" >> filelist.lst
+fi
+if [ -d usr/bin ]; then
+ find usr/bin -type f -printf "/%h/%f\n" >> filelist.lst
+fi
+if [ -d usr/sbin ]; then
+ find usr/sbin -type f -printf "/%h/%f\n" >> filelist.lst
+fi
+touch doclist.lst
+if [ -d usr/share/man ]; then
+ find usr/share/man -type f -printf "/%h/%f.gz\n" >> doclist.lst
+fi
+popd
+mv %{buildroot}/filelist.lst .
+mv %{buildroot}/doclist.lst .
+
+%files -n python3-basicsr -f filelist.lst
+%dir %{python3_sitelib}/*
+
+%files help -f doclist.lst
+%{_docdir}/*
+
+%changelog
+* Tue Apr 11 2023 Python_Bot <Python_Bot@openeuler.org> - 1.4.2-1
+- Package Spec generated
diff --git a/sources b/sources
new file mode 100644
index 0000000..4f31707
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+59e762e8aa455648b660433b4881f2f5 basicsr-1.4.2.tar.gz