Upload anytext.py
Browse files- anytext.py +1 -1
anytext.py
CHANGED
|
@@ -741,7 +741,7 @@ class TextEmbeddingModule(ModelMixin, ConfigMixin):
|
|
| 741 |
@register_to_config
|
| 742 |
def __init__(self, font_path, use_fp16=False, device="cpu"):
|
| 743 |
super().__init__()
|
| 744 |
-
font = ImageFont.truetype(
|
| 745 |
|
| 746 |
# self.use_fp16 = use_fp16
|
| 747 |
# self.device = device
|
|
|
|
| 741 |
@register_to_config
|
| 742 |
def __init__(self, font_path, use_fp16=False, device="cpu"):
|
| 743 |
super().__init__()
|
| 744 |
+
font = ImageFont.truetype(font_path, 60)
|
| 745 |
|
| 746 |
# self.use_fp16 = use_fp16
|
| 747 |
# self.device = device
|