fix; remeaining old keywords in JSON; common vs pre/post
parent
fdb8eba2fa
commit
90a5aab9dd
|
|
@ -4,9 +4,8 @@ import modules.sd_samplers
|
||||||
|
|
||||||
default_prompt = """
|
default_prompt = """
|
||||||
{
|
{
|
||||||
"commonPromptPrefix": "Huge spectacular Waterfall in ",
|
"prePrompt": "Huge spectacular Waterfall in ",
|
||||||
"prompts": {
|
"prompts": {
|
||||||
"headers": ["outpaint steps", "prompt"],
|
|
||||||
"data": [
|
"data": [
|
||||||
[0, "a dense tropical forest"],
|
[0, "a dense tropical forest"],
|
||||||
[2, "a Lush jungle"],
|
[2, "a Lush jungle"],
|
||||||
|
|
@ -14,17 +13,16 @@ default_prompt = """
|
||||||
[5, "a Verdant canopy"]
|
[5, "a Verdant canopy"]
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"commonPromptSuffix": "epic perspective,(vegetation overgrowth:1.3)(intricate, ornamentation:1.1),(baroque:1.1), fantasy, (realistic:1) digital painting , (magical,mystical:1.2) , (wide angle shot:1.4), (landscape composed:1.2)(medieval:1.1),(tropical forest:1.4),(river:1.3) volumetric lighting ,epic, style by Alex Horley Wenjun Lin greg rutkowski Ruan Jia (Wayne Barlowe:1.2)",
|
"postPrompt": "epic perspective,(vegetation overgrowth:1.3)(intricate, ornamentation:1.1),(baroque:1.1), fantasy, (realistic:1) digital painting , (magical,mystical:1.2) , (wide angle shot:1.4), (landscape composed:1.2)(medieval:1.1),(tropical forest:1.4),(river:1.3) volumetric lighting ,epic, style by Alex Horley Wenjun Lin greg rutkowski Ruan Jia (Wayne Barlowe:1.2)",
|
||||||
"negPrompt": "frames, border, edges, borderline, text, character, duplicate, error, out of frame, watermark, low quality, ugly, deformed, blur, bad-artist"
|
"negPrompt": "frames, border, edges, borderline, text, character, duplicate, error, out of frame, watermark, low quality, ugly, deformed, blur, bad-artist"
|
||||||
}
|
}
|
||||||
"""
|
"""
|
||||||
|
|
||||||
empty_prompt = '{"prompts":{"data":[],"headers":["outpaint steps","prompt"]},"negPrompt":"", commonPromptPrefix:"", commonPromptSuffix}'
|
empty_prompt = '{"prompts":{"data":[],"negPrompt":"", prePrompt:"", postPrompt:""}'
|
||||||
|
|
||||||
invalid_prompt = {
|
invalid_prompt = {
|
||||||
"prompts": {
|
"prompts": {
|
||||||
"data": [[0, "Your prompt-json is invalid, please check Settings"]],
|
"data": [[0, "Your prompt-json is invalid, please check Settings"]],
|
||||||
"headers": ["outpaint steps", "prompt"],
|
|
||||||
},
|
},
|
||||||
"negPrompt": "Invalid prompt-json",
|
"negPrompt": "Invalid prompt-json",
|
||||||
"prePromp": "Invalid prompt",
|
"prePromp": "Invalid prompt",
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
// Function to download data to a file
|
// Function to download data to a file
|
||||||
function exportPrompts(cppre,p, cpsuf,np, filename = "infinite-zoom-prompts.json") {
|
function exportPrompts(cppre,p, cpsuf,np, filename = "infinite-zoom-prompts.json") {
|
||||||
|
|
||||||
let J = { prompts: p, negPrompt: np, commonPromptPrefix: cppre, commonPromptSuffix: cpsuf }
|
let J = { prompts: p, negPrompt: np, prePrompt: cppre, postPrompt: cpsuf }
|
||||||
|
|
||||||
var file = new Blob([JSON.stringify(J,null,2)], { type: "text/csv" });
|
var file = new Blob([JSON.stringify(J,null,2)], { type: "text/csv" });
|
||||||
if (window.navigator.msSaveOrOpenBlob) // IE10+
|
if (window.navigator.msSaveOrOpenBlob) // IE10+
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue