Skip to content

Commit

Permalink
🔧 Properly assign values to dataframe. (#272)
Browse files Browse the repository at this point in the history
  • Loading branch information
samet-akcay committed Apr 25, 2022
1 parent 24ccb58 commit d0fb1f8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion anomalib/data/folder.py
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ def make_dataset(
samples["mask_path"] = ""
for index, row in samples.iterrows():
if row.label_index == 1:
samples["mask_path"][index] = str(mask_dir / row.image_path.name)
samples.loc[index, "mask_path"] = str(mask_dir / row.image_path.name)

# Ensure the pathlib objects are converted to str.
# This is because torch dataloader doesn't like pathlib.
Expand Down

0 comments on commit d0fb1f8

Please sign in to comment.