Skip to content

Commit f42423c

Browse files
Yuxiao ChenYuxiao Chen
Yuxiao Chen
authored and
Yuxiao Chen
committed
cleanup
1 parent a8a8b96 commit f42423c

File tree

5 files changed

+2
-28
lines changed

5 files changed

+2
-28
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ pip install -e .
2626
Install `Pplan`
2727
```
2828
cd ..
29-
git clone ssh://[email protected]:NVlabs/policy-planner.git Pplan
29+
git clone ssh://[email protected]:NVlabs/spline-planner.git Pplan
3030
cd Pplan
3131
pip install -e .
3232
```

setup.py

-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@
2626
"imageio-ffmpeg",
2727
"python-louvain",
2828
"networkx",
29-
"casadi",
3029
"torchtext", # weird pytorch-lightning dependency bug
3130
"pytorch-lightning",
3231
"nuscenes-devkit",

tbsim/envs/env_trajdata.py

-1
Original file line numberDiff line numberDiff line change
@@ -743,7 +743,6 @@ def _step(self, step_actions: RolloutAction, num_steps_to_take):
743743
# obs = {k:v for k,v in obs.items() if not isinstance(v,list)}
744744

745745
# record metrics
746-
#TODO: fix the bugs in metrics when using diffstack
747746
self._add_per_step_metrics(obs)
748747
if step_actions.has_ego:
749748
combined_step_actions = self.combine_action(step_actions)

tbsim/models/rasterized_models.py

+1-21
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import pdb
21
from turtle import forward
32
from typing import Dict, List
43
from collections import OrderedDict
@@ -1854,22 +1853,6 @@ def obtain_pred(self,static_img,seq_img,curr_state,raster_pos):
18541853

18551854
prob = prob.nan_to_num(nan=0.0, posinf=1.0, neginf=0.0)
18561855
prob = prob/prob.sum(-1,keepdim=True)
1857-
1858-
# import matplotlib.pyplot as plt
1859-
# img1 = static_img[:,:3].cpu().numpy()
1860-
# img2 = seq_img.abs().max(1,keepdim=True)[0].cpu().numpy()
1861-
# img3 = torch.cat((static_img[:,:2],seq_img.abs().max(1,keepdim=True)[0]),1).cpu().numpy()
1862-
1863-
# for i in range(seq_img.shape[1]):
1864-
# img = torch.cat((static_img[:,:2],seq_img[:,i:i+1]),1).cpu().numpy()
1865-
# fig,axes = plt.subplots(1,2)
1866-
# axes[0].imshow(img[0].transpose(1,2,0))
1867-
# axes[1].imshow(img[1].transpose(1,2,0))
1868-
# plt.show()
1869-
# import pdb
1870-
# pdb.set_trace()
1871-
# pos_xy_rel = raster_pos.unsqueeze(1)/(seq_img.shape[-1]-1)*2-1
1872-
# xx = torch.nn.functional.grid_sample(seq_img,pos_xy_rel,align_corners=True,)
18731856

18741857
res = self.postprocessor(pred_traj,raster_pos,curr_state)
18751858

@@ -2176,10 +2159,7 @@ def forward(self, batch: dict,predict=False,**kwargs):
21762159
batched_pred["target_trajectory"] = scene_fut_traj[...,:self.stage*self.num_frames_per_stage,:]
21772160

21782161
batched_pred["agent_avail"] = agent_avail.any(-1)
2179-
2180-
# import pdb
2181-
# pdb.set_trace()
2182-
# print(torch.cuda.memory_allocated()/1024/1024/1024)
2162+
21832163
return batched_pred
21842164

21852165
def _batching_from_stages(self,preds):

tbsim/models/unet.py

-4
Original file line numberDiff line numberDiff line change
@@ -261,8 +261,6 @@ def _apply_encoder(self, x, s):
261261
e_in = self._e0(x)
262262
# Run all encoder blocks
263263
skip_out_dict = {}
264-
# import pdb
265-
# pdb.set_trace()
266264
for i in range(self._num_resnet_blocks):
267265
block = getattr(self, '_e{}'.format(i + 1))
268266
e_out = block(e_in)
@@ -501,8 +499,6 @@ def main():
501499
)
502500
pred_logits, pred_traj = out
503501
traj = postprocessor(pred_traj,query_pts,curr_state)
504-
import pdb
505-
pdb.set_trace()
506502

507503

508504

0 commit comments

Comments
 (0)