Skip to content
This repository has been archived by the owner on Oct 4, 2024. It is now read-only.

Commit

Permalink
fixed bugs of the ai
Browse files Browse the repository at this point in the history
  • Loading branch information
SchwarzRene committed Apr 25, 2024
1 parent f4efce8 commit 92dd294
Show file tree
Hide file tree
Showing 117 changed files with 1,199 additions and 19 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
Input:
You are a very creative artist.
Thing of something extraordinary.
thing of something what you can add to this image to make it magic and special
think in a way that inspires people and which makes them happy
do not describe the style of the new image mention that no areas should be filled and style is black and white linestyle
be very creative for example to a house you could add a garden or to a car a trailer you can even draw a truck out of a car
the description should be something which makes sense
the description should include that only thick lines should be drawn
The image description is
<INPUT>
New image description:




Output:
Think in black and white linestyle, no areas should be filled. Adding to the image will make it magical and special. Imagine a tall mountain landscape with snowy peaks rising high into the sky. In the foreground there are large boulders scattered across the ground, some of them have small trees growing out of them. A thick mist rises from behind the mountains
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
Input:
You are a very creative artist.
Thing of something extraordinary.
thing of something what you can add to this image to make it magic and special
think in a way that inspires people and which makes them happy
do not describe the style of the new image mention that no areas should be filled and style is black and white linestyle
be very creative for example to a house you could add a garden or to a car a trailer you can even draw a truck out of a car
the description should be something which makes sense
the description should include that only thick lines should be drawn
The image description is
<INPUT>
New image description:




Output:
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
Input:




Output:
You are a very creative artist.
Thing of something extraordinary.
thing of something what you can add to this image to make it magic and special
think in a way that inspires people and which makes them happy
do not describe the style of the new image mention that no areas should be filled and style is black and white linestyle
be very creative for example to a house you could add a garden or to a car a trailer you can even draw a truck out of a car
the description should be something which makes sense
the description should include that only thick lines should be drawn
The image description is
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
Input:




Output:
<INPUT>
New image description:
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
{
"llm-path": "./weights/llm/llama-2-7b-chat.ggmlv3.q8_0.bin",
"llm-model": "mistral",
"llm-layers": 15,

"stable-config-path": "./model/layers/stable.json",
"stable-path": "runwayml/stable-diffusion-v1-5",
"docu-path": "./documentation/",
"original-image-path": "./images/test.jpg",
"random-line-cache": "./images/rand.jpg",

"output-image-name": "output.png",

"merge-output-folder": "./images/output/",

"string0": "./model/layers/string0.txt",
"string1": "./model/layers/string1.txt",

"network-file": "./model/network.py"
}




Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"imagePath": "./images/rand.jpg",
"cache": "./images/testCache.jpg",
"guidance_scale": 7,
"strength": 0.65
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
You are a very creative artist.
Thing of something extraordinary.
thing of something what you can add to this image to make it magic and special
think in a way that inspires people and which makes them happy
do not describe the style of the new image mention that no areas should be filled and style is black and white linestyle
be very creative for example to a house you could add a garden or to a car a trailer you can even draw a truck out of a car
the description should be something which makes sense
the description should include that only thick lines should be drawn
The image description is
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
<INPUT>
New image description:
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
from utils.layers import *
import json


settings = json.load( open( "./model/config.json", "r") )

input_image = settings[ "original-image-path" ]


inp = Interrogator( "inter1", input_image )
rand = RandomLineDrawer( "rand0", inp, input_image, settings[ "random-line-cache" ], pen_size = 4, num_random_lines = 10 )

simp0 = SimpleString( "simp0", settings[ "string0" ] )
simp1 = SimpleString( "simp1", settings[ "string1" ] )

merg = Merger( "merg1", [ simp0, simp1 ] )

llm = LLM( "llm1", prompt = merg, prevElement = inp, prevElementKey = "<INPUT>" )

diff = StableDiffusion( "diff1", settings[ "stable-config-path" ], llm, rand )

over = Overlapper( "over0",
diff,
input_image,
"./images/testCache.jpg",
mergedOutputFolder = settings[ "merge-output-folder" ],
outputImageName = settings[ "output-image-name" ] )

model = Model( over )
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
Input:
You are a very creative artist.
Thing of something extraordinary.
thing of something what you can add to this image to make it magic and special
think in a way that inspires people and which makes them happy
do not describe the style of the new image mention that no areas should be filled and style is black and white linestyle
be very creative for example to a house you could add a garden or to a car a trailer you can even draw a truck out of a car
the description should be something which makes sense
the description should include that only thick lines should be drawn
The image description is
<INPUT>
New image description:




Output:
You have created an extraordinary black and white linestyle image of a tree in the middle of a vast desert landscape. The tree stands tall with long thin branches that sway gently in the breeze. Surrounding it are rolling sand dunes, some as high as ten feet. The sky above is a brilliant blue with fluffy clouds drifting by. In the distance you can see mountains
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
Input:
You are a very creative artist.
Thing of something extraordinary.
thing of something what you can add to this image to make it magic and special
think in a way that inspires people and which makes them happy
do not describe the style of the new image mention that no areas should be filled and style is black and white linestyle
be very creative for example to a house you could add a garden or to a car a trailer you can even draw a truck out of a car
the description should be something which makes sense
the description should include that only thick lines should be drawn
The image description is
<INPUT>
New image description:




Output:
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
Input:




Output:
You are a very creative artist.
Thing of something extraordinary.
thing of something what you can add to this image to make it magic and special
think in a way that inspires people and which makes them happy
do not describe the style of the new image mention that no areas should be filled and style is black and white linestyle
be very creative for example to a house you could add a garden or to a car a trailer you can even draw a truck out of a car
the description should be something which makes sense
the description should include that only thick lines should be drawn
The image description is
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
Input:




Output:
<INPUT>
New image description:
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
{
"llm-path": "./weights/llm/llama-2-7b-chat.ggmlv3.q8_0.bin",
"llm-model": "mistral",
"llm-layers": 15,

"stable-config-path": "./model/layers/stable.json",
"stable-path": "runwayml/stable-diffusion-v1-5",
"docu-path": "./documentation/",
"original-image-path": "./images/test.jpg",
"random-line-cache": "./images/rand.jpg",

"output-image-name": "output.png",

"merge-output-folder": "./images/output/",

"string0": "./model/layers/string0.txt",
"string1": "./model/layers/string1.txt",

"network-file": "./model/network.py"
}




Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"imagePath": "./images/rand.jpg",
"cache": "./images/testCache.jpg",
"guidance_scale": 7,
"strength": 0.65
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
You are a very creative artist.
Thing of something extraordinary.
thing of something what you can add to this image to make it magic and special
think in a way that inspires people and which makes them happy
do not describe the style of the new image mention that no areas should be filled and style is black and white linestyle
be very creative for example to a house you could add a garden or to a car a trailer you can even draw a truck out of a car
the description should be something which makes sense
the description should include that only thick lines should be drawn
The image description is
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
<INPUT>
New image description:
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
from utils.layers import *
import json


settings = json.load( open( "./model/config.json", "r") )

input_image = settings[ "original-image-path" ]


inp = Interrogator( "inter1", input_image )
rand = RandomLineDrawer( "rand0", inp, input_image, settings[ "random-line-cache" ], pen_size = 4, num_random_lines = 10 )

simp0 = SimpleString( "simp0", settings[ "string0" ] )
simp1 = SimpleString( "simp1", settings[ "string1" ] )

merg = Merger( "merg1", [ simp0, simp1 ] )

llm = LLM( "llm1", prompt = merg, prevElement = inp, prevElementKey = "<INPUT>" )

diff = StableDiffusion( "diff1", settings[ "stable-config-path" ], llm, rand )

over = Overlapper( "over0",
diff,
input_image,
"./images/testCache.jpg",
mergedOutputFolder = settings[ "merge-output-folder" ],
outputImageName = settings[ "output-image-name" ] )

model = Model( over )
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
Input:
You are a very creative artist.
Thing of something extraordinary.
thing of something what you can add to this image to make it magic and special
think in a way that inspires people and which makes them happy
do not describe the style of the new image mention that no areas should be filled and style is black and white linestyle
be very creative for example to a house you could add a garden or to a car a trailer you can even draw a truck out of a car
the description should be something which makes sense
the description should include that only thick lines should be drawn
The image description is
<INPUT>
New image description:




Output:

You have created an extraordinary image. In the center, there's a huge castle surrounded by high walls and tall towers. It looks like it has been standing for centuries, guarded by ancient mythical creatures that are depicted on its stone walls. The castle is surrounded by a lush green forest with trees reaching up to the sky, as if trying to touch the clouds
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
Input:
You are a very creative artist.
Thing of something extraordinary.
thing of something what you can add to this image to make it magic and special
think in a way that inspires people and which makes them happy
do not describe the style of the new image mention that no areas should be filled and style is black and white linestyle
be very creative for example to a house you could add a garden or to a car a trailer you can even draw a truck out of a car
the description should be something which makes sense
the description should include that only thick lines should be drawn
The image description is
<INPUT>
New image description:




Output:
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
Input:




Output:
You are a very creative artist.
Thing of something extraordinary.
thing of something what you can add to this image to make it magic and special
think in a way that inspires people and which makes them happy
do not describe the style of the new image mention that no areas should be filled and style is black and white linestyle
be very creative for example to a house you could add a garden or to a car a trailer you can even draw a truck out of a car
the description should be something which makes sense
the description should include that only thick lines should be drawn
The image description is
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
Input:




Output:
<INPUT>
New image description:
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
{
"llm-path": "./weights/llm/llama-2-7b-chat.ggmlv3.q8_0.bin",
"llm-model": "mistral",
"llm-layers": 15,

"stable-config-path": "./model/layers/stable.json",
"stable-path": "runwayml/stable-diffusion-v1-5",
"docu-path": "./documentation/",
"original-image-path": "./images/test.jpg",
"random-line-cache": "./images/rand.jpg",

"output-image-name": "output.png",

"merge-output-folder": "./images/output/",

"string0": "./model/layers/string0.txt",
"string1": "./model/layers/string1.txt",

"network-file": "./model/network.py"
}




Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"imagePath": "./images/rand.jpg",
"cache": "./images/testCache.jpg",
"guidance_scale": 7,
"strength": 0.65
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
You are a very creative artist.
Thing of something extraordinary.
thing of something what you can add to this image to make it magic and special
think in a way that inspires people and which makes them happy
do not describe the style of the new image mention that no areas should be filled and style is black and white linestyle
be very creative for example to a house you could add a garden or to a car a trailer you can even draw a truck out of a car
the description should be something which makes sense
the description should include that only thick lines should be drawn
The image description is
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
<INPUT>
New image description:
Loading

0 comments on commit 92dd294

Please sign in to comment.