Upload s23dr_2026/train.py with huggingface_hub
Browse files- s23dr_2026/train.py +1 -1
s23dr_2026/train.py
CHANGED
|
@@ -27,7 +27,7 @@ def build_targets(data):
|
|
| 27 |
targets = []
|
| 28 |
for labels, coords, edges in zip(data["labels"], data["coords"], data["edges"]):
|
| 29 |
edge_coords = torch.cat([coords[edges[:, 0]], coords[edges[:, 1]]], dim=-1)
|
| 30 |
-
targets.append({"labels": labels, "coords": edge_coords
|
| 31 |
return targets
|
| 32 |
|
| 33 |
|
|
|
|
| 27 |
targets = []
|
| 28 |
for labels, coords, edges in zip(data["labels"], data["coords"], data["edges"]):
|
| 29 |
edge_coords = torch.cat([coords[edges[:, 0]], coords[edges[:, 1]]], dim=-1)
|
| 30 |
+
targets.append({"labels": labels, "coords": edge_coords})
|
| 31 |
return targets
|
| 32 |
|
| 33 |
|