Files
adetailer/sd_webui/safe.py
2023-05-18 07:51:05 +09:00

11 lines
194 B
Python

from __future__ import annotations
from typing import TYPE_CHECKING
if TYPE_CHECKING:
import torch
unsafe_torch_load = torch.load
else:
from modules.safe import unsafe_torch_load