Skip to content

Commit 10b2899

Browse files
Merge pull request #28 from CentroFuturoCiudades/main
changes
2 parents 3ab64ae + c7517fe commit 10b2899

File tree

54 files changed

+13
-1220
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

54 files changed

+13
-1220
lines changed

.DS_Store

-6 KB
Binary file not shown.

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
# big size files
22

3+
*.csv
34
*.pt
45
*.mp4
56
!docs/*
@@ -8,3 +9,5 @@
89
*__pycache__
910
*.log
1011
*.pyc
12+
*.png
13+

src/.DS_Store

-10 KB
Binary file not shown.

src/README.md

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,16 @@
11

2-
## Deploy APIs
2+
## Despliegue de servicios en servidor con GPU
33

4+
* Clona repositorio y descargar pesos
45
```bash
5-
docker compose down
6+
git clone https://github.com/CentroFuturoCiudades/traffic-conflicts-analysis.git
7+
cd traffic-conflicts-analysis/src/TTC-API/
8+
wget https://tca-itdp-tec-prod.s3.amazonaws.com/weights.zip
9+
unzip weights.zip
610
```
7-
11+
* Construir y levantar servicios
812
```bash
13+
cd ..
14+
docker compose down
915
docker compose up -d --build
1016
```

src/TTC-API/.DS_Store

-6 KB
Binary file not shown.

src/TTC-API/Generic/.DS_Store

-6 KB
Binary file not shown.

src/TTC-API/System/.DS_Store

-6 KB
Binary file not shown.

src/TTC-API/System/App/.DS_Store

-6 KB
Binary file not shown.

src/TTC-API/System/App/TrajsProcessor/TrajsProcessor.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,7 @@ def smooth_time_series(self):
7575

7676
def weighted_rolling_mean(self, group):
7777
group['timestamp'] = pd.to_datetime(group['timestamp'], unit='ms')
78+
7879
obb_true_rows = group[group['obb_flag']]
7980
if not obb_true_rows.empty:
8081
centroids = obb_true_rows['mask'].apply(self.calculate_centroid)
@@ -87,7 +88,6 @@ def weighted_rolling_mean(self, group):
8788
group['x'] = group['x'] - avg_diff_x
8889
group['y'] = group['y'] - avg_diff_y
8990
group.set_index('timestamp', inplace=True)
90-
9191
weights = np.where(group['obb_flag'], 5, 1)
9292
group['x'] = self.weighted_rolling_mean_series(group['x'], '800ms', weights)
9393
group['y'] = self.weighted_rolling_mean_series(group['y'], '800ms', weights)

src/TTC-API/dsizes.txt

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)