weizhiwang
commited on
Commit
•
fdc1361
1
Parent(s):
df3261c
Update README.md
Browse files
README.md
CHANGED
@@ -48,7 +48,7 @@ prompt = conv.get_prompt()
|
|
48 |
input_ids = tokenizer_image_token(prompt, tokenizer, -200, return_tensors='pt').unsqueeze(0).cuda()
|
49 |
|
50 |
# prepare image input
|
51 |
-
url = "https://
|
52 |
response = requests.get(url)
|
53 |
image = Image.open(BytesIO(response.content)).convert('RGB')
|
54 |
image_tensor = image_processor.preprocess(image, return_tensors='pt')['pixel_values'].half().cuda()
|
|
|
48 |
input_ids = tokenizer_image_token(prompt, tokenizer, -200, return_tensors='pt').unsqueeze(0).cuda()
|
49 |
|
50 |
# prepare image input
|
51 |
+
url = "https://huggingface.co/adept/fuyu-8b/resolve/main/bus.png"
|
52 |
response = requests.get(url)
|
53 |
image = Image.open(BytesIO(response.content)).convert('RGB')
|
54 |
image_tensor = image_processor.preprocess(image, return_tensors='pt')['pixel_values'].half().cuda()
|