Update asymmetric-tiling-sd-webui-2.0/scripts/asymmetric_tiling_UNIFIED.py
Browse files
asymmetric-tiling-sd-webui-2.0/scripts/asymmetric_tiling_UNIFIED.py
CHANGED
|
@@ -10,8 +10,20 @@ from tqdm.auto import trange
|
|
| 10 |
import math
|
| 11 |
import numpy as np
|
| 12 |
from collections import OrderedDict
|
|
|
|
|
|
|
| 13 |
|
| 14 |
from PIL import Image
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 15 |
from improved_tiling_functions import (
|
| 16 |
compute_advanced_blend_padding,
|
| 17 |
apply_multires_blend,
|
|
|
|
| 10 |
import math
|
| 11 |
import numpy as np
|
| 12 |
from collections import OrderedDict
|
| 13 |
+
import os
|
| 14 |
+
import sys
|
| 15 |
|
| 16 |
from PIL import Image
|
| 17 |
+
|
| 18 |
+
# === НАЧАЛО ИСПРАВЛЕНИЯ ===
|
| 19 |
+
# Получаем путь к папке, где лежит этот файл (asymmetric_tiling_UNIFIED.py)
|
| 20 |
+
current_script_dir = os.path.dirname(os.path.abspath(__file__))
|
| 21 |
+
|
| 22 |
+
# Добавляем этот путь в sys.path, чтобы Python мог найти соседние файлы
|
| 23 |
+
if current_script_dir not in sys.path:
|
| 24 |
+
sys.path.append(current_script_dir)
|
| 25 |
+
# === КОНЕЦ ИСПРАВЛЕНИЯ ===
|
| 26 |
+
|
| 27 |
from improved_tiling_functions import (
|
| 28 |
compute_advanced_blend_padding,
|
| 29 |
apply_multires_blend,
|