pytorch-unsupervised-segmentation-tip icon indicating copy to clipboard operation
pytorch-unsupervised-segmentation-tip copied to clipboard

Unable to produce output image (segmented image) after running code in google colab

Open cyberkarim opened this issue 2 years ago • 1 comments

Hello,

I'm having an issue with the code. I'm using colab, having all the necessary requirements installed. I forked the project into my colab session then run the python command : "!python3 demo.py --input ./BSD500/101027.jpg" to generate ouput. It instead prints the following in the std : /usr/local/lib/python3.7/dist-packages/torch/nn/_reduction.py:42: UserWarning: size_average and reduce args will be deprecated, please use reduction='mean' instead. warnings.warn(warning.format(ret)) : cannot connect to X server The output images isn't generated

cyberkarim avatar Mar 11 '22 22:03 cyberkarim

This issue happens because the X server is a program in the X Window System that runs only on local machines while Google Colab runs as a terminal.

milaomrani avatar Apr 16 '22 14:04 milaomrani