great work! I am wondering can you provide code for i2t inference? There is only code for t2i inference now(scripts/run_t2i.sh)
Activity
QuLiao1117 commentedon Dec 20, 2024
The i2t of TokenFlow is built on LLaVA, so you can directly use lmms-eval for inference and evaluation.
Specifically,
python3 -m accelerate.commands.launch \ --num_processes=8 \ -m lmms_eval \ --model llava \ --model_args pretrained="ByteFlow-AI/Tokenflow-llava-qwen2.5-14B-finetuning" \ --tasks mme \ --batch_size 1 \ --log_samples \ --log_samples_suffix llava_v1.5_mme \ --output_path ./logs/ # you can also change the `--model_args pretrained=` to local path of your model.Things might need to be modified:
lmms_eval/models/llava.pypkulium commentedon Dec 20, 2024
Thank you for your reply. Yes, I have used lmms-eval before. I am wondering if there is code available to run inference on a single image of my own?
QuLiao1117 commentedon Dec 24, 2024
This repo does not support this feature currently. PR is welcomed to enable this.