Vadzim Kashko commited on
Commit
ed2b499
1 Parent(s): 266fc9a

fix: image name

Browse files
Files changed (1) hide show
  1. pose_estimation.py +1 -1
pose_estimation.py CHANGED
@@ -58,7 +58,7 @@ class PoseEstimation(datasets.GeneratorBasedBuilder):
58
  annotations_df = pd.read_csv(annotations, sep=',')
59
  for idx, ((image_path, image),
60
  (mask_path, mask)) in enumerate(zip(images, masks)):
61
- file_name = int(image_path.rsplit('.')[-2])
62
  yield idx, {
63
  'image_id': annotations_df['image_id'].iloc[file_name],
64
  "image": {
 
58
  annotations_df = pd.read_csv(annotations, sep=',')
59
  for idx, ((image_path, image),
60
  (mask_path, mask)) in enumerate(zip(images, masks)):
61
+ int(image_path.rsplit('/', 1)[-1].split('.')[0])
62
  yield idx, {
63
  'image_id': annotations_df['image_id'].iloc[file_name],
64
  "image": {