You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug merge_coco doesn't work, because the drop_duplicates code is buggy. Calling it with an exploded list of datasets results in the following error message:
train = merge_coco(*train_folds)
[..]/lib/python3.10/site-packages/cocohelper/dataframe.py:37: UserWarning: COCODataFrame created by a COCODataFrame without using a copy constructor.
warnings.warn("COCODataFrame created by a COCODataFrame without using a copy constructor.")
[..]/lib/python3.10/site-packages/cocohelper/dataframe.py:37: UserWarning: COCODataFrame created by a COCODataFrame without using a copy constructor.
warnings.warn("COCODataFrame created by a COCODataFrame without using a copy constructor.")
Traceback (most recent call last):
File "[..]/pipeline/6a_split_dataset_with_kfold_CV.py", line 29, in <module>
train = merge_coco(*train_folds)
File "[..]/lib/python3.10/site-packages/cocohelper/merge.py", line 38, in merge_coco
return merged.drop_duplicate_cats().drop_duplicate_imgs().drop_duplicate_anns().drop_duplicate_licenses()
File "[..]/lib/python3.10/site-packages/cocohelper/helper.py", line 743, in drop_duplicate_licenses
lic_df, id_mapping = drop_duplicate_rows(self.licenses)
File "[..]/lib/python3.10/site-packages/cocohelper/utils/dataframe.py", line 74, in drop_duplicate_rows
raise ValueError("There are no columns that can be used to check for duplicates.")
ValueError: There are no columns that can be used to check for duplicates.
To Reproduce
Steps to reproduce the behavior:
Create a list of COCOHelper objects, for example by splitting a COCOHelper ch object using KFoldSplitter:
Describe the bug
merge_coco
doesn't work, because thedrop_duplicates
code is buggy. Calling it with an exploded list of datasets results in the following error message:To Reproduce
Steps to reproduce the behavior:
COCOHelper
objects, for example by splitting a COCOHelperch
object usingKFoldSplitter
:merge_coco
:Expected behavior
merge_coco
should merge theCOCOHelper
objects without erroring out.Screenshots
N/A
Desktop (please complete the following information):
Additional context
N/A
The text was updated successfully, but these errors were encountered: