fine-tuning params

This commit is contained in:
TJU_Lu 2025-07-08 22:14:56 +08:00
parent d22f89a7a3
commit b7bfea3a5c
3 changed files with 5 additions and 5 deletions

View File

@ -154,7 +154,7 @@ cd YOPO/
conda activate yopo
python train_yopo.py
```
It takes less than 1 hour to train on 100,000 samples for 50 epochs on an RTX 3080 GPU. Besides, we highly recommend binding the process to P-cores via `taskset -c 1,2,3,4 python train_yopo.py` if your CPU uses a hybrid architecture with P-cores and E-cores. If everything goes well, the training log is as follows:
It takes less than 1 hour to train on 100,000 samples for 50 epochs on an RTX 3080 GPU and i9-12900K CPU. Besides, we highly recommend binding the process to P-cores via `taskset -c 1,2,3,4 python train_yopo.py` if your CPU uses a hybrid architecture with P-cores and E-cores. If everything goes well, the training log is as follows:
```
cd YOPO/saved

View File

@ -7,7 +7,7 @@ vel_max_train: 6.0
acc_max_train: 6.0
# IMPORTANT: weight of costs for unit speed (can be visualized in tensorboard)
wg: 0.1 # guidance
wg: 0.12 # guidance
ws: 10.0 # smoothness
wc: 0.1 # collision

View File

@ -57,10 +57,10 @@ class SafetyLoss(nn.Module):
# get info from sdf_map
cost = self.get_distance_cost(pos_batch, map_id)
cost_dt = (cost * dt).reshape(-1, pos_coe.shape[1]) # [B*H*V, N, 3]
cost_colli = cost_dt.sum(dim=-1, keepdim=True)
cost_dt = (cost * dt).reshape(-1, pos_coe.shape[1]) # [B*H*V, N]
cost_colli = cost_dt.sum(dim=-1)
return cost_colli.squeeze()
return cost_colli
def get_distance_cost(self, pos, map_id):
"""