alexander00001 commited on
Commit
2a8d8c0
·
verified ·
1 Parent(s): 4237abd

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +39 -30
app.py CHANGED
@@ -22,21 +22,30 @@ import numpy as np
22
  # Configuration Section (Modify here to expand)
23
  # ======================
24
 
25
- # 1. Base Model - Illustrious XL v1.0
26
- BASE_MODEL = "OnomaAIResearch/Illustrious-XL-v1.0"
 
 
 
 
 
 
 
 
 
27
 
28
- # 2. Fixed LoRAs (Auto-loaded, not user-selectable)
29
  FIXED_LORAS = {
30
  "quality_enhancer": {
31
- "repo_id": "stabilityai/stable-diffusion-xl-base-1.0",
32
- "filename": "sd_xl_base_1.0.safetensors",
33
- "weight": 0.8,
34
- "trigger_words": "high quality, detailed, sharp"
35
  },
36
  "pose_control": {
37
  "repo_id": "latent-consistency/lcm-lora-sdxl",
38
  "filename": None,
39
- "weight": 0.7,
40
  "trigger_words": "perfect anatomy, natural pose"
41
  }
42
  }
@@ -50,7 +59,7 @@ STYLE_PROMPTS = {
50
  "Watercolor": "watercolor painting, soft brush strokes, translucent layers, artistic, painterly, paper texture, traditional art, masterpiece, ",
51
  }
52
 
53
- # 4. Optional LoRAs (User-selectable via dropdown, can select multiple)
54
  OPTIONAL_LORAS = {
55
  "None": {
56
  "repo_id": None,
@@ -58,35 +67,35 @@ OPTIONAL_LORAS = {
58
  "trigger_words": "",
59
  "description": "No additional LoRA"
60
  },
61
- "Detail Enhancement": {
62
  "repo_id": "ByteDance/SDXL-Lightning",
63
  "weight": 0.8,
64
- "trigger_words": "extremely detailed, intricate details, hyperdetailed",
65
- "description": "Enhances fine details and textures"
66
  },
67
- "Portrait Master": {
68
- "repo_id": "ostris/face-helper-sdxl-lora",
69
  "weight": 0.9,
70
- "trigger_words": "perfect face, beautiful eyes, detailed skin texture",
71
- "description": "Specializes in realistic portraits"
72
  },
73
- "Cinematic Style": {
74
- "repo_id": "goofyai/cyborg_style_xl",
75
  "weight": 0.7,
76
- "trigger_words": "cinematic lighting, dramatic shadows, film noir",
77
- "description": "Adds cinematic atmosphere"
78
- },
79
- "Vintage Photo": {
80
- "repo_id": "artificialguybr/LogoRedmond-LogoLoraForSDXL-V2",
81
- "weight": 0.6,
82
- "trigger_words": "vintage photo, retro style, film photography",
83
- "description": "Vintage photography effects"
84
  },
85
- "Art Nouveau": {
86
- "repo_id": "ostris/super-cereal-sdxl-lora",
87
  "weight": 0.8,
88
- "trigger_words": "art nouveau style, ornate decorations, flowing lines",
89
- "description": "Art Nouveau artistic style"
 
 
 
 
 
 
90
  }
91
  }
92
 
 
22
  # Configuration Section (Modify here to expand)
23
  # ======================
24
 
25
+ # 1. Base Model - Illustrious XL v1.0 (Multiple options for stability)
26
+ BASE_MODELS = {
27
+ "illustrious_xl_v1": "Liberata/illustrious-xl-v1.0", # Primary choice - more stable
28
+ "illustrious_xl_v2": "OnomaAIResearch/Illustrious-XL-v2.0", # Backup option
29
+ "sdxl_base": "stabilityai/stable-diffusion-xl-base-1.0", # Fallback to standard SDXL
30
+ "realistic_vision": "SG161222/RealVisXL_V4.0" # Alternative realistic model
31
+ }
32
+
33
+ # Current model selection (change this to switch models)
34
+ CURRENT_MODEL_KEY = "illustrious_xl_v1"
35
+ BASE_MODEL = BASE_MODELS[CURRENT_MODEL_KEY]
36
 
37
+ # 2. Fixed LoRAs (Auto-loaded, not user-selectable) - Using reliable SDXL LoRAs
38
  FIXED_LORAS = {
39
  "quality_enhancer": {
40
+ "repo_id": "ByteDance/SDXL-Lightning",
41
+ "filename": None,
42
+ "weight": 0.6,
43
+ "trigger_words": "high quality, detailed, masterpiece"
44
  },
45
  "pose_control": {
46
  "repo_id": "latent-consistency/lcm-lora-sdxl",
47
  "filename": None,
48
+ "weight": 0.5,
49
  "trigger_words": "perfect anatomy, natural pose"
50
  }
51
  }
 
59
  "Watercolor": "watercolor painting, soft brush strokes, translucent layers, artistic, painterly, paper texture, traditional art, masterpiece, ",
60
  }
61
 
62
+ # 4. Optional LoRAs (User-selectable via dropdown, can select multiple) - Using verified SDXL LoRAs
63
  OPTIONAL_LORAS = {
64
  "None": {
65
  "repo_id": None,
 
67
  "trigger_words": "",
68
  "description": "No additional LoRA"
69
  },
70
+ "Lightning Speed": {
71
  "repo_id": "ByteDance/SDXL-Lightning",
72
  "weight": 0.8,
73
+ "trigger_words": "high quality, detailed, fast generation",
74
+ "description": "Fast generation with quality enhancement"
75
  },
76
+ "LCM LoRA": {
77
+ "repo_id": "latent-consistency/lcm-lora-sdxl",
78
  "weight": 0.9,
79
+ "trigger_words": "lcm, high quality, detailed",
80
+ "description": "Latent Consistency Model for faster inference"
81
  },
82
+ "Offset Noise": {
83
+ "repo_id": "stabilityai/stable-diffusion-xl-offset-example-lora",
84
  "weight": 0.7,
85
+ "trigger_words": "high contrast, dramatic lighting",
86
+ "description": "Enhanced contrast and lighting effects"
 
 
 
 
 
 
87
  },
88
+ "AnimeDiff": {
89
+ "repo_id": "Linaqruf/anime-detailer-xl-lora",
90
  "weight": 0.8,
91
+ "trigger_words": "anime style, detailed anime, cel shading",
92
+ "description": "Anime and manga style enhancement"
93
+ },
94
+ "PhotoReal": {
95
+ "repo_id": "Jovian-Experiments/photorealistic-xl-lora",
96
+ "weight": 0.9,
97
+ "trigger_words": "photorealistic, ultra realistic, 8k uhd",
98
+ "description": "Photorealistic enhancement"
99
  }
100
  }
101