Skip to content

Commit

Permalink
FIX: functional_tensor import error Linux/MacOS
Browse files Browse the repository at this point in the history
Issue #161
  • Loading branch information
Gourieff committed Dec 24, 2023
1 parent efdd6af commit 58a8346
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 4 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

<img src="https://github.com/Gourieff/Assets/raw/main/sd-webui-reactor/ReActor_logo_NEW_EN.png?raw=true" alt="logo" width="180px"/>

![Version](https://img.shields.io/badge/node_version-0.4.1_beta3-green?style=for-the-badge&labelColor=darkgreen)
![Version](https://img.shields.io/badge/node_version-0.4.1_beta4-green?style=for-the-badge&labelColor=darkgreen)

<sup>
<font color=brightred>
Expand Down
2 changes: 1 addition & 1 deletion README_RU.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

<img src="https://github.com/Gourieff/Assets/raw/main/sd-webui-reactor/ReActor_logo_NEW_RU.png?raw=true" alt="logo" width="180px"/>

![Version](https://img.shields.io/badge/версия_нода-0.4.1_beta3-green?style=for-the-badge&labelColor=darkgreen)
![Version](https://img.shields.io/badge/версия_нода-0.4.1_beta4-green?style=for-the-badge&labelColor=darkgreen)

<sup>
<font color=brightred>
Expand Down
5 changes: 4 additions & 1 deletion basicsr/data/degradations.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,10 @@
import torch
from scipy import special
from scipy.stats import multivariate_normal
from torchvision.transforms.functional_tensor import rgb_to_grayscale
try:
from torchvision.transforms.functional_tensor import rgb_to_grayscale
except:
from torchvision.transforms.functional import rgb_to_grayscale

# -------------------------------------------------------------------- #
# --------------------------- blur kernels --------------------------- #
Expand Down
2 changes: 1 addition & 1 deletion scripts/reactor_version.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
app_title = "ReActor Node for ComfyUI"
version_flag = "v0.4.1-b3"
version_flag = "v0.4.1-b4"

from scripts.reactor_logger import logger

Expand Down

0 comments on commit 58a8346

Please sign in to comment.