jmercat commited on
Commit
6947305
1 Parent(s): 820a382

Update risk_biased_dataset.py

Browse files
Files changed (1) hide show
  1. risk_biased_dataset.py +4 -4
risk_biased_dataset.py CHANGED
@@ -71,12 +71,12 @@ class RiskBiasedDataset(datasets.GeneratorBasedBuilder):
71
  data = json.load(f)
72
 
73
  x = torch.from_numpy(numpy.array(data["x"]).astype(numpy.float32))
74
- mask_x = torch.from_numpy(numpy.array(data["mask_x"]).astype(numpy.bool8))
75
  y = torch.from_numpy(numpy.array(data["y"]).astype(numpy.float32))
76
- mask_y = torch.from_numpy(numpy.array(data["mask_y"]).astype(numpy.bool8))
77
- mask_loss = torch.from_numpy( numpy.array(data["mask_loss"]).astype(numpy.bool8))
78
  map_data = torch.from_numpy(numpy.array(data["map_data"]).astype(numpy.float32))
79
- mask_map = torch.from_numpy(numpy.array(data["mask_map"]).astype(numpy.bool8))
80
  offset = torch.from_numpy(numpy.array(data["offset"]).astype(numpy.float32))
81
  x_ego = torch.from_numpy(numpy.array(data["x_ego"]).astype(numpy.float32))
82
  y_ego = torch.from_numpy(numpy.array(data["y_ego"]).astype(numpy.float32))
 
71
  data = json.load(f)
72
 
73
  x = torch.from_numpy(numpy.array(data["x"]).astype(numpy.float32))
74
+ mask_x = torch.from_numpy(numpy.array(data["mask_x"]).astype(numpy.bool_))
75
  y = torch.from_numpy(numpy.array(data["y"]).astype(numpy.float32))
76
+ mask_y = torch.from_numpy(numpy.array(data["mask_y"]).astype(numpy.bool_))
77
+ mask_loss = torch.from_numpy( numpy.array(data["mask_loss"]).astype(numpy.bool_))
78
  map_data = torch.from_numpy(numpy.array(data["map_data"]).astype(numpy.float32))
79
+ mask_map = torch.from_numpy(numpy.array(data["mask_map"]).astype(numpy.bool_))
80
  offset = torch.from_numpy(numpy.array(data["offset"]).astype(numpy.float32))
81
  x_ego = torch.from_numpy(numpy.array(data["x_ego"]).astype(numpy.float32))
82
  y_ego = torch.from_numpy(numpy.array(data["y_ego"]).astype(numpy.float32))