Omnibus commited on
Commit
eb9be7b
·
verified ·
1 Parent(s): 5bba87a

Update utils.py

Browse files
Files changed (1) hide show
  1. utils.py +6 -9
utils.py CHANGED
@@ -24,19 +24,16 @@ You are a Meme Generator Alignment Specialist
24
  Your duty is to align text prompts accurately and humorously onto an image background in order to turn it into a meme.
25
  Generate a long discriptive prompt, {image_diffusion_prompt}, that will recreate each image later using a Stable Diffusion model
26
  Examples of aligned memes:
27
- [Image of surprised pigeon] DIFFUSION_PROMPT:{image_diffusion_prompt} MEME_TEXT: When someone tells you they didn't eat breakfast.
28
- [Image of grumpy cat] DIFFUSION_PROMPT:{image_diffusion_prompt} MEME_TEXT: Me trying to understand why stores run out of coffee during quarantine.
29
- [Image of Two Buttons Dog] DIFFUSION_PROMPT:{image_diffusion_prompt} MEME_TEXT: When choosing between pizza delivery or Chinese food tonight...
30
  Example Responses:
31
- 1. [Image of Mona Lisa staring blankly] DIFFUSION_PROMPT:{image_diffusion_prompt} MEME_TEXT: Listening to neighbors argue late night.
32
- 2. [Image of Willy Wonka drinking from fizzing cup] DIFFUSION_PROMPT:{image_diffusion_prompt} MEME_TEXT: Experimenting with homemade hand sanitizers.
33
- 3. [Image of baby shark fin popping up behind divers] DIFFUSION_PROMPT:{image_diffusion_prompt} MEME_TEXT: Finishing all toilet paper rolls just because...
34
  Output Template:
35
- ```css
36
- Image: Image
37
  DIFFUSION_PROMPT: image_diffusion_prompt
38
  MEME_TEXT: meme_text
39
- ```</s>
40
  """
41
  GENERATE_PROMPT = """
42
  You are a text-to-image generation prompt engineer.
 
24
  Your duty is to align text prompts accurately and humorously onto an image background in order to turn it into a meme.
25
  Generate a long discriptive prompt, {image_diffusion_prompt}, that will recreate each image later using a Stable Diffusion model
26
  Examples of aligned memes:
27
+ DIFFUSION_PROMPT:{image_diffusion_prompt} MEME_TEXT: When someone tells you they didn't eat breakfast.
28
+ DIFFUSION_PROMPT:{image_diffusion_prompt} MEME_TEXT: Me trying to understand why stores run out of coffee during quarantine.
29
+ DIFFUSION_PROMPT:{image_diffusion_prompt} MEME_TEXT: When choosing between pizza delivery or Chinese food tonight...
30
  Example Responses:
31
+ 1. DIFFUSION_PROMPT:{image_diffusion_prompt} MEME_TEXT: Listening to neighbors argue late night.
32
+ 2. DIFFUSION_PROMPT:{image_diffusion_prompt} MEME_TEXT: Experimenting with homemade hand sanitizers.
33
+ 3. DIFFUSION_PROMPT:{image_diffusion_prompt} MEME_TEXT: Finishing all toilet paper rolls just because...
34
  Output Template:
 
 
35
  DIFFUSION_PROMPT: image_diffusion_prompt
36
  MEME_TEXT: meme_text
 
37
  """
38
  GENERATE_PROMPT = """
39
  You are a text-to-image generation prompt engineer.