团鱼阿莲

Results 3 comments of 团鱼阿莲

hello,I've got a problem. pip install mmcv==1.5.0 -f https://download.openmmlab.com/mmcv/dist/cu113/torch1.11/index.html When I run: sh tools/dist_test.sh projects/configs/co_deformable_detr/co_deformable_detr_r50_1x_coco.py path_to_checkpoint 8 --eval bbox Traceback (most recent call last): File "tools/test.py", line 15, in from...

@paynezhangpayne 请问你解决这个问题了吗,我也发现了这个问题

@paynezhangpayne https://www.paddlepaddle.org.cn/documentation/docs/zh/2.2/api/paddle/io/IterableDataset_cn.html#iterabledataset 在官方文档中找到num_workers 的解释:当 paddle.io.DataLoader 中 num_workers > 0 时,每个子进程都会遍历全量的数据集返回全量样本,所以数据集会重复 num_workers 次,如果需要数据集样本不会重复返回,可通过如下两种方法避免样本重复,两种方法中都需要通过 paddle.io.get_worker_info 获取各子进程的信息。