Skip to content

The most powerful and modular diffusion model GUI, api and backend with a graph/nodes interface. The fastest local inference engine in the world.

Python 3.7 support.

comfyanonymous07194297fd41
diff --git a/comfy_extras/chainner_models/architecture/block.py b/comfy_extras/chainner_models/architecture/block.py
index 1abe1ed8f..214642cc4 100644
--- a/comfy_extras/chainner_models/architecture/block.py
+++ b/comfy_extras/chainner_models/architecture/block.py
@@ -4,7 +4,10 @@
from __future__ import annotations
from collections import OrderedDict
-from typing import Literal
+try:
+ from typing import Literal
+except ImportError:
+ from typing_extensions import Literal
import torch
import torch.nn as nn