Text-to-Image
Diffusers
Safetensors
tolgacangoz commited on
Commit
067c594
·
verified ·
1 Parent(s): 6eda897

Upload anytext.py

Browse files
Files changed (1) hide show
  1. 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'