detect-waste icon indicating copy to clipboard operation
detect-waste copied to clipboard

bugs when transfer the data

Open cuge1995 opened this issue 1 year ago • 0 comments

TrashCan/dataset/material_version/instances_train_trashcan.json file 1 of 8
0_instances_train_trashcan
Traceback (most recent call last):
  File "annotations_preprocessing_multi.py", line 48, in <module>
    train, test = split_coco_dataset([data_file],
  File "detect-waste/utils/split_coco_dataset.py", line 122, in split_coco_dataset
    x, y = MultiStratifiedShuffleSplit(images, annotations, test_size)
  File "detect-waste/utils/split_coco_dataset.py", line 81, in MultiStratifiedShuffleSplit
    strat_split = MultilabelStratifiedShuffleSplit(n_splits=1,
  File "python3.8/site-packages/iterstrat/ml_stratifiers.py", line 322, in __init__
    super(MultilabelStratifiedShuffleSplit, self).__init__(
TypeError: __init__() takes from 1 to 2 positional arguments but 5 were given

cuge1995 avatar Apr 09 '23 08:04 cuge1995