Update app.py
Browse files
app.py
CHANGED
|
@@ -285,7 +285,7 @@ def get_next_trial_info(current_trial_idx_in_run, current_run_image_list_for_tri
|
|
| 285 |
"right_display_label": candidates_for_sentinel[1][0][0], "right_path": candidates_for_sentinel[1][0][1], "right_internal_label": candidates_for_sentinel[1][1],
|
| 286 |
})
|
| 287 |
else: # 常规试验
|
| 288 |
-
if
|
| 289 |
print(f"警告:常规图 '{img_filename_original}' (trial {trial_number_for_display}) 候选少于2 (找到 {len(pool)})。此试验无法进行。")
|
| 290 |
# 注意:如果这个目标图片是当前轮次中唯一的图片,或者后续图片也无法生成试验,轮次可能会提前结束。
|
| 291 |
# 我们可以在这里也将其标记为耗尽,以确保它在下一轮开始时被正确过滤。
|
|
|
|
| 285 |
"right_display_label": candidates_for_sentinel[1][0][0], "right_path": candidates_for_sentinel[1][0][1], "right_internal_label": candidates_for_sentinel[1][1],
|
| 286 |
})
|
| 287 |
else: # 常规试验
|
| 288 |
+
if not generated_pool or not other_pool:
|
| 289 |
print(f"警告:常规图 '{img_filename_original}' (trial {trial_number_for_display}) 候选少于2 (找到 {len(pool)})。此试验无法进行。")
|
| 290 |
# 注意:如果这个目标图片是当前轮次中唯一的图片,或者后续图片也无法生成试验,轮次可能会提前结束。
|
| 291 |
# 我们可以在这里也将其标记为耗尽,以确保它在下一轮开始时被正确过滤。
|