Update pipeline_imagedream.py
Browse files- pipeline_imagedream.py +12 -1
pipeline_imagedream.py
CHANGED
@@ -3,7 +3,18 @@ from typing import Any, Callable, Dict, List, Optional, Union
|
|
3 |
import torch
|
4 |
import torch.nn as nn
|
5 |
import torch.nn.functional as F
|
6 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
7 |
from diffusers.image_processor import PipelineImageInput
|
8 |
from diffusers.models import AutoencoderKL, UNet2DConditionModel
|
9 |
from diffusers.pipelines.stable_diffusion.pipeline_output import (
|
|
|
3 |
import torch
|
4 |
import torch.nn as nn
|
5 |
import torch.nn.functional as F
|
6 |
+
|
7 |
+
try:
|
8 |
+
from diffusers.callbacks import MultiPipelineCallbacks, PipelineCallback
|
9 |
+
except:
|
10 |
+
|
11 |
+
class MultiPipelineCallbacks:
|
12 |
+
...
|
13 |
+
|
14 |
+
class PipelineCallback:
|
15 |
+
...
|
16 |
+
|
17 |
+
|
18 |
from diffusers.image_processor import PipelineImageInput
|
19 |
from diffusers.models import AutoencoderKL, UNet2DConditionModel
|
20 |
from diffusers.pipelines.stable_diffusion.pipeline_output import (
|