Clone the repository:
git clone https://github.com/IntMeGroup/AIGVQA.git
Create and activate a conda environment:
conda create -n AIGVQA python=3.9 -y
conda activate AIGVQA
Install dependencies:
pip install -r requirements.txt
Install flash-attn==2.3.6 (pre-built):
pip install flash-attn==2.3.6 --no-build-isolation
Or compile from source:
git clone https://github.com/Dao-AILab/flash-attention.git
cd flash-attention
git checkout v2.3.6
python setup.py install
The Overall Score is calculated as:
AIGVQA_8B directory:cd AIGVQA_8B
export HF_ENDPOINT=https://hf-mirror.com
huggingface-cli download anonymousdb/LOVE-pretrain temporal.pth --local-dir ./
huggingface-cli download IntMeGroup/ICCVW_mos0_8B --local-dir ./IntMeGroup/ICCVW_mos0_8B
huggingface-cli download IntMeGroup/ICCVW_mos0_st222 --local-dir ./IntMeGroup/ICCVW_mos0_st222
"root": your_path_to_GenAIBench
GenAIBench
├── val
├── train
└── test
Run the evaluation script:
sh shell/eval_score_overall1.sh
sh shell/eval_score_overall2.sh
AIGVQA_26B directory:cd ..
cd AIGVQA_26B
export HF_ENDPOINT=https://hf-mirror.com
huggingface-cli download anonymousdb/LOVE-pretrain temporal.pth --local-dir ./
huggingface-cli download IntMeGroup/26B_mos0_20_ep49_6835 --local-dir ./IntMeGroup/26B_mos0_20_ep49_6835
huggingface-cli download IntMeGroup/26B_mos0_100_ep6_6802 --local-dir ./IntMeGroup/26B_mos0_100_ep6_6802
"root": your_path_to_GenAIBench
GenAIBench
├── val
├── train
└── test
Run the evaluation script:
sh shell/eval_score_overall3.sh
sh shell/eval_score_overall4.sh
After the evaluation you will get 4 score files
output_files = [
'AIGVQA_8B/weights/eval/mos0_1/mos0.csv',
'AIGVQA_8B/weights/eval/mos0_2/mos0.csv',
'AIGVQA_26B/weights/eval/mos0_3/mos0.csv',
'AIGVQA_26B/weights/eval/mos0_4/mos0.csv'
]
First delete the "test/" in the video_name colum and then sort the 4 .csv file according to the video_name.
Or you can simply run the python file to process the 4 .csv file
cd ..
python process_overall.py
you will get the prediction.xlsx
Traditional_MOS -- MOS1
Alignment_MOS -- MOS2
Aesthetic_MOS -- MOS3
Temporal_MOS --MOS4
AIGVQA_8B directory:cd AIGVQA_8B
export HF_ENDPOINT=https://hf-mirror.com
huggingface-cli download anonymousdb/LOVE-pretrain temporal.pth --local-dir ./
huggingface-cli download IntMeGroup/8B_mos1_ep200 --local-dir ./IntMeGroup/8B_mos1_ep200
huggingface-cli download IntMeGroup/ICCVW_mos3_8B --local-dir ./IntMeGroup/ICCVW_mos3_8B
huggingface-cli download IntMeGroup/ICCVW_mos4_8B --local-dir ./IntMeGroup/ICCVW_mos4_8B
"root": your_path_to_GenAIBench
GenAIBench
├── val
├── train
└── test
Run the evaluation script:
sh shell/eval_score_Traditional1.sh
sh shell/eval_score_Aesthetic1.sh
sh shell/eval_score_Temporal1.sh
AIGVQA_9B directory:cd ..
cd AIGVQA_9B
export HF_ENDPOINT=https://hf-mirror.com
huggingface-cli download anonymousdb/LOVE-pretrain temporal.pth --local-dir ./
huggingface-cli download IntMeGroup/ICCVW_st2_mos3 --local-dir ./IntMeGroup/ICCVW_st2_mos3
"root": your_path_to_GenAIBench
GenAIBench
├── val
├── train
└── test
Run the evaluation script:
sh shell/eval_score_Aesthetic2.sh
AIGVQA_26B directory:cd ..
cd AIGVQA_26B
export HF_ENDPOINT=https://hf-mirror.com
huggingface-cli download anonymousdb/LOVE-pretrain temporal.pth --local-dir ./
huggingface-cli download IntMeGroup/26B_mos1_ep2 --local-dir ./IntMeGroup/26B_mos1_ep2
huggingface-cli download IntMeGroup/26B_mos2_ep92 --local-dir ./IntMeGroup/26B_mos2_ep92
huggingface-cli download IntMeGroup/26B_mos2_100_ep16_6458 --local-dir ./IntMeGroup/26B_mos2_100_ep16_6458
huggingface-cli download IntMeGroup/26B_mos4_ep92 --local-dir ./IntMeGroup/26B_mos4_ep92
huggingface-cli download IntMeGroup/26B_mos4_20_ep33_8076 --local-dir ./IntMeGroup/26B_mos4_20_ep33_8076
"root": your_path_to_GenAIBench
GenAIBench
├── val
├── train
└── test
Run the evaluation script:
sh shell/eval_score_Traditional2.sh
sh shell/eval_score_Alignment1.sh
sh shell/eval_score_Alignment2.sh
sh shell/eval_score_Temporal2.sh
sh shell/eval_score_Temporal3.sh
After the evaluation you will get 9 score files
output_files = [
'AIGVQA_8B/weights/eval/mos1_1/mos1.csv',
'AIGVQA_8B/weights/eval/mos3_1/mos3.csv',
'AIGVQA_8B/weights/eval/mos4_1/mos4.csv',
'AIGVQA_9B/weights/eval/mos3_2/mos3.csv',
'AIGVQA_26B/weights/eval/mos1_2/mos1.csv'
'AIGVQA_26B/weights/eval/mos2_1/mos2.csv'
'AIGVQA_26B/weights/eval/mos2_2/mos2.csv'
'AIGVQA_26B/weights/eval/mos4_2/mos4.csv'
'AIGVQA_26B/weights/eval/mos4_3/mos4.csv'
]
First delete the "test/" in the video_name colum and then sort the 9 .csv file according to the video_name.
Or you can simply run the python file to process the 9 .csv file
cd ..
python process_track2.py
you will get the prediction.xlsx
63 commits
Python
96.0%
Shell
4.0%
Clone the repository:
git clone https://github.com/IntMeGroup/AIGVQA.git
Create and activate a conda environment:
conda create -n AIGVQA python=3.9 -y
conda activate AIGVQA
Install dependencies:
pip install -r requirements.txt
Install flash-attn==2.3.6 (pre-built):
pip install flash-attn==2.3.6 --no-build-isolation
Or compile from source:
git clone https://github.com/Dao-AILab/flash-attention.git
cd flash-attention
git checkout v2.3.6
python setup.py install
The Overall Score is calculated as:
AIGVQA_8B directory:cd AIGVQA_8B
export HF_ENDPOINT=https://hf-mirror.com
huggingface-cli download anonymousdb/LOVE-pretrain temporal.pth --local-dir ./
huggingface-cli download IntMeGroup/ICCVW_mos0_8B --local-dir ./IntMeGroup/ICCVW_mos0_8B
huggingface-cli download IntMeGroup/ICCVW_mos0_st222 --local-dir ./IntMeGroup/ICCVW_mos0_st222
"root": your_path_to_GenAIBench
GenAIBench
├── val
├── train
└── test
Run the evaluation script:
sh shell/eval_score_overall1.sh
sh shell/eval_score_overall2.sh
AIGVQA_26B directory:cd ..
cd AIGVQA_26B
export HF_ENDPOINT=https://hf-mirror.com
huggingface-cli download anonymousdb/LOVE-pretrain temporal.pth --local-dir ./
huggingface-cli download IntMeGroup/26B_mos0_20_ep49_6835 --local-dir ./IntMeGroup/26B_mos0_20_ep49_6835
huggingface-cli download IntMeGroup/26B_mos0_100_ep6_6802 --local-dir ./IntMeGroup/26B_mos0_100_ep6_6802
"root": your_path_to_GenAIBench
GenAIBench
├── val
├── train
└── test
Run the evaluation script:
sh shell/eval_score_overall3.sh
sh shell/eval_score_overall4.sh
After the evaluation you will get 4 score files
output_files = [
'AIGVQA_8B/weights/eval/mos0_1/mos0.csv',
'AIGVQA_8B/weights/eval/mos0_2/mos0.csv',
'AIGVQA_26B/weights/eval/mos0_3/mos0.csv',
'AIGVQA_26B/weights/eval/mos0_4/mos0.csv'
]
First delete the "test/" in the video_name colum and then sort the 4 .csv file according to the video_name.
Or you can simply run the python file to process the 4 .csv file
cd ..
python process_overall.py
you will get the prediction.xlsx
Traditional_MOS -- MOS1
Alignment_MOS -- MOS2
Aesthetic_MOS -- MOS3
Temporal_MOS --MOS4
AIGVQA_8B directory:cd AIGVQA_8B
export HF_ENDPOINT=https://hf-mirror.com
huggingface-cli download anonymousdb/LOVE-pretrain temporal.pth --local-dir ./
huggingface-cli download IntMeGroup/8B_mos1_ep200 --local-dir ./IntMeGroup/8B_mos1_ep200
huggingface-cli download IntMeGroup/ICCVW_mos3_8B --local-dir ./IntMeGroup/ICCVW_mos3_8B
huggingface-cli download IntMeGroup/ICCVW_mos4_8B --local-dir ./IntMeGroup/ICCVW_mos4_8B
"root": your_path_to_GenAIBench
GenAIBench
├── val
├── train
└── test
Run the evaluation script:
sh shell/eval_score_Traditional1.sh
sh shell/eval_score_Aesthetic1.sh
sh shell/eval_score_Temporal1.sh
AIGVQA_9B directory:cd ..
cd AIGVQA_9B
export HF_ENDPOINT=https://hf-mirror.com
huggingface-cli download anonymousdb/LOVE-pretrain temporal.pth --local-dir ./
huggingface-cli download IntMeGroup/ICCVW_st2_mos3 --local-dir ./IntMeGroup/ICCVW_st2_mos3
"root": your_path_to_GenAIBench
GenAIBench
├── val
├── train
└── test
Run the evaluation script:
sh shell/eval_score_Aesthetic2.sh
AIGVQA_26B directory:cd ..
cd AIGVQA_26B
export HF_ENDPOINT=https://hf-mirror.com
huggingface-cli download anonymousdb/LOVE-pretrain temporal.pth --local-dir ./
huggingface-cli download IntMeGroup/26B_mos1_ep2 --local-dir ./IntMeGroup/26B_mos1_ep2
huggingface-cli download IntMeGroup/26B_mos2_ep92 --local-dir ./IntMeGroup/26B_mos2_ep92
huggingface-cli download IntMeGroup/26B_mos2_100_ep16_6458 --local-dir ./IntMeGroup/26B_mos2_100_ep16_6458
huggingface-cli download IntMeGroup/26B_mos4_ep92 --local-dir ./IntMeGroup/26B_mos4_ep92
huggingface-cli download IntMeGroup/26B_mos4_20_ep33_8076 --local-dir ./IntMeGroup/26B_mos4_20_ep33_8076
"root": your_path_to_GenAIBench
GenAIBench
├── val
├── train
└── test
Run the evaluation script:
sh shell/eval_score_Traditional2.sh
sh shell/eval_score_Alignment1.sh
sh shell/eval_score_Alignment2.sh
sh shell/eval_score_Temporal2.sh
sh shell/eval_score_Temporal3.sh
After the evaluation you will get 9 score files
output_files = [
'AIGVQA_8B/weights/eval/mos1_1/mos1.csv',
'AIGVQA_8B/weights/eval/mos3_1/mos3.csv',
'AIGVQA_8B/weights/eval/mos4_1/mos4.csv',
'AIGVQA_9B/weights/eval/mos3_2/mos3.csv',
'AIGVQA_26B/weights/eval/mos1_2/mos1.csv'
'AIGVQA_26B/weights/eval/mos2_1/mos2.csv'
'AIGVQA_26B/weights/eval/mos2_2/mos2.csv'
'AIGVQA_26B/weights/eval/mos4_2/mos4.csv'
'AIGVQA_26B/weights/eval/mos4_3/mos4.csv'
]
First delete the "test/" in the video_name colum and then sort the 9 .csv file according to the video_name.
Or you can simply run the python file to process the 9 .csv file
cd ..
python process_track2.py
you will get the prediction.xlsx
63 commits
Python
96.0%
Shell
4.0%