fix: 修复 Windows 符号链接处理逻辑,确保 datasets 目录正确创建
fix: 修正当前图像选择逻辑,始终使用 items[0] 作为当前图像
This commit is contained in:
@@ -2,6 +2,16 @@
|
|||||||
set -euo pipefail
|
set -euo pipefail
|
||||||
cd /data/hsap
|
cd /data/hsap
|
||||||
|
|
||||||
|
# 修复 Windows 符号链接:Docker COPY 会把 symlink 复制为普通文件
|
||||||
|
# 检测 datasets/ 下的文件(应为目录),删除并重建为空目录
|
||||||
|
for d in datasets/lane datasets/adas; do
|
||||||
|
if [ -f "$d" ] && [ ! -L "$d" ]; then
|
||||||
|
echo "[entrypoint] 修复 Windows symlink: $d (文件 → 目录)"
|
||||||
|
rm -f "$d"
|
||||||
|
mkdir -p "$d"
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
|
||||||
if [[ -d /data/workspace/DMS || -d /data/workspace/LaneDection ]]; then
|
if [[ -d /data/workspace/DMS || -d /data/workspace/LaneDection ]]; then
|
||||||
echo "[entrypoint] 检测到外部 workspace,重建软链…"
|
echo "[entrypoint] 检测到外部 workspace,重建软链…"
|
||||||
bash scripts/setup_links.sh || true
|
bash scripts/setup_links.sh || true
|
||||||
|
|||||||
@@ -166,7 +166,7 @@ const ReviewDetailPage: React.FC<{ campaignId: string }> = ({ campaignId }) => {
|
|||||||
|
|
||||||
useEffect(() => { loadPage(currentIdx); }, [currentIdx, loadPage]);
|
useEffect(() => { loadPage(currentIdx); }, [currentIdx, loadPage]);
|
||||||
|
|
||||||
const currentImage = items[currentIdx];
|
const currentImage = items[0];
|
||||||
const currentScore = currentImage ? (localScores[currentImage.image_path] || currentImage.score || "pending") : "pending";
|
const currentScore = currentImage ? (localScores[currentImage.image_path] || currentImage.score || "pending") : "pending";
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
|
|||||||
Reference in New Issue
Block a user