JVice commited on
Commit
72ca2be
1 Parent(s): 646bd8b

Update tab_manager.py

Browse files
Files changed (1) hide show
  1. tab_manager.py +2 -2
tab_manager.py CHANGED
@@ -310,7 +310,7 @@ def initiate_general_bias_evaluation(tab, modelID, specs, imagesTab):
310
  user_evaluation_variables.DIST_BIAS = float(f"{user_evaluation_variables.EVAL_METRICS[2]:.4f}")
311
  user_evaluation_variables.HALLUCINATION = float(f"{np.mean(user_evaluation_variables.EVAL_METRICS[3]):.4f}")
312
  user_evaluation_variables.MISS_RATE = float(f"{np.mean(user_evaluation_variables.EVAL_METRICS[4]):.4f}")
313
- user_evaluation_variables.EVAL_ID = ''.join(random.choices(string.ascii_letters + string.digits, k=16))
314
  user_evaluation_variables.DATE = datetime.datetime.utcnow().strftime('%d-%m-%Y')
315
  user_evaluation_variables.TIME = datetime.datetime.utcnow().strftime('%H:%M:%S')
316
  user_evaluation_variables.RUN_TIME = str(datetime.timedelta(seconds=elapsedTime)).split(".")[0]
@@ -378,7 +378,7 @@ def initiate_task_oriented_bias_evaluation(tab, modelID, specs, target, imagesTa
378
  user_evaluation_variables.HALLUCINATION = float(f"{np.mean(user_evaluation_variables.EVAL_METRICS[3]):.4f}")
379
  user_evaluation_variables.MISS_RATE = float(f"{np.mean(user_evaluation_variables.EVAL_METRICS[4]):.4f}")
380
  user_evaluation_variables.TASK_TARGET = target.lower()
381
- user_evaluation_variables.EVAL_ID = ''.join(random.choices(string.ascii_letters + string.digits, k=16))
382
  user_evaluation_variables.DATE = datetime.datetime.utcnow().strftime('%d-%m-%Y')
383
  user_evaluation_variables.TIME = datetime.datetime.utcnow().strftime('%H:%M:%S')
384
  user_evaluation_variables.RUN_TIME = str(datetime.timedelta(seconds=elapsedTime)).split(".")[0]
 
310
  user_evaluation_variables.DIST_BIAS = float(f"{user_evaluation_variables.EVAL_METRICS[2]:.4f}")
311
  user_evaluation_variables.HALLUCINATION = float(f"{np.mean(user_evaluation_variables.EVAL_METRICS[3]):.4f}")
312
  user_evaluation_variables.MISS_RATE = float(f"{np.mean(user_evaluation_variables.EVAL_METRICS[4]):.4f}")
313
+ user_evaluation_variables.EVAL_ID = 'G_'+''.join(random.choices(string.ascii_letters + string.digits, k=16))
314
  user_evaluation_variables.DATE = datetime.datetime.utcnow().strftime('%d-%m-%Y')
315
  user_evaluation_variables.TIME = datetime.datetime.utcnow().strftime('%H:%M:%S')
316
  user_evaluation_variables.RUN_TIME = str(datetime.timedelta(seconds=elapsedTime)).split(".")[0]
 
378
  user_evaluation_variables.HALLUCINATION = float(f"{np.mean(user_evaluation_variables.EVAL_METRICS[3]):.4f}")
379
  user_evaluation_variables.MISS_RATE = float(f"{np.mean(user_evaluation_variables.EVAL_METRICS[4]):.4f}")
380
  user_evaluation_variables.TASK_TARGET = target.lower()
381
+ user_evaluation_variables.EVAL_ID = 'T_'+''.join(random.choices(string.ascii_letters + string.digits, k=16))
382
  user_evaluation_variables.DATE = datetime.datetime.utcnow().strftime('%d-%m-%Y')
383
  user_evaluation_variables.TIME = datetime.datetime.utcnow().strftime('%H:%M:%S')
384
  user_evaluation_variables.RUN_TIME = str(datetime.timedelta(seconds=elapsedTime)).split(".")[0]