Spaces:
Running
Download example/README.md from Jomify/MangaTrans-Diffusion: direct link, hf CLI and curl.
- Browser
- Download file 1.76 kB
-
https://huggingface.co/spaces/Jomify/MangaTrans-Diffusion/resolve/main/example/README.md
- Command line
-
hf download hf://spaces/Jomify/MangaTrans-Diffusion/example/README.md
-
curl -L -o README.md https://huggingface.co/spaces/Jomify/MangaTrans-Diffusion/resolve/main/example/README.md
Reproduce the lettering example
The Japanese panel shows a gardener greeting a cat with おはよう. ImageGen created the source artwork and Japanese lettering. The distributed input PNG is a 768 × 512 resize of the generated panel. The region file supplies the Chinese translation 早上好 and its vertical layout box.
The output PNG was written directly by the repository CLI. The comparison image places the two complete panels side by side for display. Use the PNGs for pixel comparisons.
From the repository root, after downloading the v3 inference weights and obtaining a compatible VAE, run:
python translate_page.py showcase/example/source.png showcase/example/regions.json reproduced.png --weights weights/mangatrans-v3 --vae /path/to/vae --width 0 --steps 30 --seed 0 --margin 12
This run used an RTX 4060 Laptop GPU and Microsoft YaHei (msyh.ttc, face 0). The working width remained 768 px throughout. A different font, hardware, or library version may change the resulting pixels.
| Component | Artifact used for this render |
|---|---|
| DiT | v3 EMA, step 40,000; SHA-256 dc62cbd1fd7d5700e1df430022089747658044772c66fc901791c60121b6aa84 |
| VAE | Flex.1-alpha VAE, fixed revision; weight SHA-256 f5b59a26851551b67ae1fe58d32e76486e1e812def4696a4bea97f16604d40a3, matching the configured FLUX.1-dev VAE |
| Input PNG | SHA-256 94a19c7c5cfde849595f89abcfa51b3e0ca71a91a1932ef815f26bd2552ffde3 |
| Output PNG | SHA-256 8e245cd97fb49e5ada0945c62ace356e59c04134f39981291f56f7c2ce4e3c29 |