Skip to content

Commit

Permalink
Fix index of load_pre_saved_latent for ood indicies
Browse files Browse the repository at this point in the history
  • Loading branch information
bdvllrs committed Nov 21, 2023
1 parent 1a8a948 commit b62ea36
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion bim_gw/datasets/simple_shapes/datasets.py
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,10 @@ def use_pre_saved_latents(
Dict[AvailableDomains, str], pre_saved_latent_path
),
domain_key,
self.ids[self.in_dist_labels.shape[0] :],
[
self.ood_idx[k]
for k in self.ids[self.in_dist_labels.shape[0] :]
],
)
for k in range(len(data)):
self.pre_saved_data[domain_key][k] = np.concatenate(
Expand Down

0 comments on commit b62ea36

Please sign in to comment.