CLRNet icon indicating copy to clipboard operation
CLRNet copied to clipboard

[Previous line repeated 993 more times] RecursionError: maximum recursion depth exceeded

Open LiChen-98 opened this issue 2 years ago • 9 comments

我按照如下运行 python main.py configs/clrnet/clr_resnet18_culane.py --gpus 0

有报错,但程序未停止 [Previous line repeated 993 more times] RecursionError: maximum recursion depth exceeded

我在main.py文件中,按照如下修改 import sys sys.setrecursionlimit(2000)

程序未报错,但在打印如下内容后,程序无反应 2022-09-29 16:37:07,902 - clrnet.utils.recorder - INFO - Build train loader... 2022-09-29 16:37:07,947 - clrnet.datasets.base_dataset - INFO - Loading CULane annotations... 2022-09-29 16:37:09,947 - clrnet.utils.recorder - INFO - Start training... 此时,电脑内存RAM占用,但显存和CPU未占用

LiChen-98 avatar Sep 29 '22 08:09 LiChen-98

Hi, I have the same issue. I also modified it to 2000 but then everything is hung after "Start training" log. The GPU/CPU and RAM resources are unchanged. Did you find any solution?

kkarnatak avatar Oct 19 '22 11:10 kkarnatak

I have the same problem on Windows system, and my GPU is single card with cuda 11.3. Hopefully anyone can solve this problem.

keeplearning-again avatar Dec 08 '22 18:12 keeplearning-again

have you sloved the issue?

Huapyw avatar Feb 12 '23 14:02 Huapyw

I also met the same problem. Have you solved it

fenghuohuo2001 avatar May 10 '23 07:05 fenghuohuo2001

have you sloved the issue?

楼主你好,我也遇到同样的错误请问解决了吗?

CrazyMustard-404 avatar May 16 '23 10:05 CrazyMustard-404

have you sloved the issue?

楼主你好,我也遇到同样的错误请问解决了吗?

I solved this problem by changing the "workers=0"

fenghuohuo2001 avatar May 16 '23 10:05 fenghuohuo2001

have you sloved the issue?

楼主你好,我也遇到同样的错误请问解决了吗?

I solved this problem by changing the "workers=0"

Thank you very much for your suggestions, but I don't know where to make the modification. I couldn't find it in the main.py file. Could you please tell me where to make the modification? Thank you once again.

CrazyMustard-404 avatar May 17 '23 00:05 CrazyMustard-404

For example, in path ./configs/clrnet/clr_resnet18_culane.py, the 'workers' is on line 120. image

fenghuohuo2001 avatar May 17 '23 00:05 fenghuohuo2001

For example, in path ./configs/clrnet/clr_resnet18_culane.py, the 'workers' is on line 120. image

Thank you very much for your help! It was able to train using your method.

CrazyMustard-404 avatar May 17 '23 02:05 CrazyMustard-404