AIGText / Glyph-ByT5

This is an official inference code of the paper "Glyph-ByT5: A Customized Text Encoder for Accurate Visual Text Rendering" and "Glyph-ByT5-v2: A Strong Aesthetic Baseline for Accurate Multilingual Visual Text Rendering""
https://glyph-byt5.github.io/
Apache License 2.0
367 stars 20 forks source link

Make it clear in the readme that this is *nix only #12

Open andybak opened 6 days ago

andybak commented 6 days ago
ImportError: cannot import name 'ForkProcess' from 'multiprocessing.context' (D:\Python\lib\multiprocessing\context.py)
zmwv823 commented 5 days ago

U**n**ix for *nix , lol Maybe it can change to windows. At first make a os check, then import ForkProcess for Unix, import SpawnProcess for windows.

import sys
if sys.platoform == 'win32':
    xxxx
else:
    xxxx

But the process also need to modify. An example:

multiprocessing.get_context('spawn')