You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
`stride` is Linux-only and optional for the default demos. If needed for your workflow, install it separately on Linux:
81
94
82
95
```bash
83
96
conda install -c kimlab stride
84
97
```
85
98
99
+
### 🐳 Docker
100
+
101
+
A `Dockerfile` is included for containerized usage (PyTorch 2.4, CUDA 12.4, Python 3.12.4 via Mambaforge).
102
+
103
+
```bash
104
+
docker build -t catpred .
105
+
docker run --gpus all -it catpred
106
+
```
107
+
86
108
### 🔮 Prediction <aname="predict"></a>
87
109
88
110
The Jupyter Notebook `batch_demo.ipynb` and the Python script `demo_run.py` show the usage of pre-trained models for prediction.
@@ -104,20 +126,29 @@ For released benchmark datasets, the number of entries with 3D structure can be
104
126
105
127
### 🌍 Web API (Optional)
106
128
107
-
CatPred also provides an optional FastAPI service for prediction workflows.
129
+
CatPred also provides an optional FastAPI service for prediction workflows. The Vue 3 frontend lives in `catpred/web/frontend/` and is served by the API at `/`.
108
130
109
131
Install web dependencies:
110
132
111
133
```bash
112
134
pip install -e ".[web]"
113
135
```
114
136
115
-
Run the API:
137
+
Run the API (serves the built frontend at `/`):
116
138
117
139
```bash
118
140
catpred_web --host 0.0.0.0 --port 8000
119
141
```
120
142
143
+
To develop the frontend:
144
+
145
+
```bash
146
+
cd catpred/web/frontend
147
+
npm install
148
+
npm run dev # Vite dev server with HMR
149
+
npm run build # Production build (vue-tsc + vite)
150
+
```
151
+
121
152
Endpoints:
122
153
-`GET /health` — liveness check.
123
154
-`GET /ready` — backend configuration/readiness.
@@ -129,7 +160,7 @@ By default, the API is hardened for service use:
129
160
-`results_dir` is constrained under `CATPRED_API_RESULTS_ROOT`.
130
161
- for local backend (and modal requests with fallback enabled), `checkpoint_dir` must resolve under `CATPRED_API_CHECKPOINT_ROOT`.
131
162
132
-
Minimal `POST /predict` example forlocal inference using `input_rows`:
163
+
Minimal `POST /predict` example for local inference using `input_rows` (human glucokinase + D-glucose):
133
164
134
165
```bash
135
166
curl -X POST http://127.0.0.1:8000/predict \
@@ -138,8 +169,11 @@ curl -X POST http://127.0.0.1:8000/predict \
0 commit comments