Open liuqinglong110 opened 3 years ago
nanodet 在训练时应该没有和GUI相关的调用
nanodet 在训练时应该没有和GUI相关的调用
这个警告每次都出来,(train.py:34): Gdk-CRITICAL **: 10:35:14.994: gdk_cursor_new_for_display: assertion 'GDK_IS_DISPLAY (display)' failed
Would you like to share your Dockerfile
? @liuqinglong110
我在训练过程中,总是出现“unable to init server: Could not connect: Connection refused”这个报错。详细报错见下面。 /usr/local/lib/python3.6/dist-packages/pytorch_lightning/metrics/init.py:44: LightningDeprecationWarning:
pytorch_lightning.metrics.*
module has been renamed totorchmetrics.*
and split off to its own package (https://github.com/PyTorchLightning/metrics) since v1.3 and will be removed in v1.5 "pytorch_lightning.metrics.*
module has been renamed totorchmetrics.*
and split off to its own package" Unable to init server: Could not connect: Connection refused Unable to init server: Could not connect: Connection refused(train.py:34): Gdk-CRITICAL **: 10:35:14.994: gdk_cursor_new_for_display: assertion 'GDK_IS_DISPLAY (display)' failed [root][06-29 10:35:15]INFO:Using Tensorboard, logs will be saved in workspace/nanodet_m_persion/logs [root][06-29 10:35:15]INFO:Setting up data... [root][06-29 10:35:15]INFO:loading annotations into memory...
我是在服务器上,通过创建docker容器来运行的。我发现创建docker容器时,如果不增加-v /tmp/.X11-unix:/tmp/.X11-unix -e DISPLAY=unix$DISPLAY -e GDK_SCALE -e GDK_DPI_SCALE这几个参数,那么训练nanodet时,就会停在“unable to init server: Could not connect: Connection refused”这个报错几分钟,之后才会继续输出训练打印信息。如果我增加了上述几个参数,虽然训练时,依然会有unable to init server: Could not connect: Connection refused报错,但是很快就会继续输出下面的打印,开始进行训练。
我知道这个几个参数都是和显示图片有关的命令,但是具体不知道为什么无论是否增加参数,都会输出unable to init server: Could not connect: Connection refused,而且,这个报错到底是和谁链接失败导致的。