Skip to content

Commit 761fa50

Browse files
committed
Merge branch 'feature/gui'
2 parents 0275deb + 24f01d5 commit 761fa50

32 files changed

+6981
-11
lines changed

.gitignore

Lines changed: 52 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -392,4 +392,55 @@ pixi.lock
392392
*.jpg
393393
*.jsonl
394394
*.scl
395-
*.pl
395+
*.pl
396+
397+
# Build artifacts
398+
gui/build/
399+
gui/.svelte-kit/
400+
gui/node_modules/
401+
gui/dist/
402+
403+
# Logs
404+
*.log
405+
logs/
406+
407+
# Environment variables
408+
.env.local
409+
410+
# Python
411+
__pycache__/
412+
*.py[cod]
413+
*$py.class
414+
*.so
415+
.Python
416+
env/
417+
venv/
418+
ENV/
419+
env.bak/
420+
venv.bak/
421+
422+
# Temporary files
423+
temp/
424+
tmp/
425+
*.tmp
426+
427+
# IDE
428+
.vscode/
429+
.idea/
430+
*.swp
431+
*.swo
432+
433+
# OS
434+
.DS_Store
435+
Thumbs.db
436+
437+
# Coverage
438+
.coverage
439+
htmlcov/
440+
441+
# Distribution
442+
*.egg-info/
443+
dist/
444+
build/
445+
446+
!gui/src/lib

README.md

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@
4545
## TODOs
4646

4747
We're working on the following TODOs:
48-
- [ ] GUI demo.
48+
- [x] GUI demo.
4949
- [ ] Support more LLMs.
5050
- [ ] Video demo & slides presentation.
5151

@@ -101,6 +101,18 @@ python -m hydra_vl4ai.download_model --base_config config/refcoco.yaml --model_c
101101

102102
You may need 28GB vRAM to run NAVER. Consider editing the file in `./config/model_config.yaml` to load the models in multiple GPUs.
103103

104+
### Inference with GUI
105+
106+
You need `nodejs` and `npm` to run the GUI demo. It will automatically compile and build the frontend.
107+
108+
The GUI will be available at `http://0.0.0.0:8000`.
109+
110+
```Bash
111+
python demo_gui.py \
112+
--base_config <YOUR-CONFIG-DIR> \
113+
--model_config <MODEL-CONFIG-PATH>
114+
```
115+
104116
### Inference with given one image and query
105117
```Bash
106118
python demo_cli.py \

demo_cli.py

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,4 @@
11
import asyncio
2-
import json
3-
import os
4-
import time
5-
import tensorneko as N
6-
import torch
7-
from pathlib import Path
82
from dotenv import load_dotenv
93

104
load_dotenv()

0 commit comments

Comments
 (0)