Skip to content

Commit 2625757

Browse files
committed
chore: optimize install scripts and bump version to v1.5.11
1 parent b999eb7 commit 2625757

6 files changed

Lines changed: 14 additions & 3 deletions

File tree

‎backend/.env.example‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
DATABASE_URL=postgresql+psycopg2://postgres:postgres@localhost:5432/autolabeling
1+
# Uncomment the line below to use PostgreSQL.
2+
# If commented out, the system will automatically use a zero-config SQLite database.
3+
# DATABASE_URL=postgresql+psycopg2://postgres:postgres@localhost:5432/autolabeling
24
DEVICE=mps
35
MODEL_DIR=
46
CORS_ORIGINS=["http://localhost:5173"]

‎backend/pyproject.toml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "locate-anything-backend"
3-
version = "1.5.5"
3+
version = "1.5.11"
44
description = "Backend API for VLM-AutoYOLO - VLM-powered auto-labeling and YOLO training platform"
55
requires-python = ">=3.12"
66
dependencies = [

‎cli.py‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -343,6 +343,9 @@ def cmd_start():
343343
print(f" 后端: {cyan(f'http://localhost:{BACKEND_PORT}')}")
344344
print(f" API: {cyan(f'http://localhost:{BACKEND_PORT}/docs')}")
345345
print(f" {red('Ctrl+C')} 停止")
346+
print(f"{'━' * 46}")
347+
print(f" 💡 {yellow('提示: VLM 和 SAM 模型采用【惰性加载】策略。')}")
348+
print(f" {yellow('在网页端首次执行检测前,它们会显示为“未加载”状态。')}")
346349
print(f"{'━' * 46}\n")
347350

348351
webbrowser.open(f"http://localhost:{FRONTEND_PORT}")

‎frontend/package.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "frontend",
33
"private": true,
4-
"version": "1.5.5",
4+
"version": "1.5.11",
55
"type": "module",
66
"scripts": {
77
"dev": "vite",

‎start.bat‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,8 @@ echo Backend: http://localhost:8000
1010
echo Frontend: http://localhost:5173
1111
echo API Docs: http://localhost:8000/docs
1212
echo.
13+
echo [NOTE] VLM and SAM models are lazy-loaded.
14+
echo They will appear as 'Unloaded' in the web UI until your first detection.
15+
echo.
1316
echo Press Ctrl+C in each window to stop.
1417
pause

‎start.sh‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,9 @@ echo " 后端: http://localhost:$BACKEND_PORT"
5353
echo " API文档: http://localhost:$BACKEND_PORT/docs"
5454
echo " Ctrl+C 停止"
5555
echo "━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━"
56+
echo " 💡 提示: VLM 和 SAM 模型采用【惰性加载】策略。"
57+
echo " 在网页端首次执行检测前,它们会显示为“未加载”状态。"
58+
echo "━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━"
5659
echo ""
5760

5861
wait

0 commit comments

Comments
 (0)