Skip to content

Commit

Permalink
Playing
Browse files Browse the repository at this point in the history
  • Loading branch information
tjayrush committed Mar 6, 2024
1 parent 85b1aa6 commit f12feb6
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 16 deletions.
31 changes: 19 additions & 12 deletions dalle.go
Original file line number Diff line number Diff line change
Expand Up @@ -61,18 +61,23 @@ type Dalledress struct {
Terse Value `json:"terse"`
}

var promptTemplate = `Draw a {{.Adverb.Val}} {{.Adjective.Val}} {{.Noun.Val}} {{.Gerunds.Val}} and feeling {{.EmotionShort.Val}}{{.Ens}}.
Noun: {{.Noun.Val}}.
Emotion: {{.Emotion.Val}}.
Gerunds: {{.Gerunds.Val}}.
Primary style: {{.Style.Val}}.
Use only the colors {{.Color1.Val}} and {{.Color2.Val}}.
// var promptTemplateOld = `Draw a {{.Adverb.Val}} {{.Adjective.Val}} {{.Noun.Val}} {{.Gerunds.Val}} and feeling {{.EmotionShort.Val}}{{.Ens}}.
// Noun: {{.Noun.Val}}.
// Emotion: {{.Emotion.Val}}.
// Gerunds: {{.Gerunds.Val}}.
// Primary style: {{.Style.Val}}.
// Use only the colors {{.Color1.Val}} and {{.Color2.Val}}.
// {{.Orientation.Val}}.
// {{.Background.Val}}.
// Expand upon the most relevant connotative meanings of {{.Noun.Val}}, {{.Emotion.Val}}, {{.Adjective.Val}}, and {{.Adverb.Val}}.
// Find the representation that most closely matches the description.
// Focus on the Noun, the Gerunds, the Emotion, and Primary style.{{.Literary.Val}}
// DO NOT PUT ANY TEXT IN THE IMAGE.`

var promptTemplate = `Draw a {{.Adverb.Val}} {{.Adjective.Val}} {{.Noun.Val}} {{.Gerunds.Val}} in the style of {{.Style.Val}}.
{{.Orientation.Val}}.
{{.Background.Val}}.
Expand upon the most relevant connotative meanings of {{.Noun.Val}}, {{.Emotion.Val}}, {{.Adjective.Val}}, and {{.Adverb.Val}}.
Find the representation that most closely matches the description.
Focus on the Noun, the Gerunds, the Emotion, and Primary style.{{.Literary.Val}}
DO NOT PUT ANY TEXT IN THE IMAGE.`
Include the two most obvious connotations of "{{.Noun.Val}}", "{{.Adjective.Val}}", and "{{.Adverb.Val}}" in your work.
{{.Literary.Val}}`

var dataTemplate = `
Address: {{.Addr}} Ens: {{.Ens}}.
Expand All @@ -87,7 +92,9 @@ Variant1: {{.Variant1.Val}} Variant2: {{.Variant2.Val}} Variant3: {{.Variant3
Background: {{.Background.Val}}.
Orientation: {{.Orientation.Val}}.`

var terseTemplate = `{{.Adverb.Val}} {{.Adjective.Val}} {{.Noun.Val}} {{.Gerunds.Val}} and feeling {{.Emotion.Val}} in the style of {{.ShortStyle}}`
// var terseTemplate = `{{.Adverb.Val}} {{.Adjective.Val}} {{.Noun.Val}} {{.Gerunds.Val}} and feeling {{.Emotion.Val}} in the style of {{.ShortStyle}}`

var terseTemplate = `{{.Adverb.Val}} {{.Adjective.Val}} {{.Noun.Val}} in the style of {{.ShortStyle}}`

func (d *Dalledress) generatePrompt(t *template.Template, f func(s string) string) (string, error) {
var buffer bytes.Buffer
Expand Down
2 changes: 1 addition & 1 deletion series.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
solar
00002
11 changes: 8 additions & 3 deletions view.1.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,14 @@ rm -f viewing/*
#cp -p annotated/$1*human-like.png viewing/
#cp -p annotated/$1*happiness.png viewing/
#cp -p annotated/$1*postal.png viewing/
#cp -p annotated/$1*fury.png viewing/
cp -p annotated/$1*fury.png viewing/
#cp -p annotated/$1*love.png viewing/
cp -p annotated/$1*human.png viewing/
cp -p annotated/$1*human2.png viewing/
#cp -p annotated/$1*human.png viewing/
#cp -p annotated/$1*human2.png viewing/
#cp -p annotated/$1*steam.png viewing/
#cp -p annotated/$1*solar.png viewing/
#cp -p annotated/$1*00000.png viewing/
#cp -p annotated/$1*00001.png viewing/
cp -p annotated/*00002.png viewing/
open viewing
read -p "Press Enter to continue"

0 comments on commit f12feb6

Please sign in to comment.