ICE-GL-ZY001 · PROP-003广告牌V2修仙世界升级·对齐苏白和牌匾风格 · D169
Some checks failed
自动更新代码和重启 / update-and-restart (push) Has been cancelled
CI检查 + 自动部署 / check (push) Has been cancelled
CI检查 + 自动部署 / deploy (push) Has been cancelled

This commit is contained in:
bingshuo 2026-07-06 15:07:24 +08:00
parent a2c825e41d
commit 4c164c0c43
6 changed files with 95 additions and 7 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 MiB

View File

@ -1,5 +1,5 @@
<!DOCTYPE html>
<html><head><meta charset="UTF-8"><title>PROP-002 R8 · 修仙世界场景</title>
<html><head><meta charset="UTF-8"><title>PROP-003 广告牌 V2 · 修仙世界升级</title>
<style>
body{background:#1a1a1a;color:#ccc;font-family:sans-serif;margin:20px}
h2{text-align:center;color:#fff;margin-bottom:5px}
@ -9,11 +9,11 @@ h2{text-align:center;color:#fff;margin-bottom:5px}
.card img{width:100%;max-height:600px;object-fit:contain}
.card p{margin:8px 0 0;font-size:14px;color:#aaa}
</style></head><body>
<h2>PROP-002 天道宗牌匾 R8 · 修仙世界场景</h2>
<p class="sub">R7→R8: 古代集市→修仙百宗会·灵气仙雾·冷色调清雅</p>
<h2>PROP-003 免费招徒广告牌 V2 · 修仙世界升级</h2>
<p class="sub">V1→V2: 石墙小巷→修仙百宗会·灵木A架·粗麻画布无字·仙雾·对齐苏白+牌匾</p>
<div class="grid">
<div class="card"><img src="PROP-002-R8-candidate-01-1440x2560.png"><p>候选01 · 仙木杆灵纹·天道宗悬牌·仙雾脚下·百宗远景</p></div>
<div class="card"><img src="PROP-002-R8-candidate-02-1440x2560.png"><p>候选02 · 仰视·牌匾半空·远山飘渺·灵气粒子·清雅画风</p></div>
<div class="card"><img src="PROP-002-R8-candidate-03-1440x2560.png"><p>候选03 · 侧面·仙木杆·天道宗牌悬空·白雾·冷雅色调</p></div>
<div class="card"><img src="PROP-002-R8-candidate-04-1440x2560.png"><p>候选04 · 中近景·破旧木牌特写·背景虚化修仙集会·电影感</p></div>
<div class="card"><img src="PROP-003-V2-candidate-01-1440x2560.png"><p>候选01 · 正面A架·摊旁·粗麻画布无字·仙雾脚下·冷雅</p></div>
<div class="card"><img src="PROP-003-V2-candidate-02-1440x2560.png"><p>候选02 · 微侧·画布微皱·百宗会远景·清冷光影</p></div>
<div class="card"><img src="PROP-003-V2-candidate-03-1440x2560.png"><p>候选03 · 正面中景·A架主体留白·摊位桌旁·修仙氛围</p></div>
<div class="card"><img src="PROP-003-V2-candidate-04-1440x2560.png"><p>候选04 · 半侧面·绳结清晰·画布粗糙·背景虚化·电影调色</p></div>
</div></body></html>

View File

@ -0,0 +1,88 @@
#!/usr/bin/env python3
"""PROP-003 免费招徒广告牌 V2 · 修仙世界风格升级 · 对齐苏白+牌匾"""
import os, sys, json, time, subprocess
from pathlib import Path
ROOT = Path('D:/WorkBuddy/guanghulab/video-ai-system')
env = {}
for line in open(ROOT/".env"):
line = line.strip()
if not line or line.startswith("#"): continue
if "=" in line:
k, v = line.split("=", 1)
env[k.strip()] = v.strip()
AK = env["JIMENG_API_KEY"]
URL = env["JIMENG_BASE_URL"]
MODEL = "doubao-seedream-4-0-250828"
OUT = ROOT / "assets/candidates/D169-VA-05-001/PROP-003-FreeAdBoard/V2"
OUT.mkdir(parents=True, exist_ok=True)
P = """中国修仙世界百宗会天道宗摊位旁正面中景。一个古风绳系A架立式广告牌两根灵木杆顶部用麻绳捆扎成A形支架。
支架上撑开一幅粗麻布料画布画布微微皱起但完整无文字留白待书写
广告牌竖立在简陋天道宗摊位旁地面摊位是粗糙灵木桌铺着淡青色粗布
背景是修仙百宗会一角远处有其他宗门的气派招牌若隐若现淡淡仙雾缭绕脚下
3D真人向写实渲染光影清冷自然与CHAR-003苏白V3-R4PROP-002天道宗牌匾R8同一风格体系
画面有电影级光影和修仙世界氛围"""
N = """任何文字,汉字,书法,标语,广告语,招生信息,价格,包吃包住,三十两,天道宗。
石墙石板路青砖墙砖墙红墙白墙现代墙面城市街道小巷胡同
古代世俗集市菜市场杂货铺小吃摊庙会民间集会
现代广告架金属广告牌LED灯箱霓虹灯易拉宝展架现代海报架
新画布白布干净整洁塑料布防水布现代材质
人物占主画面面孔特写
卡通渲染塑料感游戏低模廉价3D光污染页游风
昏黄暖色调金色阳光日落光烛光
黑暗阴森色调全黑背景
任何挂在墙上的东西靠墙"""
VARIANTS = [
"正面中景绳系A架广告牌在天道宗摊位旁粗麻画布无字灵木杆捆扎仙雾脚下冷雅色调",
"微侧视角A架广告牌斜放在摊位旁画布微皱完整背景百宗会修仙集会远景清冷光影",
"中景正面A架画布占画面主体但留白无文字摊位一角露出灵木桌青布修仙氛围",
"半侧面A架广告牌绳结清晰画布材质粗糙可见背景虚化修仙宗门招牌电影级调色"
]
SEEDS = [111, 222, 333, 444]
def gen(prompt, neg, seed):
body = json.dumps({"model": MODEL, "prompt": prompt, "negative_prompt": neg, "size": "1440x2560", "n": 1, "seed": seed})
r = subprocess.run(["curl", "-s", "-m", "120", "--noproxy", "*", "-X", "POST", f"{URL}/images/generations",
"-H", f"Authorization: Bearer {AK}", "-H", "Content-Type: application/json", "-d", body],
capture_output=True, text=True, timeout=130)
try:
return json.loads(r.stdout)["data"][0].get("url")
except:
print(f" API err: {r.stdout[:300]}")
return None
def dl(url, dst):
Path(dst).parent.mkdir(parents=True, exist_ok=True)
subprocess.run(["curl", "-s", "-m", "120", "-L", "--noproxy", "*", "-o", dst, url], capture_output=True, timeout=130)
return os.path.exists(dst) and os.path.getsize(dst) > 1024
ts = time.strftime("%Y%m%d-%H%M%S")
results = []
for i, (seed, var) in enumerate(zip(SEEDS, VARIANTS)):
full = f"{P} {var}"
print(f"[{i+1}/4] seed={seed}", flush=True)
url = gen(full, N, seed)
if not url:
results.append({"c": i+1, "ok": False, "err": "api"})
continue
dst = OUT / f"PROP-003-V2-candidate-{i+1:02d}-1440x2560.png"
if not dl(url, str(dst)):
results.append({"c": i+1, "ok": False, "err": "dl"})
continue
results.append({"c": i+1, "ok": True, "raw": str(dst), "seed": seed, "variant": var})
print(f" -> {dst.name}")
time.sleep(3)
ok = sum(1 for r in results if r["ok"])
print(f"\n完成: {ok}/4")
meta = {"spec": "VA-05-001-PROP-003-V2", "ts": ts,
"change": "V1→V2: 世俗石墙→修仙百宗会·灵木A架·仙雾·风格对齐苏白和牌匾",
"ok": ok, "model": MODEL, "engine": "Seedream",
"results": results}
json.dump(meta, open(OUT/"generation-meta.json","w",encoding="utf-8"), ensure_ascii=False, indent=2)