Spaces:
Sleeping
Sleeping
Checked for V2.0
Browse files
general_bias_measurement.py
CHANGED
@@ -199,10 +199,7 @@ def evaluate_t2i_model_images(images, prompts, progressBar, debugging, evalType)
|
|
199 |
miss = 1-detection
|
200 |
CLIPErrors.append(error)
|
201 |
CLIPMissRates.append(miss)
|
202 |
-
|
203 |
-
# st.write("$M_G = $", miss)
|
204 |
-
|
205 |
-
# outputMetrics.append([H_P, H_N, H_JI, errorFULL, missFULL, errorSUBJECT, missSUBJECT])
|
206 |
# sort distribution bias dictionary
|
207 |
sortedDistributionBiasDict = dict(sorted(distributionBiasDICT.items(), key=lambda item: item[1], reverse=True))
|
208 |
# update_distribution_bias(image, prompt, caption)
|
|
|
199 |
miss = 1-detection
|
200 |
CLIPErrors.append(error)
|
201 |
CLIPMissRates.append(miss)
|
202 |
+
|
|
|
|
|
|
|
203 |
# sort distribution bias dictionary
|
204 |
sortedDistributionBiasDict = dict(sorted(distributionBiasDICT.items(), key=lambda item: item[1], reverse=True))
|
205 |
# update_distribution_bias(image, prompt, caption)
|