Skip to content

Commit a3448a3

Browse files
committed
small code quality changes for imagic pipeline
1 parent 9af9c7f commit a3448a3

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

examples/community/README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
1-
# Community Examples > **For more information about community pipelines, please have a look at [this issue](https://github.com/huggingface/diffusers/issues/841).**
1+
# Community Examples
22

3+
> **For more information about community pipelines, please have a look at [this issue](https://github.com/huggingface/diffusers/issues/841).**
34
**Community** examples consist of both inference and training examples that have been added by the community.
45
Please have a look at the following table to get an overview of all community examples. Click on the **Code Example** to get a copy-and-paste ready code example that you can try out.
56
If a community doesn't work as expected, please open an issue and ping the author on it.

examples/community/imagic_stable_diffusion.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212

1313
import PIL
1414
from accelerate import Accelerator
15-
from diffusers import StableDiffusionPipeline
1615
from diffusers.models import AutoencoderKL, UNet2DConditionModel
1716
from diffusers.pipeline_utils import DiffusionPipeline
1817
from diffusers.pipelines.stable_diffusion import StableDiffusionPipelineOutput
@@ -25,6 +24,7 @@
2524

2625
logger = logging.get_logger(__name__) # pylint: disable=invalid-name
2726

27+
2828
def preprocess(image):
2929
w, h = image.size
3030
w, h = map(lambda x: x - x % 32, (w, h)) # resize to integer multiple of 32

0 commit comments

Comments
 (0)