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
十分感谢您分享的代码以及您工作对我的论文的启发!但是在我在单gpu运行时,遇到了和[https://github.com//issues/14#issue-1559569880]相同的问题,在运行到/boxlevelset/mmdet/datasets/samplers/group_sampler.py文件中第36行的: indices = np.concatenate(indices)时,报错:
File "<array_function internals>",line 6, in concatenate
ValueError: need at least one array to concatenate.
我在debug后发现是因为我的数据集尽管做成了coco格式,但是在train.py中调用build_datasets会运行到最后的else分支,并且调用build_from_cfg(cfg, DATASETS, default_args),但这个方法没有像其他的分支中的方法一样在创建dataset对象时定义flag变量。从而使得Group_sampler类在初始化的时候,self.flag.self.group_sizes都是空对象,从而导致indices也是空对象,发生这个错误。请问是否有解决的办法呢?我已经验证过数据,并没有错误的标注,数据集是可以被cocoAPI调用的。
The text was updated successfully, but these errors were encountered:
十分感谢您分享的代码以及您工作对我的论文的启发!但是在我在单gpu运行时,遇到了和[https://github.com//issues/14#issue-1559569880]相同的问题,在运行到/boxlevelset/mmdet/datasets/samplers/group_sampler.py文件中第36行的: indices = np.concatenate(indices)时,报错:
File "<array_function internals>",line 6, in concatenate
ValueError: need at least one array to concatenate.
我在debug后发现是因为我的数据集尽管做成了coco格式,但是在train.py中调用build_datasets会运行到最后的else分支,并且调用build_from_cfg(cfg, DATASETS, default_args),但这个方法没有像其他的分支中的方法一样在创建dataset对象时定义flag变量。从而使得Group_sampler类在初始化的时候,self.flag.self.group_sizes都是空对象,从而导致indices也是空对象,发生这个错误。请问是否有解决的办法呢?我已经验证过数据,并没有错误的标注,数据集是可以被cocoAPI调用的。
The text was updated successfully, but these errors were encountered: