ArtFlawless HU→EN prompt translator v1
Hungarian → English translator fine-tuned for text-to-image prompts (people, photography, art styles, scenes). English words and phrases inside a Hungarian prompt (e.g. "golden hour, 85mm, film grain") are kept as they are. Made for ArtFlawless Studio; runs locally, offline.
- Base model: Helsinki-NLP/opus-mt-tc-big-hu-en (CC-BY 4.0), by the Language Technology Research Group at the University of Helsinki (OPUS-MT, Tiedemann et al.).
- Fine-tuning data: English prompts from DiffusionDB (CC0) translated to Hungarian with EuroLLM-1.7B-Instruct (Apache-2.0) and opus-mt-en-hu (CC-BY 4.0), filtered by round-trip quality, plus about 1,800 hand-written prompt pairs.
- Weights: fp16, about 447 MB.
- Changes compared with the base model: fine-tuned weights only; architecture and tokenizer unchanged.
License
CC-BY 4.0, same as the base model. Attribution: Helsinki-NLP / OPUS-MT (base model) and Lalikavics / ArtFlawless Studio (fine-tuning).
Use
from transformers import MarianMTModel, MarianTokenizer
tok = MarianTokenizer.from_pretrained("artflawless-hu-en-v1"); model = MarianMTModel.from_pretrained("artflawless-hu-en-v1")
b = tok(["vöröshajú nő, szeplők, őszi erdő, golden hour"], return_tensors="pt", padding=True)
print(tok.batch_decode(model.generate(**b, num_beams=4, max_new_tokens=300), skip_special_tokens=True))