## Implementation
The following section provides CHAIR evaluation scripts and instructions for each model.

  ### Prerequisite
  ```
  bash prerequisites/download_coco.sh
  ```
  ### LLaVA1.5
  **Environment setup**
  ```
  conda env create -f LLaVA1.5/ReVisiT_LLaVA.yaml
  conda activate revisit_llava
  pip install numpy==1.26.4
  cd LLaVA1.5/data/transformers-v4.31.0
  pip install -e .
  cd ../../..

  python prerequisites/download_from_huggingface.py --model llava
  ```
  **CHAIR Evaluation**
  ```
  cd LLaVA1.5
  bash eval_chair_llava.sh
  ```

  ### Qwen2.5-VL
  **Environment setup**
  ```
  conda env create -f Qwen2.5-VL/ReVisiT_Qwen.yaml
  conda activate revisit_qwen
  cd Qwen2.5-VL/data/transformers-v4.50.0
  pip install -e .
  cd ../../..

  python prerequisites/download_from_huggingface.py --model qwen
  ```
  **CHAIR Evaluation**
  ```
  cd Qwen2.5-VL
  bash eval_chair_qwenvl.sh
  ```