Source code of paper "Detecting Knowledge Boundary of Vision Large Language Models by Sampling-Based Inference"
# python=3.11
pip install -r requirements.txtWe recommand using cuda=12.1 to prevent potential issues of version conflicts, and our experiments are conducted on NVIDIA A100-SXM4-80GB.
Training data to training/training_data
Evaluation data to evaluation/eval_data
Refer to training/scripts
Refer to src/eval_KB_model.py (Qwen) and src/eval_ds_KB_model.py (DeepSeek)
Refer to evaluation/scripts
