mirror of
https://github.com/deepseek-ai/DeepSeek-VL
synced 2025-06-26 18:27:43 +00:00
update
This commit is contained in:
@@ -153,8 +153,8 @@ pip install -r requirements.txt -e .
|
|||||||
import torch
|
import torch
|
||||||
from transformers import AutoModelForCausalLM
|
from transformers import AutoModelForCausalLM
|
||||||
|
|
||||||
from deepseek_vlm.models import VLChatProcessor, MultiModalityCausalLM
|
from deepseek_vl.models import VLChatProcessor, MultiModalityCausalLM
|
||||||
from deepseek_vlm.utils.io import load_pil_images
|
from deepseek_vl.utils.io import load_pil_images
|
||||||
|
|
||||||
|
|
||||||
# specify the path to the model
|
# specify the path to the model
|
||||||
|
|||||||
@@ -148,7 +148,8 @@ def chat(args, tokenizer, vl_chat_processor, vl_gpt, generation_config):
|
|||||||
|
|
||||||
sys.stdout.write("\n")
|
sys.stdout.write("\n")
|
||||||
sys.stdout.flush()
|
sys.stdout.flush()
|
||||||
conv.messages[-1][-1] = answer
|
conv.update_last_message(answer)
|
||||||
|
# conv.messages[-1][-1] = answer
|
||||||
|
|
||||||
|
|
||||||
def main(args):
|
def main(args):
|
||||||
|
|||||||
@@ -150,7 +150,6 @@ class VLMImageProcessor(BaseImageProcessor):
|
|||||||
return [3, self.image_size, self.image_size]
|
return [3, self.image_size, self.image_size]
|
||||||
|
|
||||||
|
|
||||||
# AutoConfig.register("deepseek_vlm", VLMImageProcessorConfig)
|
|
||||||
AutoImageProcessor.register(VLMImageProcessorConfig, VLMImageProcessor)
|
AutoImageProcessor.register(VLMImageProcessorConfig, VLMImageProcessor)
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user