cjwbw/hard-prompts-made-easy ๐Ÿ–ผ๏ธโ“๐Ÿ”ข๐Ÿ“ โ†’ โ“

โ–ถ๏ธ 678 runs ๐Ÿ“… Feb 2023 โš™๏ธ Cog 0.6.1 ๐Ÿ”— GitHub ๐Ÿ“„ Paper โš–๏ธ License
image-to-image text-to-image

Performance

181.2sTypical run time
678Total runs

About

Gradient-Based Discrete Optimization for Prompt Tuning and Discovery

Example Output

Output

{"best_prompt":"fulham children weymouth seaside gita octane equestrian artforsale artists surya pino victorian impressionism romantic impressionist westend ","original_image":"https://replicate.delivery/pbxt/5tcF5wtUzfRUMiOE1sQwagMGj1PsyU4KjiRVl0eFL5jzOsdQA/orig_img.png","generated_images":"https://replicate.delivery/pbxt/0RBhumGLhJJ4PZdiOhzYmMvF6fAza7PKVf0Eo7pKsunzOsdQA/out.png"}

Performance Metrics

181.17s Prediction Time
181.23s Total Time
All Input Parameters
{
  "image_url": "https://a.1stdibscdn.com/alexander-averin-paintings-pony-riding-on-the-beach-post-impressionist-style-oil-painting-for-sale-picture-6/a_7443/a_28523631526593507117/Promenade_detalle_5_master.JPG?disable=upscale&auto=webp&quality=60&width=1318",
  "scheduler": "DPMSolverMultistep",
  "guidance_scale": 9,
  "num_inference_steps": "50"
}
Input Parameters
image Type: string
Input image.
image_url Type: string
Alternatively, you can provide a url link for an image. Ignored when image is uploaded.
scheduler Default: DPMSolverMultistep
Choose a scheduler.
guidance_scale Type: numberDefault: 9Range: 1 - 20
Scale for classifier-free guidance
customised_prompt Type: string
Optional input prompt. By default, a prompt will be learnt by the model for the input image and will be used for generation, but you can also provide your own customised prompt.
num_inference_steps Type: integerDefault: 25Range: 1 - 500
Number of denoising steps
Output Schema

Output

Example Execution Logs
step: 0, lr: 0.1, cosim: 0.136, text: publisher iche historicalmelville purcell foe fr inhifatally authorautomobiclassrooms chill ittleprawns เฎช
step: 100, lr: 0.1, cosim: 0.433, text: twinkle cuties spectators horseracing france primrose ltd impressionist auhorseback hd spectators painting beach seafopposite
step: 200, lr: 0.1, cosim: 0.379, text: children belle raffic demonstrate reviews mcenslump earnest eth sloane affair fineartamerica impressionist coastline marshmalharley
step: 300, lr: 0.1, cosim: 0.315, text: pupils reform chariot dressing mila oils yash burton ๏ฟฝใ‚Š๏ฟฝartistsoncarouoott horseracing portland troubles roseanne
step: 400, lr: 0.1, cosim: 0.441, text: children paints kensington onceuponedward paintings tdf donneinarte onetsy ๐Ÿšฉ thessalโ–ฌโ–ฌhorses coastline malibu cymru
step: 500, lr: 0.1, cosim: 0.353, text: children pixelart trafalgar reinforleonardo vl chandler upstairs juliette automtunibartholpaddlebournemouth promenade leng
step: 600, lr: 0.1, cosim: 0.421, text: children epa voli aravimpressionist lesson osborne londonmarathon auction lourjommusique horse bournemouth acea ๐Ÿ”ฅ๐Ÿ”—
step: 700, lr: 0.1, cosim: 0.359, text: children epa joanneflynn mucha wftv paintings makeinindia artist endeavcharleston tdf emphasibournemouth acea bicycle
step: 800, lr: 0.1, cosim: 0.470, text: juliette nats weymouth princesses downton juliette artist julian quarendeavwells ellen horses beach yokohama bicycle
step: 900, lr: 0.1, cosim: 0.454, text: nicolblossom weymouth children alecoscino orientimpressionist gerald warmhudson michael maya horse beach coastal bicycle
step: 1000, lr: 0.1, cosim: 0.427, text: joannekerala seaside children โƒฃ@ modernism mucha sor ktperljulian ๐Ÿ”ฅ๐Ÿ”— horse beach ยฝ jubilee
step: 1100, lr: 0.1, cosim: 0.258, text: vaus pier stgeorgepupils โƒฃ@ juliette sdcc george blueclane davidalecoscino southampton gail slatcarte
step: 1200, lr: 0.1, cosim: 0.392, text: horse oils paddington girls coomintereharcourt plein parasdubrovjennifer alecoscino paintings jyolyric๏ฟฝ
step: 1300, lr: 0.1, cosim: 0.332, text: hanley tt seaside girls alecoscino sabaredwarpalette yoocelebrknuckalecoscino private alecoscino alecoscino jonathan
step: 1400, lr: 0.1, cosim: 0.376, text: horse edwarvenice children showblenparasantiques stgeorgepiccadhindus alecoscino artist alecoscino inspiring๐Ÿšฉ
step: 1500, lr: 0.1, cosim: 0.402, text: horse ponies ๐ŸŒŠ children gallimpressionist parasonceuponfcblive stgeorgechildren alecoscino david weathercee alecoscino alecoscino
step: 1600, lr: 0.1, cosim: 0.406, text: horse victorian eastbourne sisters artistsondolldonneinarte antiques parasfertchildrenalecoscino main weathercee weathercee alecoscino
step: 1700, lr: 0.1, cosim: 0.306, text: british eid ๐ŸŒŠ gals janetguest rukh hagan impressionism paintings mermaids museumandyweathercee brun๏ฟฝ๏ธ
step: 1800, lr: 0.1, cosim: 0.397, text: bathing ponies seaside girl braestevens impremishsuffravickchildren art andyweathercee weathercee alecoscino
step: 1900, lr: 0.1, cosim: 0.406, text: blonde igh weymouth children donald royo laghateparth joannebebe goodwood suffraart star weathercee plunarti
step: 2000, lr: 0.1, cosim: 0.352, text: promenade weymouth weymouth laghateparth clive cropped laghateparth dubrovnigan monet carriage art front weathercee tourist arti
step: 2100, lr: 0.1, cosim: 0.296, text: prima handicseaside liscavendish display harry plein braeqequestrian amelia front weathercee art art
step: 2200, lr: 0.1, cosim: 0.423, text: enipleasure seaside equestrian horseback harry phoebe ramsay rolls dolores children oprah fb weathercee art fine
step: 2300, lr: 0.1, cosim: 0.364, text: ponies promenade weymouth brighton whitehall lithograph pipe banning principeninsula peregrine oprah fb impending art jiu
step: 2400, lr: 0.1, cosim: 0.409, text: neve ponies waikiki equestrian madeleine mccann cyril almond fine zara yash ๏ฟฝfb impending painting ."-
step: 2500, lr: 0.1, cosim: 0.330, text: weymouth girls tapas yokohama hermann hoppaud gita edwarmango leighton voli fb victoria quanteau
step: 2600, lr: 0.1, cosim: 0.368, text: soyucuties weymouth weymouth clive grossdraujkstaged sienna suffraardo sunil victoria paintings eau
step: 2700, lr: 0.1, cosim: 0.392, text: ciara children beach brighton sureshpprabhu %nascardescripzara imp jane llesusan impressionist alty eid
step: 2800, lr: 0.1, cosim: 0.466, text: lottie girls weymouth weymouth nvfresco ponyoils artists jigsaw haydn victorian contemporary romantic artisan fiorentina
step: 2900, lr: 0.1, cosim: 0.435, text: boardwalk girls seaside weymouth premier equestrian ponies oils britannia parliamcuts fresco demonstration thomasjvskinny
step: 2999, lr: 0.1, cosim: 0.418, text: catalina children beach theartparliampixelart romantic paintings parliamambassadpixelart hd oil horses bonded short
best cosine sim: 0.505692183971405
best prompt: fulham children weymouth seaside gita octane equestrian artforsale artists surya pino victorian impressionism romantic impressionist westend
Generating images with prompt: fulham children weymouth seaside gita octane equestrian artforsale artists surya pino victorian impressionism romantic impressionist westend
  0%|          | 0/50 [00:00<?, ?it/s]
  4%|โ–         | 2/50 [00:00<00:02, 17.35it/s]
  8%|โ–Š         | 4/50 [00:00<00:02, 17.82it/s]
 12%|โ–ˆโ–        | 6/50 [00:00<00:02, 17.91it/s]
 16%|โ–ˆโ–Œ        | 8/50 [00:00<00:02, 18.04it/s]
 20%|โ–ˆโ–ˆ        | 10/50 [00:00<00:02, 18.11it/s]
 24%|โ–ˆโ–ˆโ–       | 12/50 [00:00<00:02, 18.13it/s]
 28%|โ–ˆโ–ˆโ–Š       | 14/50 [00:00<00:01, 18.19it/s]
 32%|โ–ˆโ–ˆโ–ˆโ–      | 16/50 [00:00<00:01, 17.94it/s]
 36%|โ–ˆโ–ˆโ–ˆโ–Œ      | 18/50 [00:00<00:01, 18.02it/s]
 40%|โ–ˆโ–ˆโ–ˆโ–ˆ      | 20/50 [00:01<00:01, 17.98it/s]
 44%|โ–ˆโ–ˆโ–ˆโ–ˆโ–     | 22/50 [00:01<00:01, 18.03it/s]
 48%|โ–ˆโ–ˆโ–ˆโ–ˆโ–Š     | 24/50 [00:01<00:01, 18.14it/s]
 52%|โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–    | 26/50 [00:01<00:01, 18.22it/s]
 56%|โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–Œ    | 28/50 [00:01<00:01, 18.26it/s]
 60%|โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆ    | 30/50 [00:01<00:01, 18.24it/s]
 64%|โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–   | 32/50 [00:01<00:00, 18.25it/s]
 68%|โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–Š   | 34/50 [00:01<00:00, 18.12it/s]
 72%|โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–  | 36/50 [00:01<00:00, 18.13it/s]
 76%|โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–Œ  | 38/50 [00:02<00:00, 17.91it/s]
 80%|โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆ  | 40/50 [00:02<00:00, 17.99it/s]
 84%|โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ– | 42/50 [00:02<00:00, 18.04it/s]
 88%|โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–Š | 44/50 [00:02<00:00, 18.05it/s]
 92%|โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–| 46/50 [00:02<00:00, 18.14it/s]
 96%|โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–Œ| 48/50 [00:02<00:00, 18.23it/s]
100%|โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆ| 50/50 [00:02<00:00, 18.30it/s]
100%|โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆ| 50/50 [00:02<00:00, 18.10it/s]
Version Details
Version ID
40dc3d4f02fa895b3835fe669d83f196724cbe1bd6298a8dd951494221f43686
Version Created
February 12, 2023
Run on Replicate โ†’