-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
36 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
# Polyblur Python package | ||
|
||
Pytorch-based implementation of "Polyblur: Removing mild blur by polynomial reblurring" [Delbracio2021] and detailed in "Breaking down Polyblur: Fast blind correction of small anisotropic blurs" [Eboli2022]. Any question at [email protected]. | ||
|
||
Import the package as | ||
> import polyblur | ||
|
||
In your Python script, run the functional interface | ||
> polyblur.polyblur_deblurring | ||
|
||
or the torch.nn.Module interface | ||
> polyblur.PolyblurDeblurring |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,35 @@ | ||
from setuptools import setup, find_packages, Extension | ||
from torch.utils import cpp_extension | ||
import re | ||
|
||
# # Install the intermediate separable kernel | ||
# setup(name='separable_gaussian2d', | ||
# ext_modules=[cpp_extension.CppExtension('separable_gaussian2d', ['./polyblur/separable_convolution/separable_gaussian2d.cpp'])], | ||
# cmdclass={'build_ext': cpp_extension.BuildExtension}) | ||
|
||
|
||
with open("long_description.txt", "r") as fh: | ||
long_description = fh.read() | ||
|
||
|
||
# Install the main polyblur module | ||
setup( | ||
name='polyblur', | ||
version="1.0.0", | ||
version="1.0.1", | ||
author="Thomas Eboli", | ||
author_email="[email protected]", | ||
description="Breaking down Polyblur: Fast blind Correction of Small Anisotropic Blurs [IPOL2022]", | ||
url="https://github.com/teboli/polyblur", | ||
long_description=long_description, | ||
packages = find_packages(), | ||
include_package_data=True, | ||
install_requires=["torch-tools"], | ||
classifiers=[ | ||
"Programming Language :: Python :: 3", | ||
"License :: OSI Approved :: MIT License", | ||
"Environment :: GPU :: NVIDIA CUDA", | ||
"Operating System :: MacOS :: MacOS X", | ||
"Operating System :: POSIX", | ||
"Topic :: Scientific/Engineering :: Image Processing", | ||
], | ||
) |