Upload folder using huggingface_hub
Browse filesThis view is limited to 50 files because it contains too many changes.
See raw diff
- csv/check.py +545 -0
- csv/entity/GPT.csv +0 -0
- csv/entity/GPT_4o-pipeline.csv +0 -0
- csv/entity/Gemini.csv +0 -0
- csv/entity/Gemini_4o-pipeline.csv +0 -0
- csv/entity/GoT.csv +0 -0
- csv/entity/GoT_4o-pipeline.csv +0 -0
- csv/entity/bagel.csv +0 -0
- csv/entity/bagel_4o-pipeline.csv +0 -0
- csv/entity/emu3.csv +0 -0
- csv/entity/emu3_4o-pipeline.csv +0 -0
- csv/entity/flux1-dev copy.csv +0 -0
- csv/entity/flux1-dev.csv +0 -0
- csv/entity/flux1-dev_4o-pipeline copy.csv +0 -0
- csv/entity/flux1-dev_4o-pipeline.csv +0 -0
- csv/entity/flux1-schnell.csv +0 -0
- csv/entity/flux1-schnell_4o-pipeline.csv +0 -0
- csv/entity/hidream.csv +0 -0
- csv/entity/hidream_4o-pipeline.csv +0 -0
- csv/entity/janus_pro_7B.csv +0 -0
- csv/entity/janus_pro_7B_4o-pipeline.csv +0 -0
- csv/entity/nano_banana.csv +0 -0
- csv/entity/nano_banana_4o-pipeline.csv +0 -0
- csv/entity/nano_banana_old.csv +0 -0
- csv/entity/playground-v25.csv +0 -0
- csv/entity/playground-v25_4o-pipeline.csv +0 -0
- csv/entity/qwen_image.csv +0 -0
- csv/entity/qwen_image_4o-pipeline.csv +0 -0
- csv/entity/sd30_medium.csv +0 -0
- csv/entity/sd30_medium_4o-pipeline.csv +0 -0
- csv/entity/sd35_large.csv +0 -0
- csv/entity/sd35_large_4o-pipeline.csv +0 -0
- csv/entity/sd35_medium.csv +0 -0
- csv/entity/sd35_medium_4o-pipeline.csv +0 -0
- csv/entity/show-o-512.csv +0 -0
- csv/entity/show-o-512_4o-pipeline.csv +0 -0
- csv/entity/xxxflux1-schnell.csv +0 -0
- csv/entity/xxxflux1-schnell_4o-pipeline.csv +0 -0
- csv/entity/xxxsd35_large.csv +0 -0
- csv/entity/xxxsd35_large_4o-pipeline.csv +0 -0
- csv/idiom/GPT.csv +0 -0
- csv/idiom/GPT_4o-pipeline.csv +0 -0
- csv/idiom/Gemini.csv +0 -0
- csv/idiom/Gemini_4o-pipeline.csv +0 -0
- csv/idiom/GoT.csv +0 -0
- csv/idiom/GoT_4o-pipeline.csv +0 -0
- csv/idiom/bagel.csv +0 -0
- csv/idiom/bagel_4o-pipeline.csv +0 -0
- csv/idiom/csv_tidyup.py +27 -0
- csv/idiom/emu3.csv +0 -0
csv/check.py
ADDED
|
@@ -0,0 +1,545 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# check evaluated number of images
|
| 2 |
+
# check score in list, score 0, 0.5, 1
|
| 3 |
+
# check total score_alignment, score_quality
|
| 4 |
+
|
| 5 |
+
import csv
|
| 6 |
+
import os
|
| 7 |
+
import ast
|
| 8 |
+
|
| 9 |
+
csv_file = 'your_file.csv'
|
| 10 |
+
folder_path = 'your_folder'
|
| 11 |
+
|
| 12 |
+
|
| 13 |
+
def check(csv_file, image_folder, s1, s2, s3, s4, s5):
|
| 14 |
+
print(f"###################{csv_file}#######################")
|
| 15 |
+
# 1. Count CSV rows (excluding header)
|
| 16 |
+
with open(csv_file, newline='') as f:
|
| 17 |
+
reader = list(csv.DictReader(f))
|
| 18 |
+
num_rows = len(reader)
|
| 19 |
+
|
| 20 |
+
# 2. Count files in folder
|
| 21 |
+
num_files = len([name for name in os.listdir(image_folder) if name.endswith('.png') or name.endswith('.jpg')])
|
| 22 |
+
|
| 23 |
+
print(f"CSV rows: {num_rows}, Files in folder: {num_files}")
|
| 24 |
+
if num_rows != num_files:
|
| 25 |
+
print("Row and image count do not match!")
|
| 26 |
+
else:
|
| 27 |
+
print("Row and image count match.")
|
| 28 |
+
|
| 29 |
+
# 3. Check 's1', 's2', 's3' columns and calculate averages
|
| 30 |
+
valid_values = {0, 0.5, 1}
|
| 31 |
+
s1_averages, s2_averages, s3_averages = [], [], []
|
| 32 |
+
invalid_rows = []
|
| 33 |
+
|
| 34 |
+
s4_values, s5_values = [], []
|
| 35 |
+
invalid_s4_s5_rows = []
|
| 36 |
+
|
| 37 |
+
for idx, row in enumerate(reader):
|
| 38 |
+
valid_row = True
|
| 39 |
+
row_avgs = []
|
| 40 |
+
for col in [s1, s2, s3]:
|
| 41 |
+
|
| 42 |
+
vals = ast.literal_eval(row[col]) # Parse the list
|
| 43 |
+
if not isinstance(vals, list):
|
| 44 |
+
# raise ValueError # not list
|
| 45 |
+
valid_row = False
|
| 46 |
+
if not all(v in valid_values for v in vals):
|
| 47 |
+
valid_row = False # not 0, 0.5, or 1
|
| 48 |
+
else:
|
| 49 |
+
avg = sum(vals) / len(vals) if vals else 0
|
| 50 |
+
row_avgs.append(avg)
|
| 51 |
+
if not valid_row:
|
| 52 |
+
invalid_rows.append(idx+2) # +2 for header and 0-indexing
|
| 53 |
+
if valid_row:
|
| 54 |
+
s1_averages.append(row_avgs[0])
|
| 55 |
+
s2_averages.append(row_avgs[1])
|
| 56 |
+
s3_averages.append(row_avgs[2])
|
| 57 |
+
|
| 58 |
+
# Check s4 and s5
|
| 59 |
+
s4_ok = float(row[s4])<=1.0 and float(row[s4])>=0.0
|
| 60 |
+
s5_ok = float(row[s5])<=1.0 and float(row[s5])>=0.0
|
| 61 |
+
if s4_ok and s5_ok:
|
| 62 |
+
s4_values.append(float(row[s4]))
|
| 63 |
+
s5_values.append(float(row[s5]))
|
| 64 |
+
else:
|
| 65 |
+
invalid_s4_s5_rows.append(idx+2)
|
| 66 |
+
print(type(float(row[s4])))
|
| 67 |
+
|
| 68 |
+
|
| 69 |
+
if invalid_rows:
|
| 70 |
+
print(f"Invalid rows in 's1', 's2', or 's3': {invalid_rows}")
|
| 71 |
+
else:
|
| 72 |
+
print("All rows in 's1', 's2', and 's3' are valid.")
|
| 73 |
+
|
| 74 |
+
if invalid_s4_s5_rows:
|
| 75 |
+
print(f"Invalid rows in 's4' or 's5': {invalid_s4_s5_rows}")
|
| 76 |
+
else:
|
| 77 |
+
print("All rows in 's4' and 's5' are valid.")
|
| 78 |
+
|
| 79 |
+
overall_s1_avg = sum(s1_averages) / len(s1_averages) if s1_averages else 0
|
| 80 |
+
overall_s2_avg = sum(s2_averages) / len(s2_averages) if s2_averages else 0
|
| 81 |
+
overall_s3_avg = sum(s3_averages) / len(s3_averages) if s3_averages else 0
|
| 82 |
+
|
| 83 |
+
print(f"Average for s1: {overall_s1_avg:.3f}")
|
| 84 |
+
print(f"Average for s2: {overall_s2_avg:.3f}")
|
| 85 |
+
print(f"Average for s3: {overall_s3_avg:.3f}")
|
| 86 |
+
|
| 87 |
+
overall_s4_avg = sum(s4_values) / len(s4_values) if s4_values else 0
|
| 88 |
+
overall_s5_avg = sum(s5_values) / len(s5_values) if s5_values else 0
|
| 89 |
+
print(f"Average for s4: {overall_s4_avg:.3f}")
|
| 90 |
+
print(f"Average for s5: {overall_s5_avg:.3f}")
|
| 91 |
+
|
| 92 |
+
return overall_s1_avg, overall_s2_avg, overall_s3_avg, overall_s4_avg, overall_s5_avg
|
| 93 |
+
|
| 94 |
+
|
| 95 |
+
def check2(csv_file, image_folder, s1, s2, s3, s4, s5, s6):
|
| 96 |
+
print(f"###################{csv_file}#######################")
|
| 97 |
+
# 1. Count CSV rows (excluding header)
|
| 98 |
+
with open(csv_file, newline='') as f:
|
| 99 |
+
reader = list(csv.DictReader(f))
|
| 100 |
+
num_rows = len(reader)
|
| 101 |
+
|
| 102 |
+
# 2. Count files in folder
|
| 103 |
+
num_files = len([name for name in os.listdir(image_folder) if name.endswith('.png') or name.endswith('.jpg')])
|
| 104 |
+
|
| 105 |
+
print(f"CSV rows: {num_rows}, Files in folder: {num_files}")
|
| 106 |
+
if num_rows != num_files:
|
| 107 |
+
print("Row and image count do not match!")
|
| 108 |
+
else:
|
| 109 |
+
print("Row and image count match.")
|
| 110 |
+
|
| 111 |
+
# 3. Check 's1', 's2', 's3' columns and calculate averages
|
| 112 |
+
valid_values = {0, 0.5, 1}
|
| 113 |
+
s1_averages, s2_averages, s3_averages = [], [], []
|
| 114 |
+
invalid_rows = []
|
| 115 |
+
|
| 116 |
+
s4_values, s5_values, s6_values = [], [], []
|
| 117 |
+
invalid_s4_s5_s6_rows = []
|
| 118 |
+
|
| 119 |
+
s45_values = []
|
| 120 |
+
w1 = 0.7
|
| 121 |
+
w2 = 0.3
|
| 122 |
+
|
| 123 |
+
for idx, row in enumerate(reader):
|
| 124 |
+
valid_row = True
|
| 125 |
+
row_avgs = []
|
| 126 |
+
for col in [s1, s2, s3]:
|
| 127 |
+
|
| 128 |
+
vals = ast.literal_eval(row[col]) # Parse the list
|
| 129 |
+
if not isinstance(vals, list):
|
| 130 |
+
# raise ValueError # not list
|
| 131 |
+
valid_row = False
|
| 132 |
+
if not all(v in valid_values for v in vals):
|
| 133 |
+
valid_row = False # not 0, 0.5, or 1
|
| 134 |
+
print(vals)
|
| 135 |
+
print("HHHHHHH2")
|
| 136 |
+
else:
|
| 137 |
+
avg = sum(vals) / len(vals) if vals else 0
|
| 138 |
+
row_avgs.append(avg)
|
| 139 |
+
if not valid_row:
|
| 140 |
+
invalid_rows.append(idx+2) # +2 for header and 0-indexing
|
| 141 |
+
if valid_row:
|
| 142 |
+
s1_averages.append(row_avgs[0])
|
| 143 |
+
s2_averages.append(row_avgs[1])
|
| 144 |
+
s3_averages.append(row_avgs[2])
|
| 145 |
+
|
| 146 |
+
# Check s4 and s5
|
| 147 |
+
s4_ok = float(row[s4])<=1.0 and float(row[s4])>=0.0
|
| 148 |
+
s5_ok = float(row[s5])<=1.0 and float(row[s5])>=0.0
|
| 149 |
+
s6_ok = float(row[s6])<=1.0 and float(row[s6])>=0.0
|
| 150 |
+
if s4_ok and s5_ok and s6_ok:
|
| 151 |
+
s4_values.append(float(row[s4]))
|
| 152 |
+
s5_values.append(float(row[s5]))
|
| 153 |
+
s6_values.append(float(row[s6]))
|
| 154 |
+
s45_values.append((w1*float(row[s4]) + w2*float(row[s5])))
|
| 155 |
+
else:
|
| 156 |
+
invalid_s4_s5_s6_rows.append(idx+2)
|
| 157 |
+
print(type(float(row[s4])))
|
| 158 |
+
|
| 159 |
+
|
| 160 |
+
if invalid_rows:
|
| 161 |
+
print(f"Invalid rows in 's1', 's2', or 's3': {invalid_rows}")
|
| 162 |
+
else:
|
| 163 |
+
print("All rows in 's1', 's2', and 's3' are valid.")
|
| 164 |
+
|
| 165 |
+
if invalid_s4_s5_s6_rows:
|
| 166 |
+
print(f"Invalid rows in 's4' or 's5': {invalid_s4_s5_s6_rows}")
|
| 167 |
+
else:
|
| 168 |
+
print("All rows in 's4' and 's5' are valid.")
|
| 169 |
+
|
| 170 |
+
overall_s1_avg = sum(s1_averages) / len(s1_averages) if s1_averages else 0
|
| 171 |
+
overall_s2_avg = sum(s2_averages) / len(s2_averages) if s2_averages else 0
|
| 172 |
+
overall_s3_avg = sum(s3_averages) / len(s3_averages) if s3_averages else 0
|
| 173 |
+
|
| 174 |
+
print(f"Average for s1: {overall_s1_avg:.3f}")
|
| 175 |
+
print(f"Average for s2: {overall_s2_avg:.3f}")
|
| 176 |
+
print(f"Average for s3: {overall_s3_avg:.3f}")
|
| 177 |
+
|
| 178 |
+
overall_s4_avg = sum(s4_values) / len(s4_values) if s4_values else 0
|
| 179 |
+
overall_s5_avg = sum(s5_values) / len(s5_values) if s5_values else 0
|
| 180 |
+
overall_s6_avg = sum(s6_values) / len(s6_values) if s6_values else 0
|
| 181 |
+
overall_s45_avg = sum(s45_values) / len(s45_values) if s45_values else 0
|
| 182 |
+
print(f"Average for s4: {overall_s4_avg:.3f}")
|
| 183 |
+
print(f"Average for s5: {overall_s5_avg:.3f}")
|
| 184 |
+
print(f"Average for s6: {overall_s6_avg:.3f}")
|
| 185 |
+
print(f"Average for s45: {overall_s45_avg:.3f}")
|
| 186 |
+
|
| 187 |
+
return overall_s1_avg, overall_s2_avg, overall_s3_avg, overall_s4_avg, overall_s5_avg, overall_s6_avg,overall_s45_avg
|
| 188 |
+
|
| 189 |
+
|
| 190 |
+
if __name__ == "__main__":
|
| 191 |
+
# model_names = [
|
| 192 |
+
# "flux1-schnell",
|
| 193 |
+
|
| 194 |
+
# "sd35_large",
|
| 195 |
+
# "sd35_medium",
|
| 196 |
+
# "sd30_medium",
|
| 197 |
+
|
| 198 |
+
# "flux1-dev",
|
| 199 |
+
# "playground-v25",
|
| 200 |
+
# "hidream",
|
| 201 |
+
|
| 202 |
+
# "janus_pro_7B",
|
| 203 |
+
# "show-o-512",
|
| 204 |
+
# "bagel",
|
| 205 |
+
# "emu3",
|
| 206 |
+
# "GoT",
|
| 207 |
+
|
| 208 |
+
# "Gemini",
|
| 209 |
+
# "GPT",
|
| 210 |
+
# ]
|
| 211 |
+
model_names = [
|
| 212 |
+
|
| 213 |
+
# "hidream",
|
| 214 |
+
# "flux1-dev",
|
| 215 |
+
# "flux1-schnell",
|
| 216 |
+
# "playground-v25",
|
| 217 |
+
# "sd30_medium",
|
| 218 |
+
# "sd35_medium",
|
| 219 |
+
# "sd35_large",
|
| 220 |
+
|
| 221 |
+
|
| 222 |
+
# "emu3",
|
| 223 |
+
# "janus_pro_7B",
|
| 224 |
+
# "show-o-512",
|
| 225 |
+
# "GoT",
|
| 226 |
+
# "bagel",
|
| 227 |
+
|
| 228 |
+
# "Gemini",
|
| 229 |
+
# "GPT",
|
| 230 |
+
|
| 231 |
+
"qwen_image"
|
| 232 |
+
]
|
| 233 |
+
s4_list = []
|
| 234 |
+
s5_list = []
|
| 235 |
+
s6_list = []
|
| 236 |
+
s45_list = []
|
| 237 |
+
for model_name in model_names:
|
| 238 |
+
# csv_path = f'/group/xihuiliu/sky/reasoning/csv/idiom/{model_name}.csv'
|
| 239 |
+
# image_folder = f'/group/xihuiliu/sky/reasoning/images/idiom/{model_name}'
|
| 240 |
+
csv_path = f'/group/xihuiliu/sky/reasoning/csv/idiom/{model_name}_4o-pipeline.csv'
|
| 241 |
+
image_folder = f'/group/xihuiliu/sky/reasoning/models/GPT4o_pipeline/images_4o-pipeline/{model_name}'
|
| 242 |
+
|
| 243 |
+
# csv_path = f'/group/xihuiliu/sky/reasoning/csv/text_image_new/{model_name}.csv'
|
| 244 |
+
# image_folder = f'/group/xihuiliu/sky/reasoning/images/text_image_new/{model_name}'
|
| 245 |
+
# csv_path = f'/group/xihuiliu/sky/reasoning/csv/text_image_new/{model_name}_4o-pipeline.csv'
|
| 246 |
+
# image_folder = f'/group/xihuiliu/sky/reasoning/models/GPT4o_pipeline/images_text_image_4o-pipeline/{model_name}'
|
| 247 |
+
|
| 248 |
+
s1_column = 'score_alignment'
|
| 249 |
+
s2_column = 'score_quality'
|
| 250 |
+
s3_column = 'score_quality'
|
| 251 |
+
s4_column = 'score_a_avg'
|
| 252 |
+
s5_column = 'score_q_avg'
|
| 253 |
+
|
| 254 |
+
s1,s2,s3,s4,s5=check(csv_path, image_folder, s1_column, s2_column, s3_column, s4_column, s5_column)
|
| 255 |
+
s4_list.append(s4*100)
|
| 256 |
+
s5_list.append(s5*100)
|
| 257 |
+
|
| 258 |
+
|
| 259 |
+
# csv_path = f'/group/xihuiliu/sky/reasoning/csv/entity/{model_name}_4o-pipeline.csv'
|
| 260 |
+
# image_folder = f'/group/xihuiliu/sky/reasoning/models/GPT4o_pipeline/images_entity_4o-pipeline/{model_name}'
|
| 261 |
+
# csv_path = f'/group/xihuiliu/sky/reasoning/csv/entity/{model_name}.csv'
|
| 262 |
+
# image_folder = f'/group/xihuiliu/sky/reasoning/images/common_sense/{model_name}'
|
| 263 |
+
|
| 264 |
+
# s1_column = 'score_entity'
|
| 265 |
+
# s2_column = 'score_detail'
|
| 266 |
+
# s3_column = 'score_quality'
|
| 267 |
+
# s4_column = 'score_e_avg'
|
| 268 |
+
# s5_column = 'score_d_avg'
|
| 269 |
+
# s6_column = 'score_q_avg'
|
| 270 |
+
|
| 271 |
+
# csv_path = f'/group/xihuiliu/sky/reasoning/csv/physics/{model_name}_4o-pipeline.csv'
|
| 272 |
+
# image_folder = f'/group/xihuiliu/sky/reasoning/models/GPT4o_pipeline/images_physics_4o-pipeline/{model_name}'
|
| 273 |
+
# csv_path = f'/group/xihuiliu/sky/reasoning/csv/physics/{model_name}.csv'
|
| 274 |
+
# image_folder = f'/group/xihuiliu/sky/reasoning/images/physics/{model_name}'
|
| 275 |
+
|
| 276 |
+
# s1_column = 'score_scientific'
|
| 277 |
+
# s2_column = 'score_detail'
|
| 278 |
+
# s3_column = 'score_quality'
|
| 279 |
+
# s4_column = 'score_s_avg'
|
| 280 |
+
# s5_column = 'score_d_avg'
|
| 281 |
+
# s6_column = 'score_q_avg'
|
| 282 |
+
|
| 283 |
+
# s1,s2,s3,s4,s5,s6,s45=check2(csv_path, image_folder, s1_column, s2_column, s3_column, s4_column, s5_column, s6_column)
|
| 284 |
+
# s4_list.append(s4*100)
|
| 285 |
+
# s5_list.append(s5*100)
|
| 286 |
+
# s6_list.append(s6*100)
|
| 287 |
+
# s45_list.append(s45*100)
|
| 288 |
+
|
| 289 |
+
for i, model_name in enumerate(model_names):
|
| 290 |
+
|
| 291 |
+
print(f"{model_name},", round(s4_list[i],1), ",", round(s5_list[i],1))
|
| 292 |
+
# print(f"{model_name},", round(s4_list[i],1), ",", round(s5_list[i],1), ",", round(s6_list[i],1))
|
| 293 |
+
# print(f"{model_name},", round(s45_list[i],1), ",", round(s6_list[i],1))
|
| 294 |
+
|
| 295 |
+
# idiom: GPT 198
|
| 296 |
+
# hidream, 48.5 , 87.2
|
| 297 |
+
# flux1-dev, 39.1 , 83.4
|
| 298 |
+
# flux1-schnell, 40.9 , 83.1
|
| 299 |
+
# playground-v25, 43.9 , 87.8
|
| 300 |
+
# sd30_medium, 35.9 , 81.4
|
| 301 |
+
# sd35_medium, 34.4 , 80.6
|
| 302 |
+
# sd35_large, 35.6 , 85.3
|
| 303 |
+
# emu3, 33.1 , 82.9
|
| 304 |
+
# janus_pro_7B, 25.5 , 78.0
|
| 305 |
+
# show-o-512, 33.1 , 82.5
|
| 306 |
+
# GoT, 29.7 , 76.4
|
| 307 |
+
# bagel, 44.6 , 84.3
|
| 308 |
+
# Gemini, 52.4 , 87.8
|
| 309 |
+
# 从133开始错误: GPT, 75.6 , 95.4, 更新:GPT, 75.7 , 94.5
|
| 310 |
+
# qwen_image, 51.7 , 89.7
|
| 311 |
+
|
| 312 |
+
#idiom pipeline
|
| 313 |
+
# hidream, 64.4 , 91.9
|
| 314 |
+
# flux1-dev, 66.2 , 90.5
|
| 315 |
+
# flux1-schnell, 68.2 , 87.4
|
| 316 |
+
# playground-v25, 55.8 , 88.7
|
| 317 |
+
# sd30_medium, 65.7 , 87.6
|
| 318 |
+
# sd35_medium, 66.8 , 88.5
|
| 319 |
+
# sd35_large, 67.7 , 90.4
|
| 320 |
+
# emu3, 56.0 , 84.2
|
| 321 |
+
# janus_pro_7B, 63.1 , 82.9
|
| 322 |
+
# show-o-512, 64.2 , 89.5
|
| 323 |
+
# GoT, 51.8 , 81.4
|
| 324 |
+
# bagel, 67.7 , 87.8
|
| 325 |
+
# Gemini, 67.1 , 91.5
|
| 326 |
+
# GPT, 77.3 , 93.8
|
| 327 |
+
|
| 328 |
+
# entity pipeline
|
| 329 |
+
# hidream, 76.4 , 77.9 , 96.8
|
| 330 |
+
# 有错误:flux1-dev, 70.6 , 77.2 , 95.9 更新后:flux1-dev, 69.9 , 76.9 , 96.1
|
| 331 |
+
# flux1-schnell, 70.1 , 78.4 , 94.9
|
| 332 |
+
# playground-v25, 71.5 , 68.9 , 94.7
|
| 333 |
+
# sd30_medium, 71.8 , 76.9 , 96.1
|
| 334 |
+
# sd35_medium, 70.1 , 77.2 , 95.9
|
| 335 |
+
# sd35_large, 76.8 , 79.8 , 95.6
|
| 336 |
+
# emu3, 60.8 , 67.8 , 90.6
|
| 337 |
+
# janus_pro_7B, 67.3 , 74.3 , 93.0
|
| 338 |
+
# show-o-512, 64.6 , 70.9 , 94.0
|
| 339 |
+
# GoT, 48.7 , 57.9 , 89.2
|
| 340 |
+
# bagel, 66.9 , 76.8 , 94.7
|
| 341 |
+
# Gemini, 77.9 , 77.8 , 96.1
|
| 342 |
+
# GPT, 82.6 , 85.4 , 98.0
|
| 343 |
+
#整体
|
| 344 |
+
# hidream, 76.4 , 77.9 , 96.8
|
| 345 |
+
# flux1-dev, 69.9 , 76.9 , 96.1
|
| 346 |
+
# flux1-schnell, 70.1 , 78.4 , 94.9
|
| 347 |
+
# playground-v25, 71.5 , 68.9 , 94.7
|
| 348 |
+
# sd30_medium, 71.8 , 76.9 , 96.1
|
| 349 |
+
# sd35_medium, 70.1 , 77.2 , 95.9
|
| 350 |
+
# sd35_large, 76.8 , 79.8 , 95.6
|
| 351 |
+
# emu3, 60.8 , 67.8 , 90.6
|
| 352 |
+
# janus_pro_7B, 67.3 , 74.3 , 93.0
|
| 353 |
+
# show-o-512, 64.6 , 70.9 , 94.0
|
| 354 |
+
# GoT, 48.7 , 57.9 , 89.2
|
| 355 |
+
# bagel, 66.9 , 76.8 , 94.7
|
| 356 |
+
# Gemini, 77.9 , 77.8 , 96.1
|
| 357 |
+
# GPT, 82.6 , 85.4 , 98.0
|
| 358 |
+
#!!!整体 0.7 0.3
|
| 359 |
+
# hidream, 76.9 , 96.8
|
| 360 |
+
# flux1-dev, 72.0 , 96.1
|
| 361 |
+
# flux1-schnell, 72.6 , 94.9
|
| 362 |
+
# playground-v25, 70.7 , 94.7
|
| 363 |
+
# sd30_medium, 73.3 , 96.1
|
| 364 |
+
# sd35_medium, 72.2 , 95.9
|
| 365 |
+
# sd35_large, 77.7 , 95.6
|
| 366 |
+
# emu3, 62.9 , 90.6
|
| 367 |
+
# janus_pro_7B, 69.4 , 93.0
|
| 368 |
+
# show-o-512, 66.5 , 94.0
|
| 369 |
+
# GoT, 51.5 , 89.2
|
| 370 |
+
# bagel, 69.9 , 94.7
|
| 371 |
+
# Gemini, 77.9 , 96.1
|
| 372 |
+
# GPT, 83.4 , 98.0
|
| 373 |
+
|
| 374 |
+
# entity
|
| 375 |
+
# hidream, 47.1 , 70.4 , 94.1
|
| 376 |
+
# 有错误:flux1-dev, 40.7 , 59.8 , 90.1 更新后:flux1-dev, 39.2 , 58.7 , 90.6
|
| 377 |
+
# flux1-schnell, 37.5 , 62.0 , 91.5
|
| 378 |
+
# playground-v25, 43.0 , 60.9 , 92.4
|
| 379 |
+
# sd30_medium, 36.5 , 56.3 , 90.1
|
| 380 |
+
# sd35_medium, 37.9 , 60.8 , 92.1
|
| 381 |
+
# sd35_large, 40.7 , 60.4 , 92.6
|
| 382 |
+
# emu3, 26.1 , 51.8 , 85.2
|
| 383 |
+
# janus_pro_7B, 31.4 , 55.1 , 87.6
|
| 384 |
+
# 有错误,一个是null show-o-512, 28.2 , 50.5 , 87.4
|
| 385 |
+
# GoT, 25.8 , 43.1 , 86.2
|
| 386 |
+
# bagel, 47.9 , 63.0 , 91.6
|
| 387 |
+
# 从49开始错误: Gemini, 14.2 , 21.9 , 70.4 更新后:Gemini, 66.0 , 69.3 , 94.3
|
| 388 |
+
# 从54开始错误: GPT, 19.2 , 24.3 , 70.1 更新后:GPT, 76.2 , 80.3 , 96.6
|
| 389 |
+
#整体
|
| 390 |
+
# hidream, 47.1 , 70.4 , 94.1
|
| 391 |
+
# flux1-dev, 39.2 , 58.7 , 90.6
|
| 392 |
+
# flux1-schnell, 37.5 , 62.0 , 91.5
|
| 393 |
+
# playground-v25, 43.0 , 60.9 , 92.4
|
| 394 |
+
# sd30_medium, 36.5 , 56.3 , 90.1
|
| 395 |
+
# sd35_medium, 37.9 , 60.8 , 92.1
|
| 396 |
+
# sd35_large, 40.7 , 60.4 , 92.6
|
| 397 |
+
# emu3, 26.1 , 51.8 , 85.2
|
| 398 |
+
# janus_pro_7B, 31.4 , 55.1 , 87.6
|
| 399 |
+
# show-o-512, 28.2 , 50.5 , 87.4
|
| 400 |
+
# GoT, 25.8 , 43.1 , 86.2
|
| 401 |
+
# bagel, 47.9 , 63.0 , 91.6
|
| 402 |
+
# Gemini, 66.0 , 69.3 , 94.3
|
| 403 |
+
# GPT, 76.2 , 80.3 , 96.6
|
| 404 |
+
#整体 0.7 0.3
|
| 405 |
+
# hidream, 54.1 , 94.1
|
| 406 |
+
# flux1-dev, 45.1 , 90.6
|
| 407 |
+
# flux1-schnell, 44.8 , 91.5
|
| 408 |
+
# playground-v25, 48.4 , 92.4
|
| 409 |
+
# sd30_medium, 42.4 , 90.1
|
| 410 |
+
# sd35_medium, 44.8 , 92.1
|
| 411 |
+
# sd35_large, 46.6 , 92.6
|
| 412 |
+
# emu3, 33.8 , 85.2
|
| 413 |
+
# janus_pro_7B, 38.5 , 87.6
|
| 414 |
+
# show-o-512, 34.9 , 87.4
|
| 415 |
+
# GoT, 31.0 , 86.2
|
| 416 |
+
# bagel, 52.4 , 91.6
|
| 417 |
+
# Gemini, 67.0 , 94.3
|
| 418 |
+
# GPT, 77.5 , 96.6
|
| 419 |
+
# qwen_image, 60.6 , 96.2
|
| 420 |
+
|
| 421 |
+
|
| 422 |
+
# text-image
|
| 423 |
+
# hidream, 72.3 , 85.5
|
| 424 |
+
# flux1-dev, 56.9 , 76.5
|
| 425 |
+
# flux1-schnell, 65.1 , 74.5
|
| 426 |
+
# 有错误,一个是null:playground-v25, 38.5 , 72.1
|
| 427 |
+
# sd30_medium, 60.9 , 71.3
|
| 428 |
+
# sd35_medium, 58.0 , 70.1
|
| 429 |
+
# sd35_large, 62.2 , 75.4
|
| 430 |
+
# 有错误,一个是null:emu3, 33.7 , 68.7
|
| 431 |
+
# janus_pro_7B, 37.2 , 70.9
|
| 432 |
+
# show-o-512, 35.3 , 80.3
|
| 433 |
+
# 从3开始错误:GoT, 7.2 , 56.9, 更新后: GoT, 30.6 , 70.7
|
| 434 |
+
# bagel, 44.0 , 73.7
|
| 435 |
+
# 从53开始错误:Gemini, 28.0 , 70.1 更新后:Gemini, 73.0 , 83.3
|
| 436 |
+
# GPT, 86.9 , 97.6
|
| 437 |
+
# qwen_image, 72.0 , 81.3
|
| 438 |
+
|
| 439 |
+
# text-image pipeline
|
| 440 |
+
# hidream, 77.5 , 87.0
|
| 441 |
+
# flux1-dev, 69.8 , 80.5
|
| 442 |
+
# flux1-schnell, 71.6 , 78.7
|
| 443 |
+
# playground-v25, 40.5 , 76.5
|
| 444 |
+
# sd30_medium, 70.9 , 83.1
|
| 445 |
+
# sd35_medium, 69.2 , 79.9
|
| 446 |
+
# sd35_large, 72.4 , 84.4
|
| 447 |
+
# emu3, 41.5 , 74.7
|
| 448 |
+
# janus_pro_7B, 54.9 , 80.5
|
| 449 |
+
# show-o-512, 42.9 , 83.5
|
| 450 |
+
# 从177开始错误: GoT, 36.4 , 73.1 更新后:GoT, 36.4 , 73.1
|
| 451 |
+
# 有错误:bagel, 61.0 , 79.1 更新后: bagel, 61.5 , 79.7
|
| 452 |
+
# 从20开始错误: Gemini, 20.7 , 74.9 更新后: Gemini, 78.4 , 89.4
|
| 453 |
+
# 从85开始错误: GPT, 41.7 , 86.1 更新后: GPT, 83.0 , 97.5
|
| 454 |
+
|
| 455 |
+
#scientific
|
| 456 |
+
# hidream, 45.0 , 72.5
|
| 457 |
+
# 有错误: flux1-dev, 38.8 , 64.9 更新:flux1-dev, 38.8 , 65.1 , 80.9
|
| 458 |
+
# flux1-schnell, 41.2 , 73.0
|
| 459 |
+
# 有错误: playground-v25, 42.8 , 67.2, 更新:playground-v25, 43.6 , 67.5 , 83.3
|
| 460 |
+
# sd30_medium, 42.3 , 71.0
|
| 461 |
+
# sd35_medium, 42.8 , 66.4
|
| 462 |
+
# sd35_large, 44.6 , 72.3
|
| 463 |
+
# emu3, 33.8 , 54.7
|
| 464 |
+
# janus_pro_7B, 37.1 , 63.3
|
| 465 |
+
# show-o-512, 32.9 , 62.0
|
| 466 |
+
# GoT, 30.8 , 50.9
|
| 467 |
+
# bagel, 52.1 , 70.9
|
| 468 |
+
# 从25开始错误: Gemini, 13.4 , 22.9 更新后:
|
| 469 |
+
# 从104开始错误: GPT, 42.2 , 57.5 更新后:
|
| 470 |
+
#整体
|
| 471 |
+
# hidream, 45.0 , 72.5 , 84.5
|
| 472 |
+
# flux1-dev, 38.8 , 65.1 , 80.9
|
| 473 |
+
# flux1-schnell, 41.2 , 73.0 , 83.0
|
| 474 |
+
# playground-v25, 43.6 , 67.5 , 83.3
|
| 475 |
+
# sd30_medium, 42.3 , 71.0 , 81.7
|
| 476 |
+
# sd35_medium, 42.8 , 66.4 , 83.0
|
| 477 |
+
# sd35_large, 44.6 , 72.3 , 84.5
|
| 478 |
+
# emu3, 33.8 , 54.7 , 77.0
|
| 479 |
+
# janus_pro_7B, 37.1 , 63.3 , 77.8
|
| 480 |
+
# show-o-512, 32.9 , 62.0 , 76.6
|
| 481 |
+
# GoT, 30.8 , 50.9 , 76.3
|
| 482 |
+
# bagel, 52.1 , 70.9 , 88.3
|
| 483 |
+
# Gemini, 60.7 , 80.7 , 89.3
|
| 484 |
+
# GPT, 68.7 , 88.5 , 94.3
|
| 485 |
+
# !!!整体 0.7 0.3
|
| 486 |
+
# hidream, 53.2 , 84.5
|
| 487 |
+
# flux1-dev, 46.7 , 80.9
|
| 488 |
+
# flux1-schnell, 50.7 , 83.0
|
| 489 |
+
# playground-v25, 50.8 , 83.3
|
| 490 |
+
# sd30_medium, 50.9 , 81.7
|
| 491 |
+
# sd35_medium, 49.9 , 83.0
|
| 492 |
+
# sd35_large, 52.9 , 84.5
|
| 493 |
+
# emu3, 40.1 , 77.0
|
| 494 |
+
# janus_pro_7B, 44.9 , 77.8
|
| 495 |
+
# show-o-512, 41.6 , 76.6
|
| 496 |
+
# GoT, 36.8 , 76.3
|
| 497 |
+
# bagel, 57.7 , 88.3
|
| 498 |
+
# Gemini, 66.7 , 89.3
|
| 499 |
+
# GPT, 74.7 , 94.3
|
| 500 |
+
# qwen_image, 61.0 , 87.5
|
| 501 |
+
|
| 502 |
+
|
| 503 |
+
# physics pipeline
|
| 504 |
+
# hidream, 63.3 , 76.6
|
| 505 |
+
# 有错误:flux1-dev, 64.4 , 79.1 更新后,有一个测不出来【149】:64.8 , 79.2 , 92.3
|
| 506 |
+
# 有错误,40测不出来:flux1-schnell, 62.5 , 75.5, 更新:flux1-schnell, 62.2 , 75.4
|
| 507 |
+
# playground-v25, 52.5 , 64.8
|
| 508 |
+
# sd30_medium, 60.6 , 77.1
|
| 509 |
+
# sd35_medium, 63.2 , 74.4
|
| 510 |
+
# sd35_large, 65.2 , 76.4
|
| 511 |
+
# janus_pro_7B, 56.7 , 71.4
|
| 512 |
+
# show-o-512, 55.9 , 69.2
|
| 513 |
+
# GoT, 38.7 , 54.9
|
| 514 |
+
# bagel, 63.6 , 76.7
|
| 515 |
+
# GPT, 78.8 , 85.4
|
| 516 |
+
# 整体
|
| 517 |
+
# hidream, 63.3 , 76.6 , 89.9
|
| 518 |
+
# flux1-dev, 64.8 , 79.2 , 92.3
|
| 519 |
+
# flux1-schnell, 62.2 , 75.4 , 90.1
|
| 520 |
+
# playground-v25, 52.5 , 64.8 , 87.0
|
| 521 |
+
# sd30_medium, 60.6 , 77.1 , 91.7
|
| 522 |
+
# sd35_medium, 63.2 , 74.4 , 89.9
|
| 523 |
+
# sd35_large, 65.2 , 76.4 , 92.3
|
| 524 |
+
# emu3, 44.7 , 57.4 , 84.1
|
| 525 |
+
# janus_pro_7B, 56.7 , 71.4 , 87.5
|
| 526 |
+
# show-o-512, 55.9 , 69.2 , 90.3
|
| 527 |
+
# GoT, 38.7 , 54.9 , 81.8
|
| 528 |
+
# bagel, 63.6 , 76.7 , 90.3
|
| 529 |
+
# Gemini, 69.2 , 78.9 , 90.6
|
| 530 |
+
# GPT, 78.8 , 85.4 , 95.4
|
| 531 |
+
# !!! 整体 0.7, 0.3
|
| 532 |
+
# hidream, 67.3 , 89.9
|
| 533 |
+
# flux1-dev, 69.1 , 92.3
|
| 534 |
+
# flux1-schnell, 66.1 , 90.1
|
| 535 |
+
# playground-v25, 56.1 , 87.0
|
| 536 |
+
# sd30_medium, 65.5 , 91.7
|
| 537 |
+
# sd35_medium, 66.6 , 89.9
|
| 538 |
+
# sd35_large, 68.6 , 92.3
|
| 539 |
+
# emu3, 48.5 , 84.1
|
| 540 |
+
# janus_pro_7B, 61.1 , 87.5
|
| 541 |
+
# show-o-512, 59.9 , 90.3
|
| 542 |
+
# GoT, 43.6 , 81.8
|
| 543 |
+
# bagel, 67.5 , 90.3
|
| 544 |
+
# Gemini, 72.1 , 90.6
|
| 545 |
+
# GPT, 80.8 , 95.4
|
csv/entity/GPT.csv
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
csv/entity/GPT_4o-pipeline.csv
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
csv/entity/Gemini.csv
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
csv/entity/Gemini_4o-pipeline.csv
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
csv/entity/GoT.csv
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
csv/entity/GoT_4o-pipeline.csv
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
csv/entity/bagel.csv
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
csv/entity/bagel_4o-pipeline.csv
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
csv/entity/emu3.csv
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
csv/entity/emu3_4o-pipeline.csv
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
csv/entity/flux1-dev copy.csv
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
csv/entity/flux1-dev.csv
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
csv/entity/flux1-dev_4o-pipeline copy.csv
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
csv/entity/flux1-dev_4o-pipeline.csv
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
csv/entity/flux1-schnell.csv
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
csv/entity/flux1-schnell_4o-pipeline.csv
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
csv/entity/hidream.csv
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
csv/entity/hidream_4o-pipeline.csv
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
csv/entity/janus_pro_7B.csv
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
csv/entity/janus_pro_7B_4o-pipeline.csv
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
csv/entity/nano_banana.csv
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
csv/entity/nano_banana_4o-pipeline.csv
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
csv/entity/nano_banana_old.csv
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
csv/entity/playground-v25.csv
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
csv/entity/playground-v25_4o-pipeline.csv
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
csv/entity/qwen_image.csv
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
csv/entity/qwen_image_4o-pipeline.csv
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
csv/entity/sd30_medium.csv
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
csv/entity/sd30_medium_4o-pipeline.csv
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
csv/entity/sd35_large.csv
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
csv/entity/sd35_large_4o-pipeline.csv
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
csv/entity/sd35_medium.csv
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
csv/entity/sd35_medium_4o-pipeline.csv
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
csv/entity/show-o-512.csv
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
csv/entity/show-o-512_4o-pipeline.csv
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
csv/entity/xxxflux1-schnell.csv
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
csv/entity/xxxflux1-schnell_4o-pipeline.csv
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
csv/entity/xxxsd35_large.csv
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
csv/entity/xxxsd35_large_4o-pipeline.csv
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
csv/idiom/GPT.csv
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
csv/idiom/GPT_4o-pipeline.csv
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
csv/idiom/Gemini.csv
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
csv/idiom/Gemini_4o-pipeline.csv
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
csv/idiom/GoT.csv
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
csv/idiom/GoT_4o-pipeline.csv
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
csv/idiom/bagel.csv
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
csv/idiom/bagel_4o-pipeline.csv
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
csv/idiom/csv_tidyup.py
ADDED
|
@@ -0,0 +1,27 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import csv
|
| 2 |
+
|
| 3 |
+
input_file = '/group/xihuiliu/sky/reasoning/csv/physics/nano_banana.csv'
|
| 4 |
+
output_file = '/group/xihuiliu/sky/reasoning/csv/physics/nano_banana_clean.csv'
|
| 5 |
+
|
| 6 |
+
# Read CSV and keep only the first occurrence of each image id
|
| 7 |
+
unique_rows = {}
|
| 8 |
+
with open(input_file, newline='', encoding='utf-8') as csvfile:
|
| 9 |
+
reader = csv.reader(csvfile)
|
| 10 |
+
header = next(reader)
|
| 11 |
+
for row in reader:
|
| 12 |
+
image_id = row[0]
|
| 13 |
+
if image_id not in unique_rows:
|
| 14 |
+
unique_rows[image_id] = row
|
| 15 |
+
|
| 16 |
+
# Sort image ids from 0001.png to 0200.png
|
| 17 |
+
sorted_image_ids = sorted(
|
| 18 |
+
unique_rows.keys(),
|
| 19 |
+
key=lambda x: int(x.split('.')[0])
|
| 20 |
+
)
|
| 21 |
+
sorted_rows = [unique_rows[img_id] for img_id in sorted_image_ids if 1 <= int(img_id.split('.')[0]) <= 200]
|
| 22 |
+
|
| 23 |
+
# Write cleaned and sorted data to new CSV
|
| 24 |
+
with open(output_file, 'w', newline='', encoding='utf-8') as csvfile:
|
| 25 |
+
writer = csv.writer(csvfile)
|
| 26 |
+
writer.writerow(header)
|
| 27 |
+
writer.writerows(sorted_rows)
|
csv/idiom/emu3.csv
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|