Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
jzuern committed May 5, 2023
1 parent 144750d commit 8445591
Show file tree
Hide file tree
Showing 14 changed files with 686 additions and 98 deletions.
24 changes: 10 additions & 14 deletions aggregation/aggregate_av2.py
Original file line number Diff line number Diff line change
Expand Up @@ -334,8 334,6 @@ def process_samples(args, city_name, trajectories_vehicles_, trajectories_ped_,
continue




do_debugging = False
if do_debugging:
sat_image_crop_viz = cv2.cvtColor(sat_image_crop, cv2.COLOR_BGR2RGB)
Expand Down Expand Up @@ -680,17 678,15 @@ def viz(event, mouseX, mouseY, flags, param):
logging.basicConfig(level=logging.DEBUG, filename='aggregate_av2.log', filemode='w')

out_path_root = args.out_path_root
city_name = args.city_name.capitalize()
if city_name == "Paloalto":
city_name = "PaloAlto"
city_name = args.city_name

city_name_dict = {
"PIT": "Pittsburgh",
"MIA": "Miami",
"ATX": "Austin",
"WDC": "Washington",
"PAO": "PaloAlto",
"DTW": "Detroit",
"PIT": "pittsburgh",
"MIA": "miami",
"ATX": "austin",
"WDC": "washington",
"PAO": "paloalto",
"DTW": "detroit",
}

export_final = args.export_final
Expand Down Expand Up @@ -729,11 725,11 @@ def viz(event, mouseX, mouseY, flags, param):
print("Error loading scenario: {}".format(scenario_path))
continue

if city_name == "PaloAlto":
if city_name == "paloalto":
city_name_log = "palo-alto"
elif city_name == "Washington":
elif city_name == "washington":
city_name_log = "washington-dc"
elif city_name == "Detroit":
elif city_name == "detroit":
city_name_log = "dearborn"
else:
city_name_log = city_name
Expand Down
Loading

0 comments on commit 8445591

Please sign in to comment.