Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
|
@@ -19,74 +19,96 @@ MAX_SEED = np.iinfo(np.int32).max
|
|
| 19 |
|
| 20 |
# Illumination options mapping
|
| 21 |
ILLUMINATION_OPTIONS = {
|
| 22 |
-
|
| 23 |
-
"
|
| 24 |
-
"
|
| 25 |
-
"
|
| 26 |
-
"
|
| 27 |
-
"
|
| 28 |
-
"
|
| 29 |
-
"
|
| 30 |
-
|
| 31 |
-
|
| 32 |
-
"
|
| 33 |
-
"
|
| 34 |
-
"
|
| 35 |
-
"
|
| 36 |
-
"
|
| 37 |
-
"
|
| 38 |
-
"
|
| 39 |
-
|
| 40 |
-
|
| 41 |
-
"
|
| 42 |
-
"
|
| 43 |
-
"
|
| 44 |
-
"
|
| 45 |
-
"
|
| 46 |
-
|
| 47 |
-
|
| 48 |
-
"
|
| 49 |
-
"
|
| 50 |
-
"
|
| 51 |
-
"
|
| 52 |
-
"
|
| 53 |
-
"
|
| 54 |
-
|
| 55 |
-
|
| 56 |
-
"
|
| 57 |
-
"
|
| 58 |
-
"
|
| 59 |
-
"
|
| 60 |
-
"
|
| 61 |
-
|
| 62 |
-
|
| 63 |
-
"
|
| 64 |
-
"
|
| 65 |
-
"
|
| 66 |
-
"
|
| 67 |
-
"
|
| 68 |
-
"
|
| 69 |
-
"
|
| 70 |
-
"
|
| 71 |
-
"
|
| 72 |
-
|
| 73 |
-
|
| 74 |
-
"
|
| 75 |
-
"
|
| 76 |
-
"
|
| 77 |
-
"
|
| 78 |
-
"
|
| 79 |
-
"rain-soaked reflections in city lights": "
|
| 80 |
-
"
|
| 81 |
-
"
|
| 82 |
-
"
|
| 83 |
-
|
| 84 |
-
|
| 85 |
-
"
|
| 86 |
-
"
|
| 87 |
-
"desert sunset with mirage-like glow": "
|
| 88 |
-
"
|
| 89 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 90 |
|
| 91 |
# Lighting direction options
|
| 92 |
DIRECTION_OPTIONS = {
|
|
|
|
| 19 |
|
| 20 |
# Illumination options mapping
|
| 21 |
ILLUMINATION_OPTIONS = {
|
| 22 |
+
# Natural Daylight
|
| 23 |
+
"natural lighting": "Neutral white color temperature with balanced exposure and soft shadows",
|
| 24 |
+
"sunshine from window": "Bright directional sunlight with hard shadows and visible light rays",
|
| 25 |
+
"golden time": "Warm golden hour lighting with enhanced warm colors and soft shadows",
|
| 26 |
+
"sunrise in the mountains": "Warm backlighting with atmospheric haze and lens flare",
|
| 27 |
+
"afternoon light filtering through trees": "Dappled sunlight patterns with green color cast from foliage",
|
| 28 |
+
"early morning rays, forest clearing": "God rays through trees with warm color temperature",
|
| 29 |
+
"golden sunlight streaming through trees": "Golden god rays with atmospheric particles in light beams",
|
| 30 |
+
|
| 31 |
+
# Sunset & Evening
|
| 32 |
+
"sunset over sea": "Warm sunset light with soft diffused lighting and gentle gradients",
|
| 33 |
+
"golden hour in a meadow": "Golden backlighting with lens flare and rim lighting",
|
| 34 |
+
"golden hour on a city skyline": "Golden lighting on buildings with silhouette effects",
|
| 35 |
+
"evening glow in the desert": "Warm directional lighting with long shadows",
|
| 36 |
+
"dusky evening on a beach": "Cool backlighting with horizon silhouettes",
|
| 37 |
+
"mellow evening glow on a lake": "Warm lighting with water reflections",
|
| 38 |
+
"warm sunset in a rural village": "Golden hour lighting with peaceful warm tones",
|
| 39 |
+
|
| 40 |
+
# Night & Moonlight
|
| 41 |
+
"moonlight through curtains": "Cool blue lighting with curtain shadow patterns",
|
| 42 |
+
"moonlight in a dark alley": "Cool blue lighting with deep urban shadows",
|
| 43 |
+
"midnight in the forest": "Very low brightness with minimal ambient lighting",
|
| 44 |
+
"midnight sky with bright starlight": "Cool blue lighting with star point sources",
|
| 45 |
+
"fireflies lighting up a summer night": "Small glowing points with warm ambient lighting",
|
| 46 |
+
|
| 47 |
+
# Indoor & Cozy
|
| 48 |
+
"warm atmosphere, at home, bedroom": "Very warm lighting with soft diffused glow",
|
| 49 |
+
"home atmosphere, cozy bedroom illumination": "Warm table lamp lighting with pools of light",
|
| 50 |
+
"cozy candlelight": "Warm orange flickering light with dramatic shadows",
|
| 51 |
+
"candle-lit room, rustic vibe": "Multiple warm candlelight sources with atmospheric shadows",
|
| 52 |
+
"night, cozy warm light from fireplace": "Warm orange-red firelight with flickering effects",
|
| 53 |
+
"campfire light": "Warm orange flickering light from below with dancing shadows",
|
| 54 |
+
|
| 55 |
+
# Urban & Neon
|
| 56 |
+
"neon night, city": "Vibrant blue, magenta, and green neon lights with reflections",
|
| 57 |
+
"blue neon light, urban street": "Blue neon lighting with urban glow effects",
|
| 58 |
+
"neon, Wong Kar-wai, warm": "Warm amber and red neon with moody selective lighting",
|
| 59 |
+
"red and blue police lights in rain": "Alternating red and blue strobing with wet reflections",
|
| 60 |
+
"red glow, emergency lights": "Red emergency lighting with harsh shadows and high contrast",
|
| 61 |
+
|
| 62 |
+
# Sci-Fi & Fantasy
|
| 63 |
+
"sci-fi RGB glowing, cyberpunk": "Electric blue, pink, and green RGB lighting with glowing effects",
|
| 64 |
+
"rainbow reflections, neon": "Chromatic rainbow patterns with prismatic reflections",
|
| 65 |
+
"magic lit": "Colored rim lighting in purple and blue with soft ethereal glow",
|
| 66 |
+
"mystical glow, enchanted forest": "Supernatural green and blue glowing with floating particles",
|
| 67 |
+
"ethereal glow, magical forest": "Supernatural lighting with blue-green rim lighting",
|
| 68 |
+
"underwater glow, deep sea": "Blue-green lighting with caustic patterns and particles",
|
| 69 |
+
"underwater luminescence": "Blue-green bioluminescent glow with caustic light patterns",
|
| 70 |
+
"aurora borealis glow, arctic landscape": "Green and purple dancing sky lighting",
|
| 71 |
+
"crystal reflections in a cave": "Sparkle effects with prismatic light dispersion",
|
| 72 |
+
|
| 73 |
+
# Weather & Atmosphere
|
| 74 |
+
"foggy forest at dawn": "Volumetric fog with cool god rays through trees",
|
| 75 |
+
"foggy morning, muted light": "Soft fog effects with reduced contrast throughout",
|
| 76 |
+
"soft, diffused foggy glow": "Heavy fog with soft lighting and no harsh shadows",
|
| 77 |
+
"stormy sky lighting": "Dramatic lighting with high contrast and rim lighting",
|
| 78 |
+
"lightning flash in storm": "Brief intense white light with stark shadows",
|
| 79 |
+
"rain-soaked reflections in city lights": "Wet surface reflections with streaking light effects",
|
| 80 |
+
"gentle snowfall at dusk": "Cool blue lighting with snowflake particle effects",
|
| 81 |
+
"hazy light of a winter morning": "Neutral lighting with atmospheric haze",
|
| 82 |
+
"mysterious twilight, heavy mist": "Heavy fog with cool lighting and atmospheric depth",
|
| 83 |
+
|
| 84 |
+
# Seasonal & Nature
|
| 85 |
+
"vibrant autumn lighting in a forest": "Enhanced warm autumn colors with dappled sunlight",
|
| 86 |
+
"purple and pink hues at twilight": "Cool lighting with purple and pink color grading",
|
| 87 |
+
"desert sunset with mirage-like glow": "Warm orange lighting with heat distortion effects",
|
| 88 |
+
"sunrise through foggy mountains": "Warm lighting through mist with atmospheric perspective",
|
| 89 |
+
|
| 90 |
+
# Professional & Studio
|
| 91 |
+
"soft studio lighting": "Multiple diffused sources with even illumination and minimal shadows",
|
| 92 |
+
"harsh, industrial lighting": "Bright fluorescent lighting with hard shadows",
|
| 93 |
+
"fluorescent office lighting": "Cool white overhead lighting with slight green tint",
|
| 94 |
+
"harsh spotlight in dark room": "Single intense directional light with dramatic shadows",
|
| 95 |
+
|
| 96 |
+
# Special Effects & Drama
|
| 97 |
+
"light and shadow": "Maximum contrast with sharp shadow boundaries",
|
| 98 |
+
"shadow from window": "Window frame shadow patterns with geometric shapes",
|
| 99 |
+
"apocalyptic, smoky atmosphere": "Orange-red fire tint with smoke effects",
|
| 100 |
+
"evil, gothic, in a cave": "Low brightness with cool lighting and deep shadows",
|
| 101 |
+
"flickering light in a haunted house": "Unstable flickering with cool and warm mixed lighting",
|
| 102 |
+
"golden beams piercing through storm clouds": "Dramatic god rays with high contrast",
|
| 103 |
+
"dim candlelight in a gothic castle": "Warm orange candlelight with stone texture enhancement",
|
| 104 |
+
|
| 105 |
+
# Festival & Celebration
|
| 106 |
+
"colorful lantern light at festival": "Multiple colored lantern sources with bokeh effects",
|
| 107 |
+
"golden glow at a fairground": "Warm carnival lighting with colorful bulb effects",
|
| 108 |
+
"soft glow through stained glass": "Colored light filtering with rainbow surface patterns",
|
| 109 |
+
"glowing embers from a forge": "Orange-red glowing particles with intense heat effects"
|
| 110 |
+
|
| 111 |
+
}
|
| 112 |
|
| 113 |
# Lighting direction options
|
| 114 |
DIRECTION_OPTIONS = {
|