Downloads · 30 days
0
skoneru/OmniFusion
OmniFusion is a translation model from skoneru. Use it when you need text moved from one language to another. It is set up for transformers.
Downloads · 30 days
0
Access
Public
Updated Dec 3, 2025
Repo size
1.3 GB
Likes
0
Public
Click a slice to open those files.
.safetensors1.3 GB · 99%
From the Hugging Face model README
Sai Koneru, Matthias Huck, Jan Niehues
Guide on how to run OmniFusion for image, audio, and text inference with code or as gradio demo.
This demo illustrates how OmniFusion can be integrated for:
Simultaneous Multimodal Speech Translation
(speech → text translation during live lectures)
Slide Translation
using the Image Translator for image → image translation in slides
Related systems and references:
What the model is trained for:
What the model is not trained for:
If you want text in image or have noisy input, please try https://huggingface.co/skoneru/OmniFusion_v2
Make sure to send semantically complete phrase for Text in Image translation. Otherwise, expect the model to sometimes generate the full OCR or translation.
git clone https://github.com/saikoneru/OmniFusion
cd OmniFusion
Install all dependencies required by Qwen2.5-Omni-7B (listed on):
https://huggingface.co/Qwen/Qwen2.5-Omni-7B
Use transformers 4.56.1 (this version has been tested).
Additionally install gradio
pip install gradio
Run the following python code in the root directory of the repo.
from omni_fusion_model import OmniFusionModel
system = OmniFusionModel()
audio_path = "examples/speech.wav"
translations = system.translate(
audio_paths=[audio_path],
image_paths=[],
source_texts=[""],
target_lang="English",
)
print("Transcription:", translations[0])
translations = system.translate(
audio_paths=["examples/doctor.wav"],
image_paths=["examples/prescription.jpg"],
source_texts=[""],
target_lang="English",
)
print("Output:", translations[0])
image_path = "examples/label.png"
translations = system.translate(
audio_paths=[],
image_paths=[image_path],
source_texts=["this is a example"],
target_lang="English",
)
print("Translation:", translations[0])
Note:
source_textshould only be used when no audio is provided.
Ifaudio_pathscontains any audio input, thensource_textmust be an empty string ("") as it will be ignored.