live sonar feed, and incremental action feed
This commit is contained in:
@@ -32,6 +32,7 @@ conda activate fishserver
|
||||
```bash
|
||||
cd /path/to/FishServer/fish_api
|
||||
pip install -e .
|
||||
# 或:pip install -r requirements.txt
|
||||
```
|
||||
|
||||
可选开发依赖(本地冒烟测试等):
|
||||
@@ -71,20 +72,11 @@ python -c "import torch; print(torch.__version__)"
|
||||
|
||||
**方案 A 下不要填写** `PYTHON_FISH_MEASURE`、`PYTHON_FISH_ACTION`(留空),让子进程使用当前环境的 `python`。
|
||||
|
||||
---
|
||||
|
||||
## 5. 与 `uv` 的优先级
|
||||
|
||||
`fish_api/start_fresh.sh` 若检测到系统中有 `uv` 命令,会优先使用 `uv run`。若你希望**强制使用当前 conda 环境**:
|
||||
|
||||
- 启动前执行 **`conda activate fishserver`**,并确认 `which python` / `which uvicorn` 指向 `fishserver`;或
|
||||
- 在不含 `uv` 的 PATH 下启动;或临时从 PATH 中移除 `uv`。
|
||||
|
||||
若未安装 `uv`,脚本会自动使用 `python3` 与 `uvicorn`(依赖已激活的 conda)。
|
||||
启动前请 **`conda activate fishserver`**,使 `which python` / `which uvicorn` 指向该环境。`fish_api/start_fresh.sh` 使用环境变量 **`PYTHON`**(可选)覆盖解释器,默认 **`python3`**。
|
||||
|
||||
---
|
||||
|
||||
## 6. 启动服务
|
||||
## 5. 启动服务
|
||||
|
||||
在**仓库根目录**执行:
|
||||
|
||||
@@ -109,7 +101,7 @@ HOST=0.0.0.0 PORT=8000 bash scripts/start_fresh.sh
|
||||
|
||||
---
|
||||
|
||||
## 7. 自检清单
|
||||
## 6. 自检清单
|
||||
|
||||
| 检查项 | 说明 |
|
||||
|--------|------|
|
||||
@@ -122,7 +114,7 @@ HOST=0.0.0.0 PORT=8000 bash scripts/start_fresh.sh
|
||||
|
||||
---
|
||||
|
||||
## 8. 参考
|
||||
## 7. 参考
|
||||
|
||||
- 根目录 `README.md`、`fish_api/README.md`:环境变量表与启动说明。
|
||||
- `fish_api/start_fresh.sh`:启动前 `prestart_fresh` 与 uvicorn 参数。
|
||||
|
||||
Reference in New Issue
Block a user