fix: path types
Browse files
facial_keypoint_detection.py
CHANGED
@@ -134,6 +134,10 @@ class FacialKeypointDetection(datasets.GeneratorBasedBuilder):
|
|
134 |
how='left',
|
135 |
on=['image_name'])
|
136 |
|
|
|
|
|
|
|
|
|
137 |
for row in annotations_df.sort_values(['image_name'
|
138 |
]).itertuples(index=False):
|
139 |
yield idx, {
|
|
|
134 |
how='left',
|
135 |
on=['image_name'])
|
136 |
|
137 |
+
annotations_df[['image_path', 'mask_path'
|
138 |
+
]] = annotations_df[['image_path',
|
139 |
+
'mask_path']].astype('string')
|
140 |
+
|
141 |
for row in annotations_df.sort_values(['image_name'
|
142 |
]).itertuples(index=False):
|
143 |
yield idx, {
|