mirror of
https://github.com/Bing-su/adetailer.git
synced 2026-01-30 13:19:54 +00:00
11 lines
194 B
Python
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
|