|
11 | 11 | )
|
12 | 12 | from torchvision.prototype.datasets.utils import (
|
13 | 13 | Dataset,
|
14 |
| - GDriveResource, |
| 14 | + ManualDownloadResource, |
15 | 15 | OnlineResource,
|
16 | 16 | )
|
17 | 17 | from torchvision.prototype.datasets.utils._internal import (
|
@@ -85,33 +85,34 @@ def __init__(
|
85 | 85 | super().__init__(root, skip_integrity_check=skip_integrity_check)
|
86 | 86 |
|
87 | 87 | def _resources(self) -> List[OnlineResource]:
|
88 |
| - splits = GDriveResource( |
89 |
| - "0B7EVK8r0v71pY0NSMzRuSXJEVkk", |
| 88 | + instructions = "Please download the file from https://mmlab.ie.cuhk.edu.hk/projects/CelebA.html." |
| 89 | + splits = ManualDownloadResource( |
| 90 | + instructions=instructions, |
90 | 91 | sha256="fc955bcb3ef8fbdf7d5640d9a8693a8431b5f2ee291a5c1449a1549e7e073fe7",
|
91 | 92 | file_name="list_eval_partition.txt",
|
92 | 93 | )
|
93 |
| - images = GDriveResource( |
94 |
| - "0B7EVK8r0v71pZjFTYXZWM3FlRnM", |
| 94 | + images = ManualDownloadResource( |
| 95 | + instructions=instructions, |
95 | 96 | sha256="46fb89443c578308acf364d7d379fe1b9efb793042c0af734b6112e4fd3a8c74",
|
96 | 97 | file_name="img_align_celeba.zip",
|
97 | 98 | )
|
98 |
| - identities = GDriveResource( |
99 |
| - "1_ee_0u7vcNLOfNLegJRHmolfH5ICW-XS", |
| 99 | + identities = ManualDownloadResource( |
| 100 | + instructions=instructions, |
100 | 101 | sha256="c6143857c3e2630ac2da9f782e9c1232e5e59be993a9d44e8a7916c78a6158c0",
|
101 | 102 | file_name="identity_CelebA.txt",
|
102 | 103 | )
|
103 |
| - attributes = GDriveResource( |
104 |
| - "0B7EVK8r0v71pblRyaVFSWGxPY0U", |
| 104 | + attributes = ManualDownloadResource( |
| 105 | + instructions=instructions, |
105 | 106 | sha256="f0e5da289d5ccf75ffe8811132694922b60f2af59256ed362afa03fefba324d0",
|
106 | 107 | file_name="list_attr_celeba.txt",
|
107 | 108 | )
|
108 |
| - bounding_boxes = GDriveResource( |
109 |
| - "0B7EVK8r0v71pbThiMVRxWXZ4dU0", |
| 109 | + bounding_boxes = ManualDownloadResource( |
| 110 | + instructions=instructions, |
110 | 111 | sha256="7487a82e57c4bb956c5445ae2df4a91ffa717e903c5fa22874ede0820c8ec41b",
|
111 | 112 | file_name="list_bbox_celeba.txt",
|
112 | 113 | )
|
113 |
| - landmarks = GDriveResource( |
114 |
| - "0B7EVK8r0v71pd0FJY3Blby1HUTQ", |
| 114 | + landmarks = ManualDownloadResource( |
| 115 | + instructions=instructions, |
115 | 116 | sha256="6c02a87569907f6db2ba99019085697596730e8129f67a3d61659f198c48d43b",
|
116 | 117 | file_name="list_landmarks_align_celeba.txt",
|
117 | 118 | )
|
|
0 commit comments