TiagoCortinhal / SalsaNext

Uncertainty-aware Semantic Segmentation of LiDAR Point Clouds for Autonomous Driving
MIT License
413 stars 102 forks source link

Question about redundancy of code in user.py #70

Closed samhithaaaa closed 2 years ago

samhithaaaa commented 2 years ago

Hi,

I see that in user.py script, lines 228 to 234 are same as lines 236 to 242. if torch.cuda.is_available(): torch.cuda.synchronize() res = time.time() - end print("Network seq", path_seq, "scan", path_name, "in", res, "sec") end = time.time() cnn.append(res)

Why is the code repeating twice, or is it by mistake that this piece of code is written twice, or is there any interpretation to it?

Someone please help!

TiagoCortinhal commented 2 years ago

It was clearly a case of mistake. You can delete the extra one and do a PR if you'd like