Files
adetailer/sd_webui/safe.py
2023-05-16 19:18:17 +09:00

11 lines
177 B
Python

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