Spaces:
Running
on
Zero
Running
on
Zero
Update models/controlnet.py
Browse files- models/controlnet.py +2 -2
models/controlnet.py
CHANGED
|
@@ -19,7 +19,7 @@ from torch import nn
|
|
| 19 |
from torch.nn import functional as F
|
| 20 |
|
| 21 |
from diffusers.configuration_utils import ConfigMixin, register_to_config
|
| 22 |
-
from diffusers.loaders import
|
| 23 |
from diffusers.utils import BaseOutput, logging
|
| 24 |
from diffusers.models.attention_processor import AttentionProcessor, AttnProcessor
|
| 25 |
from diffusers.models.embeddings import TextImageProjection, TextImageTimeEmbedding, TextTimeEmbedding, TimestepEmbedding, Timesteps
|
|
@@ -101,7 +101,7 @@ class ControlNetConditioningEmbedding(nn.Module):
|
|
| 101 |
return embedding
|
| 102 |
|
| 103 |
|
| 104 |
-
class ControlNetModel(ModelMixin, ConfigMixin,
|
| 105 |
"""
|
| 106 |
A ControlNet model.
|
| 107 |
|
|
|
|
| 19 |
from torch.nn import functional as F
|
| 20 |
|
| 21 |
from diffusers.configuration_utils import ConfigMixin, register_to_config
|
| 22 |
+
from diffusers.loaders import FromOriginalModelMixin
|
| 23 |
from diffusers.utils import BaseOutput, logging
|
| 24 |
from diffusers.models.attention_processor import AttentionProcessor, AttnProcessor
|
| 25 |
from diffusers.models.embeddings import TextImageProjection, TextImageTimeEmbedding, TextTimeEmbedding, TimestepEmbedding, Timesteps
|
|
|
|
| 101 |
return embedding
|
| 102 |
|
| 103 |
|
| 104 |
+
class ControlNetModel(ModelMixin, ConfigMixin, FromOriginalModelMixin):
|
| 105 |
"""
|
| 106 |
A ControlNet model.
|
| 107 |
|