vkashko commited on
Commit
8a7cdd1
·
1 Parent(s): b345ea7

fix: path types

Browse files
Files changed (1) hide show
  1. facial_keypoint_detection.py +4 -0
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, {