Skip to content

Commit

Permalink
Added a todo comment
Browse files Browse the repository at this point in the history
  • Loading branch information
Jonathunky committed Nov 3, 2023
1 parent 44db797 commit 57089af
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion data_loader.py
Original file line number Diff line number Diff line change
Expand Up @@ -271,7 +271,7 @@ def __getitem__(self, idx):
# Convert arrays to PIL images for compatibility with existing transforms
image = Image.fromarray(image_array)
label = Image.fromarray(label_array).convert("L") # Convert RGB to grayscale
# label = Image.fromarray(label_array)
# TODO add a check here if it even needs to be converted, to increase perf

# Clean up memory
del image_array, label_array
Expand Down

0 comments on commit 57089af

Please sign in to comment.