Upload infer_qwen2_vl.py with huggingface_hub
Browse files- infer_qwen2_vl.py +5 -5
infer_qwen2_vl.py
CHANGED
|
@@ -28,10 +28,10 @@ import glob
|
|
| 28 |
from PIL import Image
|
| 29 |
import argparse
|
| 30 |
|
| 31 |
-
parser = argparse.ArgumentParser(description="Process a dataset with specific index range.")
|
| 32 |
-
parser.add_argument("--batch_size", type=int, default = 1,help="batch size")
|
| 33 |
-
#parser.add_argument("--index", type=int, default = 0,help="index")
|
| 34 |
-
args = parser.parse_args()
|
| 35 |
|
| 36 |
|
| 37 |
folder = "/inspire/hdd/ws-ba572160-47f8-4ca1-984e-d6bcdeb95dbb/a100-maybe/albus/ICCV_2025/qvq/dataset"
|
|
@@ -43,7 +43,7 @@ for img_path in glob.glob(f"{folder}/*.jpe"):
|
|
| 43 |
|
| 44 |
num_image = len(images)
|
| 45 |
print(f"beigin : {begin}, end : {end}, batch_size : {batch_size}")
|
| 46 |
-
begin, end, batch_size= 0, 10,
|
| 47 |
messages = [
|
| 48 |
{
|
| 49 |
"role": "system",
|
|
|
|
| 28 |
from PIL import Image
|
| 29 |
import argparse
|
| 30 |
|
| 31 |
+
# parser = argparse.ArgumentParser(description="Process a dataset with specific index range.")
|
| 32 |
+
# parser.add_argument("--batch_size", type=int, default = 1,help="batch size")
|
| 33 |
+
# #parser.add_argument("--index", type=int, default = 0,help="index")
|
| 34 |
+
# args = parser.parse_args()
|
| 35 |
|
| 36 |
|
| 37 |
folder = "/inspire/hdd/ws-ba572160-47f8-4ca1-984e-d6bcdeb95dbb/a100-maybe/albus/ICCV_2025/qvq/dataset"
|
|
|
|
| 43 |
|
| 44 |
num_image = len(images)
|
| 45 |
print(f"beigin : {begin}, end : {end}, batch_size : {batch_size}")
|
| 46 |
+
begin, end, batch_size= 0, 10, 2
|
| 47 |
messages = [
|
| 48 |
{
|
| 49 |
"role": "system",
|