From f12feb66e7e844b46c93802e615b052d40779b84 Mon Sep 17 00:00:00 2001 From: tjayrush Date: Tue, 5 Mar 2024 21:10:02 -0500 Subject: [PATCH] Playing --- dalle.go | 31 +++++++++++++++++++------------ series.txt | 2 +- view.1.sh | 11 ++++++++--- 3 files changed, 28 insertions(+), 16 deletions(-) diff --git a/dalle.go b/dalle.go index 006173b..6309271 100644 --- a/dalle.go +++ b/dalle.go @@ -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}}. @@ -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 diff --git a/series.txt b/series.txt index 67deb9a..9cd47e8 100644 --- a/series.txt +++ b/series.txt @@ -1 +1 @@ -solar +00002 diff --git a/view.1.sh b/view.1.sh index eb0cb54..9c9024d 100755 --- a/view.1.sh +++ b/view.1.sh @@ -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"