Skip to content

Commit 92cc11c

Browse files
authored
Merge pull request #28 from Zhaoyi-Yan/patch-1
Probably fix the error running on windows
2 parents 1a146cf + 4afbf58 commit 92cc11c

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

saicinpainting/utils.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@
1313

1414
LOGGER = logging.getLogger(__name__)
1515

16+
import platform
17+
if platform.system() != 'Linux':
18+
signal.SIGUSR1 = 1
1619

1720
def check_and_warn_input_range(tensor, min_value, max_value, name):
1821
actual_min = tensor.min()

0 commit comments

Comments
 (0)