Skip to content

Commit 71edefc

Browse files
authored
update for py3.10 (#10)
1 parent df01727 commit 71edefc

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/ncsn/pipeline_ncsn.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
1-
from typing import Callable, Dict, List, Optional, Self, Tuple, Union
1+
from typing import Callable, Dict, List, Optional, Tuple, Union
22

33
import torch
44
from diffusers.callbacks import MultiPipelineCallbacks, PipelineCallback
55
from diffusers.pipelines.pipeline_utils import DiffusionPipeline, ImagePipelineOutput
66
from einops import rearrange
7+
from typing_extensions import Self
78

89
from .scheduler.scheduling_ncsn import (
910
AnnealedLangevinDynamicsOutput,

0 commit comments

Comments
 (0)