Prime Cai commited on
Commit
1e4ac66
·
1 Parent(s): c22dc8b
Files changed (1) hide show
  1. app.py +7 -41
app.py CHANGED
@@ -70,75 +70,39 @@ def generate_image(
70
 
71
  def get_samples():
72
  sample_list = [
 
 
 
 
73
  {
74
  "image": "assets/wanrong_character.png",
75
  "text": "A chibi-style girl with pink hair, green eyes, wearing a black and gold ornate dress, dancing gracefully in a flower garden, anime art style with clean and detailed lines.",
76
- # "gemini_prompt": True,
77
- # "guidance": 3.5,
78
- # "i_guidance": 1.0,
79
- # "t_guidance": 1.0,
80
  },
81
  {
82
  "image": "assets/ben_character_squared.png",
83
  "text": "A confident green-eye young woman with platinum blonde hair in a high ponytail, wearing an oversized orange jacket and black pants, is striking a dynamic pose, anime-style with sharp details and vibrant colors.",
84
- # "gemini_prompt": True,
85
- # "guidance": 3.5,
86
- # "i_guidance": 1.0,
87
- # "t_guidance": 1.0,
88
- },
89
- {
90
- "image": "assets/seededit_example.png",
91
- "text": "an adorable small creature with big round orange eyes, fluffy brown fur, wearing a blue scarf with a golden charm, sitting atop a towering stack of colorful books in the middle of a vibrant futuristic city street with towering buildings and glowing neon signs, soft daylight illuminating the scene, detailed and whimsical 3D style.",
92
- # "gemini_prompt": True,
93
- # "guidance": 3.5,
94
- # "i_guidance": 1.0,
95
- # "t_guidance": 1.0,
96
  },
97
  {
98
  "image": "assets/action_hero_figure.jpeg",
99
  "text": "A cartoonish muscular action hero figure with long blue hair and red headband sits on a crowded sidewalk on a Christmas evening, covered in snow and wearing a Christmas hat, holding a sign that reads 'DSD!', dramatic cinematic lighting, close-up view, 3D-rendered in a stylized, vibrant art style.",
100
- # "gemini_prompt": True,
101
- # "guidance": 3.5,
102
- # "i_guidance": 1.0,
103
- # "t_guidance": 1.0,
104
  },
105
  {
106
  "image": "assets/anime_soldier.jpeg",
107
  "text": "An adorable cartoon goat soldier sits under a beach umbrella with 'DSD!' written on it, bright teal background with soft lighting, 3D-rendered in a playful and vibrant art style.",
108
- # "gemini_prompt": True,
109
- # "guidance": 3.5,
110
- # "i_guidance": 1.0,
111
- # "t_guidance": 1.0,
112
  },
113
  {
114
  "image": "assets/goat_logo.jpeg",
115
  "text": "A shirt with this logo on it.",
116
- # "gemini_prompt": True,
117
- # "guidance": 3.5,
118
- # "i_guidance": 1.0,
119
- # "t_guidance": 1.0,
120
  },
121
  {
122
  "image": "assets/cartoon_cat.png",
123
  "text": "A cheerful cartoon orange cat sits under a beach umbrella with 'DSD!' written on it under a sunny sky, simplistic and humorous comic art style.",
124
- # "gemini_prompt": True,
125
- # "guidance": 3.5,
126
- # "i_guidance": 1.0,
127
- # "t_guidance": 1.0,
128
  },
129
  ]
130
  return [
131
  [
132
  Image.open(sample["image"]),
133
  sample["text"],
134
- # sample["gemini_prompt"],
135
- # sample["guidance"],
136
- # sample["i_guidance"],
137
- # sample["t_guidance"],
138
- # True,
139
- # 3.5,
140
- # 1.0,
141
- # 1.0
142
  ]
143
  for sample in sample_list
144
  ]
@@ -153,7 +117,9 @@ with demo:
153
  <h2>Diffusion Self-Distillation (beta)</h2>
154
  <a href="https://primecai.github.io/dsd/" target="_blank"><img src="https://img.shields.io/badge/Project-Website-blue" style="display:inline-block;"></a>
155
  <a href="https://github.com/primecai/diffusion-self-distillation" target="_blank"><img src="https://img.shields.io/github/stars/primecai/diffusion-self-distillation?label=GitHub%20%E2%98%85&logo=github&color=green" style="display:inline-block;"></a>
156
- <a href="https://huggingface.co/papers/2411.18616" target="_blank"><img src="https://img.shields.io/badge/Hugging%20Face-Space-yellow" style="display:inline-block;"></a>
 
 
157
  <a href="https://x.com/prime_cai?lang=en" target="_blank"><img src="https://img.shields.io/twitter/follow/prime_cai?style=social" style="display:inline-block;"></a>
158
  </div>
159
  """
 
70
 
71
  def get_samples():
72
  sample_list = [
73
+ {
74
+ "image": "assets/seededit_example.png",
75
+ "text": "an adorable small creature with big round orange eyes, fluffy brown fur, wearing a blue scarf with a golden charm, sitting atop a towering stack of colorful books in the middle of a vibrant futuristic city street with towering buildings and glowing neon signs, soft daylight illuminating the scene, detailed and whimsical 3D style.",
76
+ },
77
  {
78
  "image": "assets/wanrong_character.png",
79
  "text": "A chibi-style girl with pink hair, green eyes, wearing a black and gold ornate dress, dancing gracefully in a flower garden, anime art style with clean and detailed lines.",
 
 
 
 
80
  },
81
  {
82
  "image": "assets/ben_character_squared.png",
83
  "text": "A confident green-eye young woman with platinum blonde hair in a high ponytail, wearing an oversized orange jacket and black pants, is striking a dynamic pose, anime-style with sharp details and vibrant colors.",
 
 
 
 
 
 
 
 
 
 
 
 
84
  },
85
  {
86
  "image": "assets/action_hero_figure.jpeg",
87
  "text": "A cartoonish muscular action hero figure with long blue hair and red headband sits on a crowded sidewalk on a Christmas evening, covered in snow and wearing a Christmas hat, holding a sign that reads 'DSD!', dramatic cinematic lighting, close-up view, 3D-rendered in a stylized, vibrant art style.",
 
 
 
 
88
  },
89
  {
90
  "image": "assets/anime_soldier.jpeg",
91
  "text": "An adorable cartoon goat soldier sits under a beach umbrella with 'DSD!' written on it, bright teal background with soft lighting, 3D-rendered in a playful and vibrant art style.",
 
 
 
 
92
  },
93
  {
94
  "image": "assets/goat_logo.jpeg",
95
  "text": "A shirt with this logo on it.",
 
 
 
 
96
  },
97
  {
98
  "image": "assets/cartoon_cat.png",
99
  "text": "A cheerful cartoon orange cat sits under a beach umbrella with 'DSD!' written on it under a sunny sky, simplistic and humorous comic art style.",
 
 
 
 
100
  },
101
  ]
102
  return [
103
  [
104
  Image.open(sample["image"]),
105
  sample["text"],
 
 
 
 
 
 
 
 
106
  ]
107
  for sample in sample_list
108
  ]
 
117
  <h2>Diffusion Self-Distillation (beta)</h2>
118
  <a href="https://primecai.github.io/dsd/" target="_blank"><img src="https://img.shields.io/badge/Project-Website-blue" style="display:inline-block;"></a>
119
  <a href="https://github.com/primecai/diffusion-self-distillation" target="_blank"><img src="https://img.shields.io/github/stars/primecai/diffusion-self-distillation?label=GitHub%20%E2%98%85&logo=github&color=green" style="display:inline-block;"></a>
120
+ <a href="https://huggingface.co/papers/2411.18616" target="_blank"><img src="https://img.shields.io/badge/🤗%20Hugging%20Face-Space-yellow" style="display:inline-block;"></a>
121
+ <a href="https://huggingface.co/datasets/primecai/dsd_data" target="_blank"><img src="https://img.shields.io/badge/%F0%9F%A4%97%20HuggingFace%20-Data-yellow" style="display:inline-block;"></a>
122
+ <a href="https://huggingface.co/datasets/primecai/dsd_model" target="_blank"><img src="https://img.shields.io/badge/🤗%20Hugging%20Face%20-Model-green" style="display:inline-block;"></a>
123
  <a href="https://x.com/prime_cai?lang=en" target="_blank"><img src="https://img.shields.io/twitter/follow/prime_cai?style=social" style="display:inline-block;"></a>
124
  </div>
125
  """