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
@@ -8,136 +8,16 @@ This project was bootstrapped with [Geodjango Template](https://github.com/itsks
8
8
9
9
**Note:** Depending upon your OS and Env installation will vary, This project tightly depends on [Tensorflow](https://www.tensorflow.org/install/pip) with GPU support so accordingly build your development environment
Again based on your os/env you can do manual installation
119
-
for eg : on ubuntu :
120
-
121
-
```
122
-
sudo apt-get install python3-psycopg2
123
-
```
124
-
125
-
- Install redis server on your pc
126
-
127
-
```
128
-
sudo apt install redis
129
-
```
130
-
131
-
- Install pdm for dependency management
132
-
133
-
```
134
-
pip install pdm
135
-
```
136
-
137
-
- Finally install project dependencies
138
-
139
-
```
140
-
pdm install
19
+
```bash
20
+
uv sync
141
21
```
142
22
143
23
### Make sure you have postgresql installed with postgis extension enabled
@@ -155,9 +35,9 @@ pdm install
155
35
156
36
#### Now change your username, password and db name in settings.py accordingly to your database
157
37
158
-
python manage.py makemigrations login core
159
-
python manage.py migrate
160
-
python manage.py runserver
38
+
uv run python manage.py makemigrations login core
39
+
uv run python manage.py migrate
40
+
uv run python manage.py runserver
161
41
162
42
### Now server will be available in your 8000 port on web, you can check out your localhost:8000/admin for admin panel
163
43
@@ -179,40 +59,30 @@ fAIr uses oauth2.0 Authentication using [osm-login-python](https://github.com/ks
179
59
180
60
## Start celery workers
181
61
182
-
-Start celery workers
62
+
-Sync workers env
183
63
184
-
```
185
-
celery -A fairproject worker --loglevel=debug -n my_worker -Q ramp_training,yolo_training
64
+
```bash
65
+
uv sync --group base-workers
186
66
```
187
67
188
-
- Monitor using flower
189
-
if you are using redis as result backend, api supports both options django / redis
190
-
You can start flower to start monitoring your tasks
68
+
- Start celery workers
191
69
192
70
```
193
-
celery -A fairproject --broker=redis://127.0.0.1:6379/0 flower
71
+
uv run celery -A fairproject worker --loglevel=debug -n my_worker -Q ramp_training,yolo_training
194
72
```
195
73
196
74
## Start background tasks
197
75
198
76
```bash
199
-
python manage.py qcluster
77
+
uv run python manage.py qcluster
200
78
```
201
79
202
80
## Run Tests
203
81
204
82
```
205
-
python manage.py test
83
+
uv run python manage.py test
206
84
```
207
85
208
86
# Build fAIr with Docker for Development
209
87
210
-
- Install all the required drivers for your graphics to access it from containers, and check your graphics and drivers with `nvidia-smi` . Up to now only nvidia is Supported
211
-
- Follow docker_sample_env to create `.env` file in your dir
212
-
- Build the Image
213
-
214
-
```
215
-
docker-compose up -d --build
216
-
```
217
-
218
-
- Once the image is build, Open the API container terminal and run the migrations
0 commit comments