Skip to content

Commit

Permalink
[Fix] Update requirements
Browse files Browse the repository at this point in the history
  • Loading branch information
kennymckormick committed Dec 15, 2024
1 parent 88f1746 commit 5787b85
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
9 changes: 4 additions & 5 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,12 @@ gradio
huggingface_hub
imageio
matplotlib
numpy>=1.23.4
numpy
omegaconf
openai==1.3.5
openai
opencv-python>=4.4.0.46
openpyxl
pandas
peft
pillow
portalocker
protobuf
Expand All @@ -23,9 +22,9 @@ sty
tabulate
tiktoken
timeout-decorator
torch>=2.0.1
torch
tqdm
transformers
typing_extensions==4.7.1
typing_extensions
validators
xlsxwriter
3 changes: 2 additions & 1 deletion vlmeval/vlm/video_llm/videochat2.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
from PIL import Image
from torchvision.transforms import PILToTensor
from torchvision import transforms
from peft import get_peft_model, LoraConfig, TaskType
from ..base import BaseModel
from ...smp import *
from ...dataset import DATASET_TYPE
Expand Down Expand Up @@ -65,6 +64,8 @@ class VideoChat2_HD(BaseModel):
def __init__(self, model_path='OpenGVLab/VideoChat2_HD_stage4_Mistral_7B',
root='./Ask-Anything', config_file='./configs/videochat2_hd.json',
**kwargs):

from peft import get_peft_model, LoraConfig, TaskType
self.config_file = config_file
self.root = root
self.model_path = model_path
Expand Down

0 comments on commit 5787b85

Please sign in to comment.