Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: 字体水平方向显示不起作用 #847

Open
Hikari5an opened this issue Feb 11, 2025 · 0 comments
Open

[Bug]: 字体水平方向显示不起作用 #847

Hikari5an opened this issue Feb 11, 2025 · 0 comments
Labels
bug Something isn't working

Comments

@Hikari5an
Copy link

Issue

英文原文水平显示,翻译后中文有的是水平显示也有竖直显示,在config中已经将direction设置为horizontal。
原文

Image
译文

Image

Command Line Arguments

python -m manga_translator local --ignore-errors --use-gpu --config-file E:\manga-image-translator\config.json --font-path fonts\kangkang_manga_3.0.ttf -v -i C:\Users\Ken\Desktop

Console logs

{
  "filter_text": null,
  "render": {
    "renderer": "default",
    "alignment": "auto",
    "disable_font_border": false,
    "font_size_offset": 0,
    "font_size_minimum": -1,
    "direction": "horizontal",
    "uppercase": false,
    "lowercase": false,
    "gimp_font": "Sans-serif",
    "no_hyphenation": false,
    "font_color": null,
    "line_spacing": null,
    "font_size": null
  },
  "upscale": {
    "upscaler": "esrgan",
    "revert_upscaling": true,
    "upscale_ratio": 2
  },
  "translator": {
    "translator": "qwen2_big",
    "target_lang": "CHS",
    "no_text_lang_skip": false,
    "skip_lang": "JPN",
    "gpt_config": null,
    "translator_chain": null,
    "selective_translation": null
  },
  "detector": {
    "detector": "default",
    "detection_size": 2048,
    "text_threshold": 0.5,
    "det_rotate": false,
    "det_auto_rotate": false,
    "det_invert": false,
    "det_gamma_correct": false,
    "box_threshold": 0.7,
    "unclip_ratio": 2.4
  },
  "colorizer": {
    "colorization_size": 512,
    "denoise_sigma": 30,
    "colorizer": "none"
  },
  "inpainter": {
    "inpainter": "lama_large",
    "inpainting_size": 2048,
    "inpainting_precision": "bf16"
  },
  "ocr": {
    "use_mocr_merge": false,
    "ocr": "48px",
    "min_text_length": 0,
    "ignore_bubble": 0
  },
  "kernel_size": 3,
  "mask_dilation_offset": 50
}
@Hikari5an Hikari5an added the bug Something isn't working label Feb 11, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant