vapoursynth-bilateralgpu 14__py3-none-win_amd64.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- vapoursynth/plugins/bilateralgpu/bilateralgpu.dll +0 -0
- vapoursynth/plugins/bilateralgpu/bilateralgpu_rtc.dll +0 -0
- vapoursynth_bilateralgpu-14.dist-info/METADATA +82 -0
- vapoursynth_bilateralgpu-14.dist-info/RECORD +6 -0
- vapoursynth_bilateralgpu-14.dist-info/WHEEL +4 -0
- vapoursynth_bilateralgpu-14.dist-info/licenses/LICENSE +21 -0
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: vapoursynth-bilateralgpu
|
|
3
|
+
Version: 14
|
|
4
|
+
Summary: Bilateral filter for VapourSynth
|
|
5
|
+
Project-URL: Source Code, https://github.com/WolframRhodium/VapourSynth-BilateralGPU
|
|
6
|
+
Project-URL: Bug Tracker, https://github.com/WolframRhodium/VapourSynth-BilateralGPU/issues
|
|
7
|
+
Author: WolframRhodium
|
|
8
|
+
Maintainer: WolframRhodium
|
|
9
|
+
Maintainer-email: Vardë <ichunjo.le.terrible@gmail.com>
|
|
10
|
+
License-Expression: MIT
|
|
11
|
+
License-File: LICENSE
|
|
12
|
+
Requires-Python: >=3.12
|
|
13
|
+
Requires-Dist: vapoursynth>=74
|
|
14
|
+
Description-Content-Type: text/markdown
|
|
15
|
+
|
|
16
|
+
# VapourSynth-BilateralGPU
|
|
17
|
+
Copyright© 2021 WolframRhodium
|
|
18
|
+
|
|
19
|
+
Bilateral filter in CUDA for VapourSynth.
|
|
20
|
+
|
|
21
|
+
## Description
|
|
22
|
+
[Bilateral filter](https://en.wikipedia.org/wiki/Bilateral_filter) is a non-linear, edge-preserving and noise-reducing smoothing filter for images.
|
|
23
|
+
|
|
24
|
+
The intensity value at each pixel in an image is replaced by a weighted average of intensity values from nearby pixels. This weight can be based on a Gaussian distribution.
|
|
25
|
+
|
|
26
|
+
Special thanks to [Kice](https://github.com/kice) for doing most of the work in previous implementation.
|
|
27
|
+
|
|
28
|
+
## Requirements
|
|
29
|
+
- CPU with AVX2 support.
|
|
30
|
+
|
|
31
|
+
- CUDA-enabled GPU(s) of [compute capability](https://developer.nvidia.com/cuda-gpus) 5.0 or higher (Maxwell+).
|
|
32
|
+
|
|
33
|
+
- GPU driver >= v452.39 for GeForce or `bilateral_rtc` users or >= v496.13 in general.
|
|
34
|
+
|
|
35
|
+
The plugin can run on older generation of GPUs or CPU without AVX2 support by manual compilation.
|
|
36
|
+
|
|
37
|
+
The `_rtc` version requires compute capability 3.5 or higher, GPU driver 465 or newer and has dependencies on `nvrtc64_112_0.dll/libnvrtc.so.11.2` and `nvrtc-builtins64_114.dll/libnvrtc-builtins.so.11.4.50`.
|
|
38
|
+
|
|
39
|
+
## Supported Formats
|
|
40
|
+
|
|
41
|
+
sample type: 8-16 bit integer or 32 bit float Gray/YUV/RGB input
|
|
42
|
+
|
|
43
|
+
## Usage
|
|
44
|
+
|
|
45
|
+
```python
|
|
46
|
+
core.{bilateralgpu, bilateralgpu_rtc}.Bilateral(clip clip, float[] sigma_spatial=3.0, float[] sigma_color=0.02, int[] radius=0, int device_id=0, int num_streams=4, bool use_shared_memory=True)
|
|
47
|
+
```
|
|
48
|
+
|
|
49
|
+
- clip:
|
|
50
|
+
The input clip.
|
|
51
|
+
|
|
52
|
+
- sigma_spatial: (Default: 3.0)
|
|
53
|
+
Filter sigma in the coordinate space.
|
|
54
|
+
Use an array to assign it for each plane. If "sigma_spatial" for the second plane is not specified, it will be set according to the sigma_spatial of first plane and sub-sampling.
|
|
55
|
+
|
|
56
|
+
- sigma_color: (Default: 0.02)
|
|
57
|
+
Filter sigma in the color space.
|
|
58
|
+
Use an array to assign it for each plane, otherwise the same sigma_color is used for all the planes.
|
|
59
|
+
It will be normalized internally, so that for clips with different bit depths, the same values get similar results.
|
|
60
|
+
|
|
61
|
+
- radius: (Default: 0)
|
|
62
|
+
Kernel window size. 0 = automatic calculatation based on "sigma_spatial".
|
|
63
|
+
|
|
64
|
+
- device_id: (Default: 0)
|
|
65
|
+
CUDA device ID.
|
|
66
|
+
|
|
67
|
+
- num_streams: (Default: 4)
|
|
68
|
+
Number of CUDA streams, enables concurrent kernel execution and data transfer.
|
|
69
|
+
|
|
70
|
+
- use_shared_memory: (Default: True)
|
|
71
|
+
Use on-chip memory to reduce bandwidth requirements on memory operations.
|
|
72
|
+
|
|
73
|
+
- The `_rtc` version has two experimental parameters:
|
|
74
|
+
- block_x, block_y: (Default: 16, 8)
|
|
75
|
+
Block size of launch configuration of the kernel. Don't modify it unless you know what you are doing.
|
|
76
|
+
|
|
77
|
+
## Compilation
|
|
78
|
+
```bash
|
|
79
|
+
cmake -S . -B build -D CMAKE_BUILD_TYPE=Release -D CMAKE_CUDA_FLAGS="--threads 0 --use_fast_math -Wno-deprecated-gpu-targets" -D CMAKE_CUDA_ARCHITECTURES="50;61-real;75-real;86"
|
|
80
|
+
|
|
81
|
+
cmake --build build --config Release
|
|
82
|
+
```
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
vapoursynth/plugins/bilateralgpu/bilateralgpu.dll,sha256=PznrHN1PsThOqQt1mBZwv8-ISN_-nry1U2UM47nvWGY,314368
|
|
2
|
+
vapoursynth/plugins/bilateralgpu/bilateralgpu_rtc.dll,sha256=hj9icscqFRkNkhe9gpSV9-e_UoVYQgrpILgephPtY2Y,95492608
|
|
3
|
+
vapoursynth_bilateralgpu-14.dist-info/METADATA,sha256=sPj7GEDz8ttp9sn7Omu6U60j6TZsfG97YOPgQXEafS4,3335
|
|
4
|
+
vapoursynth_bilateralgpu-14.dist-info/WHEEL,sha256=OKr2XcpSNWrtUe-CU6RMYrBnsfqGnZ3jZM4vKnozTRA,94
|
|
5
|
+
vapoursynth_bilateralgpu-14.dist-info/licenses/LICENSE,sha256=6X90ubXsGjfmmj-6LT-wxTfVpPaxeqp4lBD8vp0wc5k,1092
|
|
6
|
+
vapoursynth_bilateralgpu-14.dist-info/RECORD,,
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2021 WolframRhodium
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|