Commit a615d97
authored
Update degradations.py because of torchvision.transforms.functional_tensor deprecation in 2024 January
Since 2024 January v0.17.0 of torchvision, the module torchvision.transforms.functional_tensor is removed and the module torchvision.transforms.functional is available.
https://github.com/pytorch/vision/releases/tag/v0.17.0
The code is proposed by @Elawfant in this issue of BasicSR: XPixelGroup/BasicSR#6771 parent c141d1f commit a615d97
1 file changed
+7
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | | - | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
9 | 15 | | |
10 | 16 | | |
11 | 17 | | |
| |||
0 commit comments