Files
Timeline_Generator/run.sh
beabigegg 2d37d23bcf v9.5: 實作標籤完全不重疊算法
- 新增 _calculate_lane_conflicts_v2() 分開返回標籤重疊和線穿框分數
- 修改泳道選擇算法,優先選擇無標籤重疊的泳道
- 兩階段搜尋:優先側別無可用泳道則嘗試另一側
- 增強日誌輸出,顯示標籤範圍和詳細衝突分數

🤖 Generated with Claude Code
Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-06 11:35:29 +08:00

40 lines
944 B
Bash
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#!/bin/bash
# TimeLine Designer - macOS/Linux 啟動腳本
# Version: 1.0.0
echo "========================================"
echo " TimeLine Designer 啟動中..."
echo "========================================"
echo ""
# 檢查 Python 是否安裝
if ! command -v python3 &> /dev/null; then
echo "[錯誤] 找不到 Python3請先安裝 Python 3.8+"
exit 1
fi
# 檢查虛擬環境
if [ ! -d "venv" ]; then
echo "[資訊] 建立虛擬環境..."
python3 -m venv venv
fi
# 啟動虛擬環境
source venv/bin/activate
# 安裝依賴(如果需要)
if [ ! -f "venv/lib/python*/site-packages/fastapi" ]; then
echo "[資訊] 安裝依賴套件..."
pip install -r requirements.txt
fi
# 啟動應用程式
echo "[資訊] 啟動 TimeLine Designer..."
python app.py
# 結束
echo ""
echo "========================================"
echo " TimeLine Designer 已關閉"
echo "========================================"