Upload infer_1.py with huggingface_hub
Browse files- infer_1.py +2 -0
infer_1.py
CHANGED
|
@@ -1,6 +1,8 @@
|
|
| 1 |
from transformers import Qwen2_5_VLForConditionalGeneration, AutoProcessor
|
| 2 |
from qwen_vl_utils import process_vision_info
|
| 3 |
import json
|
|
|
|
|
|
|
| 4 |
|
| 5 |
def read_json(file_path):
|
| 6 |
with open(file_path, 'r', encoding='utf-8') as file:
|
|
|
|
| 1 |
from transformers import Qwen2_5_VLForConditionalGeneration, AutoProcessor
|
| 2 |
from qwen_vl_utils import process_vision_info
|
| 3 |
import json
|
| 4 |
+
from tqdm import tqdm
|
| 5 |
+
import os
|
| 6 |
|
| 7 |
def read_json(file_path):
|
| 8 |
with open(file_path, 'r', encoding='utf-8') as file:
|