Skip to content

Commit

Permalink
minor change in FGNet getitem
Browse files Browse the repository at this point in the history
  • Loading branch information
victormvy committed Jul 23, 2024
1 parent 3ea3a50 commit 514a4e3
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions dlordinal/datasets/fgnet.py
Original file line number Diff line number Diff line change
Expand Up @@ -165,9 +165,8 @@ def __getitem__(self, index: int) -> Tuple[Any, Any]:
)

# Cargar la imagen como PIL.Image.Image
with open(img_path, "rb") as f:
image = Image.open(f)
image = image.convert("RGB")
image = Image.open(img_path)
image = image.convert("RGB")

# Aplicar transformación si está definida
if self.transform:
Expand Down

0 comments on commit 514a4e3

Please sign in to comment.