Spaces:
Runtime error
Runtime error
Download pydiffvg/pixel_filter.py from CVPR/LIVE: direct link, hf CLI and curl.
- Browser
- Download file 195 Bytes
-
https://huggingface.co/spaces/CVPR/LIVE/resolve/main/pydiffvg/pixel_filter.py
- Command line
-
hf download hf://spaces/CVPR/LIVE/pydiffvg/pixel_filter.py
-
curl -L -o pixel_filter.py https://huggingface.co/spaces/CVPR/LIVE/resolve/main/pydiffvg/pixel_filter.py
195 Bytes
| import torch | |
| import pydiffvg | |
| class PixelFilter: | |
| def __init__(self, | |
| type, | |
| radius = torch.tensor(0.5)): | |
| self.type = type | |
| self.radius = radius | |