PaddleSeg icon indicating copy to clipboard operation
PaddleSeg copied to clipboard

关于CPS的数据导入问题dataloader StopIteration

Open RzzzLiu opened this issue 1 year ago • 1 comments
trafficstars

问题确认 Search before asking

  • [X] 我已经搜索过问题,但是没有找到解答。I have searched the question and found no related answer.

请提出你的问题 Please ask your question

image 我导入数据后,尝试打印出/core/train.py中的num_train_imgs和num_unsup_imgs数量并没有错误,不知道为什么会发生StopIteration表示已经读完,请大佬指教

RzzzLiu avatar Dec 30 '23 15:12 RzzzLiu

如果数据读完了,应该不会报错,可以看看数据集的getitem中是否返回了除了numpy之后的值。如果返回None之类的数据会出现异常。

shiyutang avatar Mar 01 '24 04:03 shiyutang