mohammed-aljafry commited on
Commit
6143323
·
verified ·
1 Parent(s): fdd37bd

Upload model.py with huggingface_hub

Browse files
Files changed (1) hide show
  1. model.py +11 -2
model.py CHANGED
@@ -1048,6 +1048,11 @@ class Interfuser(nn.Module):
1048
  traffic = self.traffic_pred_head(traffic_feature_with_vel)
1049
  return traffic, waypoints, is_junction, traffic_light_state, stop_sign, traffic_feature
1050
 
 
 
 
 
 
1051
  # --- Model Builder Function ---
1052
  @register_model
1053
  def interfuser_baseline(**kwargs):
@@ -1057,8 +1062,12 @@ def interfuser_baseline(**kwargs):
1057
  embed_dim=256,
1058
  rgb_backbone_name="r50",
1059
  lidar_backbone_name="r18",
1060
- waypoints_pred_head="gru-command", # Matching the original code's logic
 
 
 
1061
  use_different_backbone=True,
1062
- direct_concat=False, # Matching the original code's logic
 
1063
  )
1064
  return model
 
1048
  traffic = self.traffic_pred_head(traffic_feature_with_vel)
1049
  return traffic, waypoints, is_junction, traffic_light_state, stop_sign, traffic_feature
1050
 
1051
+ # --- Model Builder Function ---
1052
+ # model.py
1053
+
1054
+ # ... (كل الكود الآخر في الملف يبقى كما هو) ...
1055
+
1056
  # --- Model Builder Function ---
1057
  @register_model
1058
  def interfuser_baseline(**kwargs):
 
1062
  embed_dim=256,
1063
  rgb_backbone_name="r50",
1064
  lidar_backbone_name="r18",
1065
+ # ================== التعديل الأول ==================
1066
+ # تم تغييرها من "gru-command" إلى "gru" لتطابق الملف المحفوظ
1067
+ waypoints_pred_head="gru",
1068
+ # ================== التعديل الثاني ==================
1069
  use_different_backbone=True,
1070
+ # تم تغييرها من False إلى True لتطابق الملف المحفوظ (12 قناة إدخال)
1071
+ direct_concat=True,
1072
  )
1073
  return model