|
2025-08-18 23:33:42 - INFO - Loading model: LiquidAI/LFM2-VL-1.6B |
|
2025-08-18 23:33:43 - INFO - We will use 90 |
|
2025-08-18 23:33:49 - INFO - Model loaded in 7.34 seconds |
|
2025-08-18 23:33:49 - INFO - GPU Memory Usage after model load: 3023.64 MB |
|
2025-08-18 23:33:54 - INFO - [c448d9a9-b14c-4a05-a6b6-67879d899cd1] Received new video inference request. Prompt: 'Please describe the video.', Video: 'messi_part_001.mp4' |
|
2025-08-18 23:33:54 - INFO - [c448d9a9-b14c-4a05-a6b6-67879d899cd1] Video saved to temporary file: temp_videos/c448d9a9-b14c-4a05-a6b6-67879d899cd1.mp4 |
|
2025-08-18 23:33:54 - INFO - [c448d9a9-b14c-4a05-a6b6-67879d899cd1] Extracting frames using method: uniform, rate/threshold: 30 |
|
2025-08-18 23:33:57 - INFO - [c448d9a9-b14c-4a05-a6b6-67879d899cd1] Extracted 30 frames successfully. Saving to temporary files... |
|
2025-08-18 23:33:57 - INFO - [c448d9a9-b14c-4a05-a6b6-67879d899cd1] 30 frames saved to temp_videos/c448d9a9-b14c-4a05-a6b6-67879d899cd1 |
|
2025-08-18 23:33:57 - ERROR - [c448d9a9-b14c-4a05-a6b6-67879d899cd1] An error occurred during processing: Incorrect format used for image. Should be an url linking to an image, a base64 string, a local path, or a PIL image. |
|
Traceback (most recent call last): |
|
File "/mnt/data/xiuying/Code/local_deploy/infer.py", line 107, in video_inference |
|
output = model.generate(frame_paths, prompt) |
|
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
|
File "/mnt/data/xiuying/Code/local_deploy/models/lfm.py", line 52, in generate |
|
inputs = self.processor.apply_chat_template( |
|
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
|
File "/home/xiuying/miniconda3/envs/gptq/lib/python3.11/site-packages/transformers/utils/deprecation.py", line 172, in wrapped_func |
|
return func(*args, **kwargs) |
|
^^^^^^^^^^^^^^^^^^^^^ |
|
File "/home/xiuying/miniconda3/envs/gptq/lib/python3.11/site-packages/transformers/processing_utils.py", line 1552, in apply_chat_template |
|
images.append(load_image(fname)) |
|
^^^^^^^^^^^^^^^^^ |
|
File "/home/xiuying/miniconda3/envs/gptq/lib/python3.11/site-packages/transformers/image_utils.py", line 493, in load_image |
|
raise TypeError( |
|
TypeError: Incorrect format used for image. Should be an url linking to an image, a base64 string, a local path, or a PIL image. |
|
2025-08-18 23:33:57 - INFO - [c448d9a9-b14c-4a05-a6b6-67879d899cd1] Cleaned up temporary file: temp_videos/c448d9a9-b14c-4a05-a6b6-67879d899cd1.mp4 |
|
2025-08-18 23:33:57 - INFO - [c448d9a9-b14c-4a05-a6b6-67879d899cd1] Cleaned up temporary frame directory: temp_videos/c448d9a9-b14c-4a05-a6b6-67879d899cd1 |
|
|