mirror of
https://github.com/deepseek-ai/DeepSeek-VL2
synced 2025-01-22 12:25:32 +00:00
fix example
This commit is contained in:
parent
6036493d83
commit
cd4bb743e2
18
README.md
18
README.md
@ -124,24 +124,6 @@ conversation = [
|
|||||||
{"role": "<|Assistant|>", "content": ""},
|
{"role": "<|Assistant|>", "content": ""},
|
||||||
]
|
]
|
||||||
|
|
||||||
## multiple images (or in-context learning) conversation example
|
|
||||||
# conversation = [
|
|
||||||
# {
|
|
||||||
# "role": "User",
|
|
||||||
# "content": "<image_placeholder>A dog wearing nothing in the foreground, "
|
|
||||||
# "<image_placeholder>a dog wearing a santa hat, "
|
|
||||||
# "<image_placeholder>a dog wearing a wizard outfit, and "
|
|
||||||
# "<image_placeholder>what's the dog wearing?",
|
|
||||||
# "images": [
|
|
||||||
# "images/dog_a.png",
|
|
||||||
# "images/dog_b.png",
|
|
||||||
# "images/dog_c.png",
|
|
||||||
# "images/dog_d.png",
|
|
||||||
# ],
|
|
||||||
# },
|
|
||||||
# {"role": "Assistant", "content": ""}
|
|
||||||
# ]
|
|
||||||
|
|
||||||
# load images and prepare for inputs
|
# load images and prepare for inputs
|
||||||
pil_images = load_pil_images(conversation)
|
pil_images = load_pil_images(conversation)
|
||||||
prepare_inputs = vl_chat_processor(
|
prepare_inputs = vl_chat_processor(
|
||||||
|
Loading…
Reference in New Issue
Block a user