Upload CelebA_bbox_and_facepoints.py
Browse files
CelebA_bbox_and_facepoints.py
CHANGED
@@ -126,14 +126,13 @@ class CelebA(datasets.GeneratorBasedBuilder):
|
|
126 |
if strip_type_in_line == partition_type:
|
127 |
|
128 |
# Se obtiene la imágen
|
129 |
-
image_file_path = os.path.join(data_dir, eval_line[0])
|
130 |
|
131 |
# Se lee la línea de bbox
|
132 |
bbox_line = fichero1.readline()
|
133 |
bbox = " ".join(bbox_line.split()).split(" ")
|
134 |
bbox_total = [int(bbox[1]), int(bbox[2]), int(bbox[3]), int(bbox[4])]
|
135 |
|
136 |
-
|
137 |
# Se lee la línea de landmarks
|
138 |
landmarks_line = fichero2.readline()
|
139 |
landmarks = " ".join(landmarks_line.split()).split(" ")
|
|
|
126 |
if strip_type_in_line == partition_type:
|
127 |
|
128 |
# Se obtiene la imágen
|
129 |
+
image_file_path = os.path.join(data_dir, " ".join(eval_line.split()).split(" ")[0])
|
130 |
|
131 |
# Se lee la línea de bbox
|
132 |
bbox_line = fichero1.readline()
|
133 |
bbox = " ".join(bbox_line.split()).split(" ")
|
134 |
bbox_total = [int(bbox[1]), int(bbox[2]), int(bbox[3]), int(bbox[4])]
|
135 |
|
|
|
136 |
# Se lee la línea de landmarks
|
137 |
landmarks_line = fichero2.readline()
|
138 |
landmarks = " ".join(landmarks_line.split()).split(" ")
|