Upload anytext.py
Browse files- anytext.py +0 -2
anytext.py
CHANGED
@@ -149,7 +149,6 @@ EXAMPLE_DOC_STRING = """
|
|
149 |
>>> import torch
|
150 |
>>> from diffusers import DiffusionPipeline
|
151 |
>>> from anytext_controlnet import AnyTextControlNetModel
|
152 |
-
>>> from diffusers import DDIMScheduler
|
153 |
>>> from diffusers.utils import load_image
|
154 |
|
155 |
>>> # I chose a font file shared by an HF staff:
|
@@ -162,7 +161,6 @@ EXAMPLE_DOC_STRING = """
|
|
162 |
... trust_remote_code=False, # One needs to give permission to run this pipeline's code
|
163 |
... ).to("cuda")
|
164 |
|
165 |
-
>>> pipe.scheduler = DDIMScheduler.from_config(pipe.scheduler.config)
|
166 |
|
167 |
>>> # generate image
|
168 |
>>> prompt = 'photo of caramel macchiato coffee on the table, top-down perspective, with "Any" "Text" written on it using cream'
|
|
|
149 |
>>> import torch
|
150 |
>>> from diffusers import DiffusionPipeline
|
151 |
>>> from anytext_controlnet import AnyTextControlNetModel
|
|
|
152 |
>>> from diffusers.utils import load_image
|
153 |
|
154 |
>>> # I chose a font file shared by an HF staff:
|
|
|
161 |
... trust_remote_code=False, # One needs to give permission to run this pipeline's code
|
162 |
... ).to("cuda")
|
163 |
|
|
|
164 |
|
165 |
>>> # generate image
|
166 |
>>> prompt = 'photo of caramel macchiato coffee on the table, top-down perspective, with "Any" "Text" written on it using cream'
|