Text-to-Image
Diffusers
Safetensors
tolgacangoz commited on
Commit
bdef260
·
verified ·
1 Parent(s): 49d67c3

Upload anytext.py

Browse files
Files changed (1) hide show
  1. anytext.py +3 -3
anytext.py CHANGED
@@ -1258,7 +1258,6 @@ class AnyTextPipeline(
1258
 
1259
  def __init__(
1260
  self,
1261
- font_path: str,
1262
  vae: AutoencoderKL,
1263
  text_encoder: CLIPTextModel,
1264
  tokenizer: CLIPTokenizer,
@@ -1267,8 +1266,9 @@ class AnyTextPipeline(
1267
  scheduler: KarrasDiffusionSchedulers,
1268
  safety_checker: StableDiffusionSafetyChecker,
1269
  feature_extractor: CLIPImageProcessor,
1270
- text_embedding_module: Optional[TextEmbeddingModule] = None,
1271
- auxiliary_latent_module: Optional[AuxiliaryLatentModule] = None,
 
1272
  trust_remote_code: bool = False,
1273
  image_encoder: CLIPVisionModelWithProjection = None,
1274
  requires_safety_checker: bool = True,
 
1258
 
1259
  def __init__(
1260
  self,
 
1261
  vae: AutoencoderKL,
1262
  text_encoder: CLIPTextModel,
1263
  tokenizer: CLIPTokenizer,
 
1266
  scheduler: KarrasDiffusionSchedulers,
1267
  safety_checker: StableDiffusionSafetyChecker,
1268
  feature_extractor: CLIPImageProcessor,
1269
+ font_path: str = "arial-unicode-ms.ttf",
1270
+ # text_embedding_module: Optional[TextEmbeddingModule] = None,
1271
+ # auxiliary_latent_module: Optional[AuxiliaryLatentModule] = None,
1272
  trust_remote_code: bool = False,
1273
  image_encoder: CLIPVisionModelWithProjection = None,
1274
  requires_safety_checker: bool = True,