40 lines
1.4 KiB
Python
40 lines
1.4 KiB
Python
import os
|
|
from modules import scripts
|
|
import modules.sd_samplers
|
|
|
|
default_prompt = """
|
|
{
|
|
"prompts":{
|
|
"headers":["outpaint steps","prompt"],
|
|
"data":[
|
|
[0,"Huge spectacular Waterfall in a dense tropical forest,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), divine,cinematic,(tropical forest:1.4),(river:1.3)mythology,india, volumetric lighting, Hindu ,epic, Alex Horley Wenjun Lin greg rutkowski Ruan Jia (Wayne Barlowe:1.2) <lora:epiNoiseoffset_v2:0.6> "]
|
|
]
|
|
},
|
|
"negPrompt":"frames, borderline, text, character, duplicate, error, out of frame, watermark, low quality, ugly, deformed, blur bad-artist"
|
|
}
|
|
"""
|
|
available_samplers = [
|
|
s.name for s in modules.sd_samplers.samplers if "UniPc" not in s.name
|
|
]
|
|
|
|
empty_prompt = (
|
|
'{"prompts":{"data":[],"headers":["outpaint steps","prompt"]},"negPrompt":""}'
|
|
)
|
|
|
|
invalid_prompt = {
|
|
"prompts": {
|
|
"data": [[0, "Your prompt-json is invalid, please check Settings"]],
|
|
"headers": ["outpaint steps", "prompt"],
|
|
},
|
|
"negPrompt": "Invalid prompt-json",
|
|
}
|
|
current_script_dir = scripts.basedir().split(os.sep)[
|
|
-2:
|
|
] # contains install and our extension foldername
|
|
jsonprompt_schemafile = (
|
|
current_script_dir[0]
|
|
+ "/"
|
|
+ current_script_dir[1]
|
|
+ "/iz_helpers/promptschema.json"
|
|
)
|