sashavor commited on
Commit
b02d3db
1 Parent(s): 452f3b2

adding explanation texts

Browse files
Files changed (1) hide show
  1. app.py +11 -5
app.py CHANGED
@@ -47,11 +47,12 @@ with gr.Blocks() as demo:
47
  gr.Markdown("""
48
  ### Exploring Biases
49
  """)
50
-
51
-
 
52
  with gr.Accordion("Exploring Biases", open=False):
53
  gr.HTML('''
54
- <p style="margin-bottom: 14px; font-size: 100%"> We also explore the correlations between the professions that use used in our prompts and the different identity clusters that we identified. <br> Using both the <a href='https://huggingface.co/spaces/society-ethics/DiffusionClustering' style='text-decoration: underline;' target='_blank'> Diffusion Cluster Explorer </a> and the <a href='https://huggingface.co/spaces/society-ethics/DiffusionFaceClustering' style='text-decoration: underline;' target='_blank'> Identity Representation Demo </a>, we can see which clusters are most correlated with each profession and what identities are in these clusters.</p>
55
  ''')
56
  with gr.Row():
57
  with gr.Column():
@@ -82,7 +83,9 @@ with gr.Blocks() as demo:
82
  gr.Markdown("""
83
  ### Comparing Model Generations
84
  """)
85
-
 
 
86
  with gr.Accordion("Comparing Model Generations", open=False):
87
  gr.HTML('''
88
  <p style="margin-bottom: 14px; font-size: 100%"> One of the goals of our study was allowing users to compare model generations across professions in an open-ended way, uncovering patterns and trends on their own. This is why we created the <a href='https://huggingface.co/spaces/society-ethics/DiffusionBiasExplorer' style='text-decoration: underline;' target='_blank'> Diffusion Bias Explorer </a> and the <a href='https://huggingface.co/spaces/society-ethics/Average_diffusion_faces' style='text-decoration: underline;' target='_blank'> Average Diffusion Faces </a> tools. We show some of their functionalities below: </p> ''')
@@ -106,6 +109,9 @@ with gr.Blocks() as demo:
106
  gr.Markdown("""
107
  ### Exploring the Pixel Space of Generated Images
108
  """)
 
 
 
109
  with gr.Accordion("Exploring the Pixel Space of Generated Images", open=False):
110
  gr.HTML('''
111
  <br>
@@ -120,7 +126,7 @@ with gr.Blocks() as demo:
120
  ### All of the tools created as part of this project:
121
  """)
122
  gr.HTML('''
123
- <p style="margin-bottom: 10px; font-size: 100%">
124
  <a href='https://huggingface.co/spaces/society-ethics/Average_diffusion_faces' style='text-decoration: underline;' target='_blank'> Average Diffusion Faces </a> <br>
125
  <a href='https://huggingface.co/spaces/society-ethics/DiffusionBiasExplorer' style='text-decoration: underline;' target='_blank'> Diffusion Bias Explorer </a> <br>
126
  <a href='https://huggingface.co/spaces/society-ethics/DiffusionClustering' style='text-decoration: underline;' target='_blank'> Diffusion Cluster Explorer </a> <br>
 
47
  gr.Markdown("""
48
  ### Exploring Biases
49
  """)
50
+ gr.Markdown("""
51
+ Machine Learning models encode and amplify biases that are represented in the data that they are trained on -this can include, for instance, stereotypes around the appearances of members of different professions. In our study, we prompted the 3 text-to-image models with texts pertaining to 150 different professions and analyzed the presence of different identity groups in the images generated. We found evidence of many societal stereotypes in the images generated, such as the fact that people in positions of power (e.g. director, CEO) are often White- and male-appearing, while the images generated for other professions are more diverse. Read more about our findings in the accordion below or directly via the [Diffusion Cluster Explorer](https://huggingface.co/spaces/society-ethics/DiffusionClustering) tool.
52
+ """)
53
  with gr.Accordion("Exploring Biases", open=False):
54
  gr.HTML('''
55
+ <p style="margin-bottom: 14px; font-size: 100%"> We also explore the correlations between the professions that use used in our prompts and the different identity clusters that we identified. <br> Using both the <a href='https://huggingface.co/spaces/society-ethics/DiffusionClustering' style='text-decoration: underline;' target='_blank'> Diffusion Cluster Explorer </a> and the <a href='https://huggingface.co/spaces/society-ethics/DiffusionFaceClustering' style='text-decoration: underline;' target='_blank'> Identity Representation Demo </a>, we can see which clusters are most correlated with each profession and what identities are in these clusters.</p>
56
  ''')
57
  with gr.Row():
58
  with gr.Column():
 
83
  gr.Markdown("""
84
  ### Comparing Model Generations
85
  """)
86
+ gr.Markdown("""
87
+ Above and beyond quantitative analyses, one of the main goals of our project was to create accessible ways for the users to explore the generated images themselves, based on their own interests. For this purpose, we created two interactive tools: the [Diffusion Bias Explorer](https://huggingface.co/spaces/society-ethics/DiffusionBiasExplorer), which can be used to compare two models and the images they generate for a given profession or for a given model across two professions, and the [Average Diffusion Faces Tool](https://huggingface.co/spaces/society-ethics/Average_diffusion_faces), which shows an 'average' representation of faces across professions, based on the images generated by the 3 models.
88
+ """)
89
  with gr.Accordion("Comparing Model Generations", open=False):
90
  gr.HTML('''
91
  <p style="margin-bottom: 14px; font-size: 100%"> One of the goals of our study was allowing users to compare model generations across professions in an open-ended way, uncovering patterns and trends on their own. This is why we created the <a href='https://huggingface.co/spaces/society-ethics/DiffusionBiasExplorer' style='text-decoration: underline;' target='_blank'> Diffusion Bias Explorer </a> and the <a href='https://huggingface.co/spaces/society-ethics/Average_diffusion_faces' style='text-decoration: underline;' target='_blank'> Average Diffusion Faces </a> tools. We show some of their functionalities below: </p> ''')
 
109
  gr.Markdown("""
110
  ### Exploring the Pixel Space of Generated Images
111
  """)
112
+ gr.Markdown("""
113
+ Finally, an interesting aspect of the generations of the 3 models are the images themselves, which can be analyzed from different angles on a pixel-level. We explore the images in terms of their colorfulness using the [Colorfulness Profession Explorer](https://huggingface.co/spaces/tti-bias/identities-colorfulness-knn) and the [Colorfulness Identities Explorer](https://huggingface.co/spaces/tti-bias/professions-colorfulness-knn), which allow users to hone in on patterns in terms of colors and shades within the images generated. We also allow exploration of the images in terms of their visual features using the bag-of-visual-words approach (BoVW), which allows users to hone in on visual stereotypical content such as professions that have uniforms of a given color, of elements like glasses and hair styles -- this can be done via the [BoVW Nearest Neighbors Explorer](https://huggingface.co/spaces/tti-bias/identities-bovw-knn) and the [BoVW Professions Explorer](https://huggingface.co/spaces/tti-bias/professions-bovw-knn) -- we also present some of our salient findings in the accordion below.
114
+ """)
115
  with gr.Accordion("Exploring the Pixel Space of Generated Images", open=False):
116
  gr.HTML('''
117
  <br>
 
126
  ### All of the tools created as part of this project:
127
  """)
128
  gr.HTML('''
129
+ <p style="margin-bottom: 10px; font-size: 110%">
130
  <a href='https://huggingface.co/spaces/society-ethics/Average_diffusion_faces' style='text-decoration: underline;' target='_blank'> Average Diffusion Faces </a> <br>
131
  <a href='https://huggingface.co/spaces/society-ethics/DiffusionBiasExplorer' style='text-decoration: underline;' target='_blank'> Diffusion Bias Explorer </a> <br>
132
  <a href='https://huggingface.co/spaces/society-ethics/DiffusionClustering' style='text-decoration: underline;' target='_blank'> Diffusion Cluster Explorer </a> <br>