fix: image name
Browse files- 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('.')[-
|
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 |
+
file_name = int(image_path.rsplit('.')[-2])
|
62 |
yield idx, {
|
63 |
'image_id': annotations_df['image_id'].iloc[file_name],
|
64 |
"image": {
|