Tahereh commited on
Commit
849bd98
·
1 Parent(s): 226318e

added Mooney

Browse files
Files changed (2) hide show
  1. app.py +21 -2
  2. stimuli/Mooney_face1.png +0 -0
app.py CHANGED
@@ -83,6 +83,25 @@ examples = [
83
  "epsilon": 198.62
84
  }
85
  },
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
86
  {
87
  "image": os.path.join("stimuli", "Neon_Color_Circle.jpg"),
88
  "name": "Neon Color Spreading",
@@ -344,7 +363,7 @@ def apply_example(example):
344
  ]
345
 
346
  # Define the interface
347
- with gr.Blocks(title="Generative Inference for Psychiatry Demo", css="""
348
  .purple-button {
349
  background-color: #8B5CF6 !important;
350
  color: white !important;
@@ -354,7 +373,7 @@ with gr.Blocks(title="Generative Inference for Psychiatry Demo", css="""
354
  background-color: #7C3AED !important;
355
  }
356
  """) as demo:
357
- gr.Markdown("# Generative Inference for Psychiatry Demo")
358
  gr.Markdown("This demo showcases how neural networks can perceive visual illusions and develop Gestalt principles of perceptual organization through generative inference.")
359
 
360
  gr.Markdown("""
 
83
  "epsilon": 198.62
84
  }
85
  },
86
+ {
87
+ "image": os.path.join("stimuli", "Mooney_face1.png"),
88
+ "name": "Mooney Face",
89
+ "wiki": "https://en.wikipedia.org/wiki/Mooney_faces",
90
+ "papers": [
91
+ "[Face Recognition](https://en.wikipedia.org/wiki/Face_perception)",
92
+ "[Perceptual Organization](https://doi.org/10.1016/j.tics.2003.08.003)"
93
+ ],
94
+ "method": "Prior-Guided Drift Diffusion",
95
+ "reverse_diff": {
96
+ "model": "resnet50_robust_face",
97
+ "layer": "layer4",
98
+ "initial_noise": 0.0,
99
+ "diffusion_noise": 0.006,
100
+ "step_size": 0.18,
101
+ "iterations": 100,
102
+ "epsilon": 9.53
103
+ }
104
+ },
105
  {
106
  "image": os.path.join("stimuli", "Neon_Color_Circle.jpg"),
107
  "name": "Neon Color Spreading",
 
363
  ]
364
 
365
  # Define the interface
366
+ with gr.Blocks(title="Generative Inference for Psychiatry Demo (in development, not ready for public use)", css="""
367
  .purple-button {
368
  background-color: #8B5CF6 !important;
369
  color: white !important;
 
373
  background-color: #7C3AED !important;
374
  }
375
  """) as demo:
376
+ gr.Markdown("# Generative Inference for Psychiatry Demo (in development, not ready for public use)")
377
  gr.Markdown("This demo showcases how neural networks can perceive visual illusions and develop Gestalt principles of perceptual organization through generative inference.")
378
 
379
  gr.Markdown("""
stimuli/Mooney_face1.png ADDED