Skip to content

Commit dbe9801

Browse files
committed
fix show augs with alpha
1 parent 632879b commit dbe9801

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

bioencoder/core/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -681,7 +681,7 @@ def save_augmented_sample(data_dir, transform, n_samples, seed):
681681
## apply augmentations and save
682682
for i, idx in enumerate(selected_indices):
683683
path, _ = dataset.samples[idx]
684-
image = Image.open(path)
684+
image = Image.open(path).convert("RGB")
685685
image_name = os.path.basename(path)
686686
augmented_image = transform(image=np.asarray(image))["image"]
687687
to_pil_image = transforms.ToPILImage()

bioencoder/scripts/interactive_plots.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ def interactive_plots(
139139

140140
helpers.bokeh_plot(df_plot, out_path=plot_path, **plot_config)
141141

142-
# Return logic: either one or both
142+
# return embeddings and plot coords
143143
if return_results:
144144
return df_embeddings, df_plot
145145

0 commit comments

Comments
 (0)