50 lines
7.3 KiB
Plaintext
50 lines
7.3 KiB
Plaintext
INFO:baidu_bos_manager:✅ BOS连接测试成功
|
||
INFO:baidu_bos_manager:✅ BOS客户端初始化成功: dmtyz-demo
|
||
INFO:mongodb_manager:✅ MongoDB连接成功: mmeb
|
||
INFO:mongodb_manager:✅ MongoDB索引创建完成
|
||
INFO:__main__:初始化多模态检索系统...
|
||
INFO:multimodal_retrieval_local:使用GPU: [0, 1]
|
||
INFO:multimodal_retrieval_local:加载本地模型和处理器: /root/models/Ops-MM-embedding-v1-7B
|
||
The image processor of type `Qwen2VLImageProcessor` is now loaded as a fast processor by default, even if the model checkpoint was saved with a slow processor. This is a breaking change and may produce slightly different outputs. To continue using the slow processor, instantiate this class with `use_fast=False`. Note that this behavior will be extended to all models in a future release.
|
||
You have video processor config saved in `preprocessor.json` file which is deprecated. Video processor configs should be saved in their own `video_preprocessor.json` file. You can rename the file or load and save the processor back which renames it automatically. Loading from `preprocessor.json` will be removed in v5.0.
|
||
INFO:multimodal_retrieval_local:Processor类型: <class 'transformers.models.qwen2_vl.processing_qwen2_vl.Qwen2VLProcessor'>
|
||
INFO:multimodal_retrieval_local:Processor方法: ['__annotations__', '__call__', '__class__', '__delattr__', '__dict__', '__dir__', '__doc__', '__eq__', '__format__', '__ge__', '__getattribute__', '__gt__', '__hash__', '__init__', '__init_subclass__', '__le__', '__lt__', '__module__', '__ne__', '__new__', '__reduce__', '__reduce_ex__', '__repr__', '__setattr__', '__sizeof__', '__str__', '__subclasshook__', '__weakref__', '_auto_class', '_check_special_mm_tokens', '_create_repo', '_get_arguments_from_pretrained', '_get_files_timestamps', '_get_num_multimodal_tokens', '_merge_kwargs', '_upload_modified_files', 'apply_chat_template', 'attributes', 'audio_tokenizer', 'batch_decode', 'chat_template', 'check_argument_for_proper_class', 'decode', 'feature_extractor_class', 'from_args_and_dict', 'from_pretrained', 'get_possibly_dynamic_module', 'get_processor_dict', 'image_processor', 'image_processor_class', 'image_token', 'image_token_id', 'model_input_names', 'optional_attributes', 'optional_call_args', 'post_process_image_text_to_text', 'push_to_hub', 'register_for_auto_class', 'save_pretrained', 'to_dict', 'to_json_file', 'to_json_string', 'tokenizer', 'tokenizer_class', 'validate_init_kwargs', 'video_processor', 'video_processor_class', 'video_token', 'video_token_id']
|
||
INFO:multimodal_retrieval_local:Image processor类型: <class 'transformers.models.qwen2_vl.image_processing_qwen2_vl_fast.Qwen2VLImageProcessorFast'>
|
||
INFO:multimodal_retrieval_local:Image processor方法: ['__backends', '__call__', '__class__', '__delattr__', '__dict__', '__dir__', '__doc__', '__eq__', '__format__', '__ge__', '__getattribute__', '__gt__', '__hash__', '__init__', '__init_subclass__', '__le__', '__lt__', '__module__', '__ne__', '__new__', '__reduce__', '__reduce_ex__', '__repr__', '__setattr__', '__sizeof__', '__slotnames__', '__str__', '__subclasshook__', '__weakref__', '_auto_class', '_create_repo', '_further_process_kwargs', '_fuse_mean_std_and_rescale_factor', '_get_files_timestamps', '_prepare_image_like_inputs', '_prepare_images_structure', '_preprocess', '_preprocess_image_like_inputs', '_process_image', '_processor_class', '_set_processor_class', '_upload_modified_files', '_valid_kwargs_names', '_validate_preprocess_kwargs', 'center_crop', 'compile_friendly_resize', 'convert_to_rgb', 'crop_size', 'data_format', 'default_to_square', 'device', 'disable_grouping', 'do_center_crop', 'do_convert_rgb', 'do_normalize', 'do_rescale', 'do_resize', 'fetch_images', 'filter_out_unused_kwargs', 'from_dict', 'from_json_file', 'from_pretrained', 'get_image_processor_dict', 'get_number_of_image_patches', 'image_mean', 'image_processor_type', 'image_std', 'input_data_format', 'max_pixels', 'merge_size', 'min_pixels', 'model_input_names', 'normalize', 'patch_size', 'preprocess', 'push_to_hub', 'register_for_auto_class', 'resample', 'rescale', 'rescale_and_normalize', 'rescale_factor', 'resize', 'return_tensors', 'save_pretrained', 'size', 'temporal_patch_size', 'to_dict', 'to_json_file', 'to_json_string', 'unused_kwargs', 'valid_kwargs']
|
||
|
||
Loading checkpoint shards: 0%| | 0/4 [00:00<?, ?it/s]
|
||
Loading checkpoint shards: 25%|██▌ | 1/4 [03:03<09:10, 183.40s/it]
|
||
Loading checkpoint shards: 50%|█████ | 2/4 [04:55<04:43, 141.63s/it]
|
||
Loading checkpoint shards: 75%|███████▌ | 3/4 [06:56<02:12, 132.26s/it]
|
||
Loading checkpoint shards: 100%|██████████| 4/4 [07:13<00:00, 86.72s/it]
|
||
Loading checkpoint shards: 100%|██████████| 4/4 [07:13<00:00, 108.47s/it]
|
||
INFO:multimodal_retrieval_local:向量维度: 3584
|
||
INFO:multimodal_retrieval_local:模型和处理器加载成功
|
||
INFO:multimodal_retrieval_local:加载现有索引: /root/mmeb/local_faiss_index.index
|
||
INFO:multimodal_retrieval_local:索引加载成功,包含0个向量
|
||
INFO:multimodal_retrieval_local:元数据加载成功,包含0条记录
|
||
INFO:multimodal_retrieval_local:多模态检索系统初始化完成,使用本地模型: /root/models/Ops-MM-embedding-v1-7B
|
||
INFO:multimodal_retrieval_local:向量存储路径: /root/mmeb/local_faiss_index
|
||
INFO:__main__:多模态检索系统初始化完成
|
||
* Serving Flask app 'web_app_local'
|
||
* Debug mode: off
|
||
INFO:werkzeug:[31m[1mWARNING: This is a development server. Do not use it in a production deployment. Use a production WSGI server instead.[0m
|
||
* Running on all addresses (0.0.0.0)
|
||
* Running on http://127.0.0.1:5000
|
||
* Running on http://192.168.48.82:5000
|
||
INFO:werkzeug:[33mPress CTRL+C to quit[0m
|
||
INFO:werkzeug:127.0.0.1 - - [22/Sep/2025 04:02:23] "GET / HTTP/1.1" 200 -
|
||
INFO:werkzeug:127.0.0.1 - - [22/Sep/2025 04:02:23] "GET /api/system_info HTTP/1.1" 200 -
|
||
INFO:werkzeug:127.0.0.1 - - [22/Sep/2025 04:02:24] "GET /api/system_info HTTP/1.1" 200 -
|
||
INFO:__main__:处理图像: 微信图片_20250910164839_1_13.jpg (99396 字节)
|
||
INFO:__main__:成功加载图像: 20250910164839_1_13.jpg, 格式: JPEG, 模式: RGB, 大小: (939, 940)
|
||
INFO:multimodal_retrieval_local:add_images: 开始添加图像,数量: 1
|
||
INFO:multimodal_retrieval_local:add_images: 编码图像
|
||
INFO:multimodal_retrieval_local:encode_image: 开始编码图像,类型: <class 'list'>
|
||
INFO:multimodal_retrieval_local:encode_image: 图像列表,长度: 1
|
||
INFO:multimodal_retrieval_local:encode_image: 处理图像输入
|
||
INFO:multimodal_retrieval_local:encode_image: 图像 0 格式: JPEG, 模式: RGB, 大小: (939, 940)
|
||
ERROR:multimodal_retrieval_local:encode_image: 处理图像时出错: argument of type 'NoneType' is not iterable
|
||
ERROR:multimodal_retrieval_local:add_images: 图像编码失败,返回空数组
|
||
INFO:multimodal_retrieval_local:索引保存成功: /root/mmeb/local_faiss_index.index
|
||
INFO:multimodal_retrieval_local:元数据保存成功: /root/mmeb/local_faiss_index_metadata.json
|
||
INFO:werkzeug:127.0.0.1 - - [22/Sep/2025 04:02:50] "POST /api/add_image HTTP/1.1" 200 -
|
||
INFO:multimodal_retrieval_local:索引保存成功: /root/mmeb/local_faiss_index.index
|
||
INFO:multimodal_retrieval_local:元数据保存成功: /root/mmeb/local_faiss_index_metadata.json
|
||
INFO:werkzeug:127.0.0.1 - - [22/Sep/2025 04:02:50] "POST /api/save_index HTTP/1.1" 200 -
|
||
INFO:werkzeug:127.0.0.1 - - [22/Sep/2025 04:02:51] "GET /api/system_info HTTP/1.1" 200 -
|