Skip to content

Commit 9a24166

Browse files
author
Ubuntu
committed
fixed data dir path
1 parent b9741fe commit 9a24166

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/aging_gan/data.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,13 @@
1212

1313
class UTKFace(Dataset):
1414
"""
15-
Assumes the unzipped UTKFace images live in <root>/data/UTKFace
15+
Assumes the unzipped aligned UTKFace images live in <root>/data/utkface_aligned_cropped/UTKFace
1616
File pattern: {age}_{gender}_{race}_{yyyymmddHHMMSS}.jpg
1717
"""
1818

1919
def __init__(self, root: str, transform: T.Compose | None = None):
2020
self.root = (
21-
Path(root) / "UTKFace" # "utkface_aligned_cropped" /
21+
Path(root) / "utkface_aligned_cropped" / "UTKFace"
2222
) # or "UTKFace" for the unaligned and varied original version.
2323
self.files = sorted(f for f in self.root.glob("*.jpg"))
2424
if not self.files:

0 commit comments

Comments
 (0)