We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b9741fe commit 9a24166Copy full SHA for 9a24166
src/aging_gan/data.py
@@ -12,13 +12,13 @@
12
13
class UTKFace(Dataset):
14
"""
15
- Assumes the unzipped UTKFace images live in <root>/data/UTKFace
+ Assumes the unzipped aligned UTKFace images live in <root>/data/utkface_aligned_cropped/UTKFace
16
File pattern: {age}_{gender}_{race}_{yyyymmddHHMMSS}.jpg
17
18
19
def __init__(self, root: str, transform: T.Compose | None = None):
20
self.root = (
21
- Path(root) / "UTKFace" # "utkface_aligned_cropped" /
+ Path(root) / "utkface_aligned_cropped" / "UTKFace"
22
) # or "UTKFace" for the unaligned and varied original version.
23
self.files = sorted(f for f in self.root.glob("*.jpg"))
24
if not self.files:
0 commit comments