Skip to content

Commit

Permalink
update deepseek_vl import check
Browse files Browse the repository at this point in the history
  • Loading branch information
kennymckormick committed Mar 21, 2024
1 parent 2c1a5ed commit ad68b36
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions vlmeval/vlm/deepseek_vl.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,17 @@
import torch
from transformers import AutoModelForCausalLM
import warnings
from vlmeval.smp import isimg, pip_install_robust
from vlmeval.smp import isimg


class DeepSeekVL:

INSTALL_REQ = True

def check_install(self):
installed = pip_install_robust('deepseek_vl')
if not installed:
try:
import deepseek_vl
except ImportError:
warnings.warn(
'Please first install deepseek_vl from source codes in: https://github.com/deepseek-ai/DeepSeek-VL')
sys.exit(-1)
Expand Down

0 comments on commit ad68b36

Please sign in to comment.