chore: 适配本机 xsl 路径(RTX 5090 机器)

将所有绝对路径从 /home/ubuntu 改回 /home/xsl,覆盖启动脚本、
configure.ini 及训练/测试脚本。纯路径替换,无功能性改动。

本分支(xsl5090)用于本机(RTX 5090)运行;master 维持 /home/ubuntu
供远程 ubuntu 机器使用。
This commit is contained in:
xsl
2026-07-18 16:26:16 +08:00
parent b2738fba7d
commit 9b7324cd26
31 changed files with 162 additions and 162 deletions
+3 -3
View File
@@ -2,8 +2,8 @@
"""端到端测试:生发走换发型工作流"""
import base64, requests, time, sys
img_path = "/home/ubuntu/change_hair/project/data/userImage/8488902485_20250630055547.jpg"
mask_path = "/home/ubuntu/change_hair/project/logs/hairgrow_test_mask.png"
img_path = "/home/xsl/change_hair/project/data/userImage/8488902485_20250630055547.jpg"
mask_path = "/home/xsl/change_hair/project/logs/hairgrow_test_mask.png"
with open(img_path, "rb") as f:
img_b64 = "data:image/jpeg;base64," + base64.b64encode(f.read()).decode()
@@ -24,7 +24,7 @@ try:
d = r.json()
print(f"HTTP {r.status_code} | state={d.get('state')} | msg={d.get('msg','')} | 耗时={time.time()-t0:.1f}s")
if d.get("state") == 0:
out = "/home/ubuntu/change_hair/project/logs/test_grow_swap_result.jpg"
out = "/home/xsl/change_hair/project/logs/test_grow_swap_result.jpg"
with open(out, "wb") as f:
f.write(base64.b64decode(d["result"]))
print(f"✅ 生发成功! 结果图: {out}")