Miscs
This commit is contained in:
@@ -623,25 +623,6 @@ def process_single_task(task_tuple):
|
||||
needs_correction.append(i)
|
||||
break
|
||||
|
||||
#
|
||||
# if ymin < yming-50 or ymax > ymaxg+50:
|
||||
# print("Error : Gemini answered box2d too low/up", pid, label, group_name)
|
||||
# if ymax < yming or ymin > ymaxg:
|
||||
# print("Removing the box.")
|
||||
# f["box_2d"] = None
|
||||
# continue
|
||||
# nymin = max(ymin, yming) * 1000 // total_height
|
||||
# nymax = min(ymax, ymaxg) * 1000 // total_height
|
||||
# f["box_2d"] = [nymin, xmin, nymax, xmax]
|
||||
|
||||
# if f["box_2d"] and xmax / 1000 > width_r:
|
||||
# print("Error : Gemini answered box2d too right", pid, label, group_name)
|
||||
# if xmin / 1000 > width_r:
|
||||
# print("Removing the box.")
|
||||
# f["box_2d"] = None
|
||||
# continue
|
||||
# f["box_2d"][3] = int(width_r * 1000)
|
||||
|
||||
if needs_correction:
|
||||
tprint(f"\tBox anomalies detected for Copie {pid} {group_name}. \n\tRequesting isolated correction from Gemini Flash...")
|
||||
try:
|
||||
|
||||
Reference in New Issue
Block a user