Spaces:
Running
on
Zero
Running
on
Zero
Update llava_llama3/serve/cli.py
Browse files
llava_llama3/serve/cli.py
CHANGED
@@ -33,9 +33,9 @@ def chat_llava(args, image_file, text, tokenizer, model, image_processor, contex
|
|
33 |
conv = conv_templates[args.conv_mode].copy()
|
34 |
roles = conv.roles
|
35 |
|
36 |
-
print(image_file,type(image_file))
|
37 |
image = load_image(image_file)
|
38 |
-
print(image,type(image))
|
39 |
|
40 |
image_size = image.size
|
41 |
image_tensor = process_images([image], image_processor, model.config)
|
|
|
33 |
conv = conv_templates[args.conv_mode].copy()
|
34 |
roles = conv.roles
|
35 |
|
36 |
+
print(f"\033[91m{image_file}, {type(image_file)}\033[0m")
|
37 |
image = load_image(image_file)
|
38 |
+
print(f"\033[91m{image}, {type(image)}\033[0m")
|
39 |
|
40 |
image_size = image.size
|
41 |
image_tensor = process_images([image], image_processor, model.config)
|